diff --git a/.vimrc b/.vimrc index 9a0330a..56b68ef 100644 --- a/.vimrc +++ b/.vimrc @@ -94,7 +94,7 @@ if has('langmap') && exists('+langnoremap') " compatible). set langnoremap 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! au BufRead /tmp/mutt-* set tw=72 @@ -114,3 +114,18 @@ let c_space_errors = 1 " This can be disabled with :e ++ff=dos set fileformats=unix +" Show line numbers +set number +highlight LineNr ctermfg=darkgrey +highlight LineNr ctermbg=black + +" NERDTree options +nmap t :NERDTree +let g:NERDTreeChristmasTree = 1 +let g:NERDTreeChDirMode = 2 +let g:NERDTreeHighlightCursorline = 1 +let g:NERDTreeMouseMode = 2 +let g:NERDTreeShowHidden = 1 + +" Tagbar options +nmap :TagbarToggle