What are the commands to move to the very beginning and to move the last non-whitespace character of the current visual line? Do they exist at all?
Commands for normal lines | Commands for visual lines | |
---|---|---|
To move to the very beginning of a current line | 0 |
? |
To move to the very end of a current line | $ |
g$ |
To move to the first non-whitespace character of a current line | ^ |
g^ or g0 |
To move to the last non-whitespace character of a current line | g_ |
? |
Test text:
line 1
line 2, which is indented by 4 spaces and has 6 trailing spaces. this line should be long enough to be soft-wrapped lorem ispum dolor sit amet lorem ispum dolor sit amet lorem ispum dolor sit amet
line 3
.vimrc settings:
set wrap
set breakindent
set linebreak
display lines
orscreen lines
to refer to what you're talking about.