summaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/plugin/autocmds.vim
diff options
context:
space:
mode:
authorYigit Sever2024-11-26 14:40:35 +0100
committerYigit Sever2024-11-26 14:40:35 +0100
commit5671f954ddff3fb60ee6fda3fac664375be1a425 (patch)
treeaac60061f92e47b7c83002669355776d083e293f /.config/nvim/after/plugin/autocmds.vim
parentb7925fa3f4c7ddd8ddf89b6c345fcdc585a91208 (diff)
downloaddotfiles-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.vim22
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
2autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif 2autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
3
4autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw=80
5
6augroup bukugroup
7 au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku
8augroup END
9
10" Restore last position
11autocmd BufReadPost *
12 \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
13 \ | exe "normal! g`\""
14 \ | endif
15
16augroup pkgbuild
17 autocmd!
18 autocmd BufRead,BufNewFile PKGBUILD set filetype=PKGBUILD
19augroup END
20
21augroup vimwiki
22 autocmd!
23 autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki
24augroup END