From eab8bf8904c3604b46fbdb459c98171c98dfacec Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 13 Jan 2024 13:27:10 +0100 Subject: [PATCH] updated neovim state --- states/neovim/templates/init.vim.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/states/neovim/templates/init.vim.j2 b/states/neovim/templates/init.vim.j2 index 9cc0c99..1b2b1a2 100644 --- a/states/neovim/templates/init.vim.j2 +++ b/states/neovim/templates/init.vim.j2 @@ -22,12 +22,14 @@ syntax on function! RemoveComments() "silent %s/\t/ /g - silent %s/ *#.*//g + "silent %s/ *#.*//g silent g/^#/d silent g/^$/d - silent sort + "silent sort endfunction +command! RemoveComments call RemoveComments() + nnoremap :!%:p if has("autocmd")