tcomment_vim
tcomment_vim copied to clipboard
One nmap to rule them all
Can I use tcomment to create a normal mode map, let's say to '
, that does:
- On a not commented line: Immediately comment out the line
- On a commented line:
- If the line doesn't have adjacent commented lines: immediately uncomment the line
- If the line does have adjacent commented lines
- Uncomment all of them if
'
is pressed again within a time limit (set timeout
) - Uncomment the current line if
'
is not pressed again within a time limit (or any other key is pressed)
- Uncomment all of them if