Last active
December 15, 2015 09:49
-
-
Save ubermajestix/5240898 to your computer and use it in GitHub Desktop.
Vim bindings for the TComment plugin: https://github.com/tomtom/tcomment_vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use tcomment instead of Nerd_commenter | |
if has("gui_macvim") && has("gui_running") | |
inoremap <D-/> <Esc>:TComment<CR>i | |
nnoremap <D-/> :TComment<CR> | |
vnoremap <D-/> :TComment<CR> | |
else | |
inoremap <leader>/ <Esc>:TComment<CR>i | |
nnoremap <leader>/ :TComment<CR> | |
vnoremap <leader>/ :TComment<CR> | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment