summaryrefslogtreecommitdiff
path: root/.config/nvim/plug-config/vim-commentary.vim
blob: b6758b386e026d1fa71aaf7a534be7a678158401 (plain)
1
2
3
4
5
6
7
8
function! Comment()
  if (mode() == "n" )
    execute "Commentary"
  else    
    execute "'<,'>Commentary"
  endif
 endfunction
vnoremap <silent> <space>/ :call Comment()