diff options
author | Yigit Sever | 2021-11-19 18:29:35 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-19 18:29:35 +0300 |
commit | 6093c9230bddceb7d3698edc5c476651129113f3 (patch) | |
tree | 5e92f75a40a3d3e408a03475c94aae45e9fe9f34 /.config/nvim/after/plugin | |
parent | 95dc5ae052b18a9b00afd131d1d921a7767c6e09 (diff) | |
download | dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.gz dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.tar.bz2 dotfiles-6093c9230bddceb7d3698edc5c476651129113f3.zip |
no time sorry!
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 | ||