diff options
author | Yigit Sever | 2024-11-26 15:39:04 +0100 |
---|---|---|
committer | Yigit Sever | 2024-11-26 15:39:04 +0100 |
commit | b4e1ac3b68c70483e454b09124ebabc77cae9878 (patch) | |
tree | 7efb3eb0d112bf086e5d523f053a277db0770b7e /.config/nvim/after/plugin/autocmds.vim | |
parent | bac910773a0e4dff87257d4a08bef077641a2eca (diff) | |
download | dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.tar.gz dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.tar.bz2 dotfiles-b4e1ac3b68c70483e454b09124ebabc77cae9878.zip |
nvim: set vimwiki in vim autocmds
Diffstat (limited to '.config/nvim/after/plugin/autocmds.vim')
-rw-r--r-- | .config/nvim/after/plugin/autocmds.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim index ae55046..21c7bc4 100644 --- a/.config/nvim/after/plugin/autocmds.vim +++ b/.config/nvim/after/plugin/autocmds.vim | |||
@@ -1,2 +1,7 @@ | |||
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 | augroup vimwiki | ||
5 | autocmd! | ||
6 | autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki | ||
7 | augroup END | ||