home/vim: disable folding on start and remember cursor position

This commit is contained in:
fleaz 2023-01-04 12:12:28 +01:00
parent 7125ce3f52
commit 25b1fa4829

View file

@ -99,6 +99,15 @@
set undoreload=1000
endif
" dont start with a fully folded document
set nofoldenable
" Remember cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" vim-go
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>b <Plug>(go-build)