my .vimrc file

” Turns on syntax highlighting
syntax enable

” Turns on autoindent (this is actually pretty annoying when copy and pasting)
set autoindent

” To cause TAB characters to not be used in the file for compression
set expandtab

” Causes tabs to be displayed as tabstop number of spaces
set tabstop=2

” Causes a shiftwidth number of spaces to be inserted when you hit TAB
set shiftwidth=4

” Tab is rounded to a multiple of shiftwidth
set shiftround

” Ignores case when given a lowercase query
set ignorecase

” Case sensitive when given a non-lowercase query
set smartcase

” Jumps to search word as you type
set incsearch

” Highlights all occurrences of your search
set hlsearch

” Tab complete now ignores these
set wildignore=*.o,*.obj,*.bak,*.exe

” Required for the taglist plugin
filetype on

” Shortcut to toggle the taglist
nnoremap <F8> :TlistToggle<CR>

” Shortcut to add files to the taglist (recursive)
nnoremap <C-T> :TlistAddFilesRecursive . *<CR>

Leave a Reply


»