From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- .config/new_neovim/general/functions.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .config/new_neovim/general/functions.vim (limited to '.config/new_neovim/general/functions.vim') 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 -- cgit v1.2.3