1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | set bg=dark
set et
set fdm=marker
set hidden
set incsearch
set nocp
set nohlsearch
set nowrap
set nu
set rtp+=~/.vim/bundle/vundle/
set sessionoptions=curdir,buffers,tabpages
set smartindent
set sts=4
set sw=4
set tags=tags;/
set ts=4
set tw=120
colorscheme solarized
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'tpope/vim-surround'
Bundle 'godlygeek/tabular'
Bundle 'slack/vim-bufexplorer'
Bundle 'Townk/vim-autoclose'
Bundle 'msanders/snipmate.vim'
Bundle 'fugitive.vim'
Bundle 'altercation/vim-colors-solarized'
filetype indent plugin on
set ofu=syntaxcomplete#Complete
let mapleader = ","
nmap <Leader>nt :NERDTreeToggle<CR>
nmap <C-h> <C-w>h
nmap <C-j> <C-w>j
nmap <C-k> <C-w>k
nmap <C-l> <C-w>l
:au BufEnter,BufWinEnter,CursorHold filename :checktime
:au BufNewFile,BufRead *.less set filetype=less
if has("autocmd")
augroup myvimrchooks
au!
autocmd bufwritepost .vimrc source ~/.vimrc
augroup END
endif
|
x
Notes
My simple vimrc file, that I use at work