diff options
author | Yigit Sever | 2024-11-26 14:40:35 +0100 |
---|---|---|
committer | Yigit Sever | 2024-11-26 14:40:35 +0100 |
commit | 5671f954ddff3fb60ee6fda3fac664375be1a425 (patch) | |
tree | aac60061f92e47b7c83002669355776d083e293f /.config/nvim/after/plugin/autocmds.vim | |
parent | b7925fa3f4c7ddd8ddf89b6c345fcdc585a91208 (diff) | |
download | dotfiles-5671f954ddff3fb60ee6fda3fac664375be1a425.tar.gz dotfiles-5671f954ddff3fb60ee6fda3fac664375be1a425.tar.bz2 dotfiles-5671f954ddff3fb60ee6fda3fac664375be1a425.zip |
nvim: autocmds.lua
Diffstat (limited to '.config/nvim/after/plugin/autocmds.vim')
-rw-r--r-- | .config/nvim/after/plugin/autocmds.vim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim index 0e7935b..ae55046 100644 --- a/.config/nvim/after/plugin/autocmds.vim +++ b/.config/nvim/after/plugin/autocmds.vim | |||
@@ -1,24 +1,2 @@ | |||
1 | " I don't know how to port this yet | 1 | " I don't know how to port this yet |
2 | autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif | 2 | autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif |
3 | |||
4 | autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw=80 | ||
5 | |||
6 | augroup bukugroup | ||
7 | au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku | ||
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 | ||
15 | |||
16 | augroup pkgbuild | ||
17 | autocmd! | ||
18 | autocmd BufRead,BufNewFile PKGBUILD set filetype=PKGBUILD | ||
19 | augroup END | ||
20 | |||
21 | augroup vimwiki | ||
22 | autocmd! | ||
23 | autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki | ||
24 | augroup END | ||