diff --git a/my_configs.vim b/my_configs.vim index b43dd111..8fd79499 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -12,7 +12,7 @@ let g:solarized_italic=0 " 1 | 0 " let g:solarized_bold=0 " let g:solarized_underline=0 -set background=light " dark +set background=dark " dark :colorscheme solarized " ir_black mayansmoke " syntastic @@ -95,13 +95,11 @@ let NERDTreeAutoDeleteBuffer=1 map :lnext map :lprevious -" Return to last edit position when opening files (You want this!) -autocmd BufReadPost * silent! normal! g`"zv - \ if line("'\"") > 0 && line("'\"") <= line("$") | - \ exe "normal! g`\"" | - \ endif -" Remember info about open buffers on close -set viminfo^=% +" Uncomment the following to have Vim jump to the last position when reopening a file +if has("autocmd") + au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") + \| exe "normal! g`\"" | endif +endif " multi_cursor " Default mapping