Created
June 23, 2026 02:05
-
-
Save aadityabhatia/dd7d84971e8346768472f430f9e94ff8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set number | |
| set ruler | |
| " Turn on the Wild menu | |
| set wildmenu | |
| set cmdheight=1 | |
| " Enable filetype plugins | |
| filetype plugin on | |
| filetype indent on | |
| " Configure backspace so it acts as it should act | |
| set backspace=eol,start,indent | |
| set whichwrap+=<,>,h,l | |
| " When searching try to be smart about cases | |
| set smartcase | |
| " Highlight search results | |
| set hlsearch | |
| " Makes search act like search in modern browsers | |
| set incsearch | |
| " Show matching brackets when text indicator is over them | |
| set showmatch | |
| " How many tenths of a second to blink when matching brackets | |
| set mat=2 | |
| " No annoying sound on errors | |
| set noerrorbells | |
| set novisualbell | |
| set t_vb= | |
| set tm=500 | |
| " Add a bit extra margin to the left | |
| set foldcolumn=1 | |
| " Enable syntax highlighting | |
| syntax enable | |
| " Set regular expression engine automatically | |
| set regexpengine=0 | |
| " Enable 256 colors palette in Gnome Terminal | |
| " if $COLORTERM == 'gnome-terminal' | |
| " set t_Co=256 | |
| " endif | |
| try | |
| set colorcolumn=80 | |
| colorscheme elflord | |
| catch | |
| endtry | |
| set background=dark | |
| " Set utf8 as standard encoding and en_US as the standard language | |
| set encoding=utf8 | |
| " Use Unix as the standard file type | |
| set ffs=unix,dos,mac | |
| " Turn backup off, since most stuff is in SVN, git etc. anyway... | |
| set nobackup | |
| set nowb | |
| set noswapfile | |
| " Be smart when using tabs ;) | |
| set smarttab | |
| " 1 tab == 4 spaces | |
| set shiftwidth=4 | |
| set tabstop=4 | |
| " Linebreak on 500 characters | |
| set lbr | |
| set tw=500 | |
| set ai "Auto indent | |
| set si "Smart indent | |
| set wrap "Wrap lines | |
| """""""""""""""""""""""""""""" | |
| " => Status line | |
| """""""""""""""""""""""""""""" | |
| " Always show the status line | |
| set laststatus=2 | |
| " Format the status line | |
| set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => Helper functions | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Returns true if paste mode is enabled | |
| function! HasPaste() | |
| if &paste | |
| return 'PASTE MODE ' | |
| endif | |
| return '' | |
| endfunction | |
| function! CmdLine(str) | |
| call feedkeys(":" . a:str) | |
| endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment