On Thu, Apr 14, 2011 at 08:55:04AM -0400, Eric Weir wrote:
> 
> I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited 
> as ways to move around the screen. Is there a way to move up or 
> down from what is displayed as one line on the screen when 
> "linebreak" is set to another, i.e., within what Vim actually 
> considers a line, i.e., text between two <CR>s?

w/b move forward/backward by word
W/B move forward/backward by word including punctuation
(/) move backward/forward by sentence
{/} move backward/forward by paragraph
/,? search forward, backward

These may be used with d, c or y to dw or db, c( or c), y{ or y}, 
or even d/search-term or y?search-term to perform an action on 
text covered by a search.

One way to think about these various commands is as nouns and 
verbs. d, c, s etc. are the verb commands. w, W, b, B, (, ), {, 
}, /, ?, etc. are the nouns. Nouns and verbs may be combined 
freely. Vim's commands are like a mini-language.

Additionally, you may use text objects from inside those objects. 
For example:
iw, aw for 'inner word' and 'a word' may be used with d, c and 
y to daw/diw 'delete a word' or delete inner word' from inside of 
words. The same may be done with is and as for 'inner sentence' 
and 'a sentence' and with ip and ap for 'inner paragraph' and 'a 
paragraph'. The various combinations of these work with d, c and 
y to delete, change or yank these objects.

-- 
Scott Bicknell

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

Reply via email to