diff options
Diffstat (limited to '.config/nvim/after/plugin')
| -rw-r--r-- | .config/nvim/after/plugin/autocmds.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim index b361f7c..05b7ce9 100644 --- a/.config/nvim/after/plugin/autocmds.vim +++ b/.config/nvim/after/plugin/autocmds.vim | |||
| @@ -6,3 +6,9 @@ autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw= | |||
| 6 | augroup bukugroup | 6 | augroup bukugroup |
| 7 | au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku | 7 | au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku |
| 8 | augroup END | 8 | augroup END |
| 9 | |||
| 10 | " Restore last position | ||
| 11 | autocmd BufReadPost * | ||
| 12 | \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' | ||
| 13 | \ | exe "normal! g`\"" | ||
| 14 | \ | endif | ||
