Show line numbers, configure NERDTree and tagbar, fix spelling mistake

This commit is contained in:
David Thurstenson 2017-04-28 15:45:10 -05:00
parent c43f68f0ff
commit d7d30289cb
1 changed files with 16 additions and 1 deletions

17
.vimrc
View File

@ -94,7 +94,7 @@ if has('langmap') && exists('+langnoremap')
" compatible). " compatible).
set langnoremap set langnoremap
endif endif
" Use W to call sudo to write a read-only file with elevated privaliges " Use W to call sudo to write a read-only file with elevated privileges
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! command W :execute ':silent w !sudo tee % > /dev/null' | :edit!
au BufRead /tmp/mutt-* set tw=72 au BufRead /tmp/mutt-* set tw=72
@ -114,3 +114,18 @@ let c_space_errors = 1
" This can be disabled with :e ++ff=dos " This can be disabled with :e ++ff=dos
set fileformats=unix set fileformats=unix
" Show line numbers
set number
highlight LineNr ctermfg=darkgrey
highlight LineNr ctermbg=black
" NERDTree options
nmap <silent> <leader>t :NERDTree<CR>
let g:NERDTreeChristmasTree = 1
let g:NERDTreeChDirMode = 2
let g:NERDTreeHighlightCursorline = 1
let g:NERDTreeMouseMode = 2
let g:NERDTreeShowHidden = 1
" Tagbar options
nmap <F8> :TagbarToggle<CR>