Wednesday, October 27, 2010

For languages that end statements with semicolons: d$-1

Does VIM have an easy way to delete up to the last character of a
line, not inclusive?

How about not including the last N characters? For instance, in C#
there may be a statement in which I wish to delete all but the last 3
characters, such as:
Console.WriteLine("Lots of text here that I want to delete");

Something like d$N where N is the amount of characters to keep (d$1
for the first case and d$3 for the second case) would be great. Thanks
for any ideas.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment