tcomment_vim icon indicating copy to clipboard operation
tcomment_vim copied to clipboard

One nmap to rule them all

Open soerenwolfers opened this issue 6 years ago • 0 comments

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)

soerenwolfers avatar Dec 20 '18 15:12 soerenwolfers