diff options
Diffstat (limited to '.config/new_neovim/general/functions.vim')
| -rw-r--r-- | .config/new_neovim/general/functions.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/new_neovim/general/functions.vim b/.config/new_neovim/general/functions.vim new file mode 100644 index 0000000..58db6b1 --- /dev/null +++ b/.config/new_neovim/general/functions.vim @@ -0,0 +1,9 @@ +" Turn spellcheck on for markdown files +augroup auto_spellcheck + autocmd BufNewFile,BufRead *.md setlocal spell +augroup END + +" Remove trailing whitespaces automatically before save +" augroup strip_ws +" autocmd BufWritePre * call utils#stripTrailingWhitespaces() +" augroup END |
