Separate config into '.vim/plugins/'

This commit is contained in:
2024-09-22 13:13:29 +02:00
parent 0ce01efd46
commit 21e5d0ac86
7 changed files with 59 additions and 69 deletions

14
.vim/plugin/cursor.vim Normal file
View File

@@ -0,0 +1,14 @@
" Taken from /usr/share/vim/vim90/defaults.vim
augroup vimStartup
au!
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid, when inside an event handler
" (happens when dropping a file on gvim) and for a commit message (it's
" likely a different one than last time).
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
\ | exe "normal! g`\""
\ | endif
augroup END