Restructure vim config

This commit is contained in:
2016-07-05 21:29:27 +01:00
parent 5465bef85d
commit e26b13c742
6 changed files with 334 additions and 299 deletions

8
plugin/autocmds.vim Normal file
View File

@@ -0,0 +1,8 @@
augroup reopen_at_last_cursor
autocmd!
" Reopening a file at last curson position
au FocusGained * set relativenumber
au FocusLost * set norelativenumber
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\ | exe "normal! g'\"" | endif
augroup END