Saturday, April 17, 2021

Some basic Vim commands

I was curious:

I can jump to the beginning of some text on a line that begins with whitespace with v, w, h, d. Is there a single command to delete all initial whitespace on a line?

I then wanted to jump over a few words to the next number (in brackets). Is there any command to the effect of "find the next number"?

Then I wanted to say: take this word and the next two words, and send them down 3 newlines. Would there be a way to do that?

Thanks very much,
Julius                                                              

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAGrXgp3-dqe%2B9UaxMSxi3voAimByQyk%2BzM8Lvih%3DSJj%3DA4XgAw%40mail.gmail.com.

No comments:

Post a Comment