Current I’m using the EnhancedCommentify plugin for toggling comments, in particular those two commands
map <M-c> <plug>Comment
map <M-d> <plug>DeComment
But the problem is, instead of commenting out lines like
____#I am a comment (_ in front is white space)
it will show up as
#____I am a comment
Is there a quick way inside EnhancedCommentify to fix this? or other ways to achieve this, best without changing my current key bindings? Thanks.
BTW : NerdTree doesn’t seem to work for my vim version, and I’m not root user, so…
Try out tComment. I use it and it supports vim 7.0. It allows you to comment across multiple filetypes with the
gcmotion.If you’re using pathogen you can install it with
Then just restart vim and you should be ready to go!