LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vim: motion to , (https://www.linuxquestions.org/questions/linux-software-2/vim-motion-to-293554/)

gypsy_rabbi 02-22-2005 04:12 PM

vim: motion to ,
 
Typing text in vim, ")" will take me to the next period.

Is there something that will take me to the next comma? (If the comma's on the same line of course I can say "f,", but I'm mainly looking for a way to delete to the next comma when it's on a different line.)

Thanks!

Tinkster 02-22-2005 05:20 PM

Like in
Code:

d/,
?

That will delete everything from the current cursor
position to the next comma, no matter where in the
text it is [caveat: if there's no comma after the
current cursor position it will delete to the one
before it :}] ...


Cheers,
Tink


All times are GMT -5. The time now is 09:16 AM.