[Reversed the top-posting]

On Fri, 9 Mar 2012, Anders Tidbeck wrote:


On Fri, Mar 9, 2012 at 4:19 PM, Benjamin R. Haskell wrote:

On Fri, 9 Mar 2012, Anders Tidbeck wrote:

 A question came up on superuser.com about backwards motions in Vim:

"To move a word forward in Vim, you press w or e. How can I move a word backwards?"

I recommended the vimtutor to get started, but as the one asking the question pointed out this is not in there.

I think that at least 'b' should be added under the motion shortlist in Lesson 2.3.


The "motion shortlist" you mention only talks about 'hjkl', so it's not really a "motion shortlist", more like "the simplest motion commands".

'b' is mentioned alongside 'w', when you get to section 03.1: 'Word movement'.

[...]

The "motion shortlist" I was talking of is:

 A short list of motions:
   w - until the start of the next word, EXCLUDING its first character.
   e - to the end of the current word, INCLUDING the last character.
   $ - to the end of the line, INCLUDING the last character.

This is Version 1.7 (Lesson 2.3) of the tutor, that comes with Vim 7.3 (on Windows anyway). I know the help have great/complete information that is easy to find, but it wasn't for me and others in the beginning.

My apologies. I only vaguely recalled that `vimtutor` was a separate command (your response jogged my memory). In my previous response, I'd issued:

:help vimtutor

At that point I didn't really pay attention to the text at *vimtutor*, I just assumed I had gone to the tutor.

Then I navigated to the next chapter of the user manual, where "section" (not "Lesson") 2.3 also happens to discuss basic motions.


I think it would be great adding one line about 'b' so beginners understand there is backwards commands in this short list.

Looking at the actual `vimtutor` this time, I agree that it seems like 'b' and 'ge' (and probably '^') should be added to that list.

--
Best,
Ben

--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui