Monday, May 13, 2013

Re: Need a vim "hard mode" tutorial.

Dear Vimers,

2013/5/13 DwigtArmyOfChampions <dwightarmyofchampions@hotmail.com>:
> If you're not going to search, then are you pretty much always supposed to use Ctrl-u and Ctrl-d to navigate through your code, and then when you spot a line that needs changed, type :(line number)?

I have been facing the very same problem. For me Vim is about doing
the job of text editing efficiently. So getting to the place you want
to edit should be fast and easy. In spite of all the different
available movement commands I frequently find myself thinking, that in
a particular situation I might had gotten to the place I want to edit
faster using the mouse. After all searching or jumping to a a line
number easily require four to five key strokes.

> Because that's pretty much the only way I've been able to move around. What if you're in visual mode and you therefore can't use the : to run a command to get to the line number you want the visual block to end on?

You can use G<line_number> to get to the line you spotted. This works
in visual mode, too.
:h G

I would very much like to read about expert Vim users most used
movement commands and get more efficient in getting to the point I
want to edit.

Cheers!

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: