From 8ae928dcb6fc49b805eff0aa0956cd18aa1c3f85 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sat, 13 Feb 2021 23:11:25 +0100 Subject: added some vim plugins --- .config/nvim/plug-config/vim-commentary.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .config/nvim/plug-config/vim-commentary.vim (limited to '.config/nvim/plug-config/vim-commentary.vim') diff --git a/.config/nvim/plug-config/vim-commentary.vim b/.config/nvim/plug-config/vim-commentary.vim new file mode 100644 index 0000000..b6758b3 --- /dev/null +++ b/.config/nvim/plug-config/vim-commentary.vim @@ -0,0 +1,8 @@ +function! Comment() + if (mode() == "n" ) + execute "Commentary" + else + execute "'<,'>Commentary" + endif + endfunction +vnoremap / :call Comment() -- cgit v1.2.3-70-g09d2