diff options
author | Chris <[email protected]> | 2020-07-18 14:51:49 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2020-07-18 14:51:49 -0400 |
commit | 5d78f939f12fb760a857443e42f75b761222fe0f (patch) | |
tree | e77ffbaa3f35bebba8c570416dbaaa39e5857dd5 /plug-config/vim-commentary.vim | |
parent | f3fab2c54ec226e4d55839019c9ed9ce58987a10 (diff) | |
parent | b900635a06de0c8cf051e6a980db0882f4296261 (diff) |
Merge branch 'master' of github.com:ChristianChiarulli/nvim
Diffstat (limited to 'plug-config/vim-commentary.vim')
-rw-r--r-- | plug-config/vim-commentary.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plug-config/vim-commentary.vim b/plug-config/vim-commentary.vim new file mode 100644 index 00000000..b6758b38 --- /dev/null +++ b/plug-config/vim-commentary.vim @@ -0,0 +1,8 @@ +function! Comment() + if (mode() == "n" ) + execute "Commentary" + else + execute "'<,'>Commentary" + endif + endfunction +vnoremap <silent> <space>/ :call Comment() |