> I tried to map Ctrl+/ to ,cc as follows:
> 
> nnoremap <C-/> ,cc
> 
> but there's no response. Can anyone help me?

Two issues occur to me:

1) make sure your vim can see whatever ctrl+/ sends to it.  Check 
by issuing "control+v" followed by "control+/" after typing the 
mapping.

2) the RHS of your mapping uses "," but you use "n*nore*map".  In 
all likely hood, in this case you want "nmap" because you want 
the mapped value of ',cc' (coming from some plugin?).  As it 
currently stands, your command issues "search the reverse 
direction of my last f/F/t/T command (the comma), and then delete 
the entire line, leaving me in insert-mode at the current-line's 
indentation (the 'cc')".  Which is a bit nonsensical...there's no 
reason to move forward/backward if you're going to delete+change 
the entire line.

-tim



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to