echo the specified lines below Vim's command line.
move cursor to the specified line.
move cursor to the end line of the file.
move cursor to line 3 and echo the content of that line.
jump to line 3 and delete it.
print each line from 2 to 5. and cursor would be left positioned on line 5.
represent current line.
%
: represent all the lines in the current file.
replace the first occurrence of 'old' with 'new' on each line.
make a visual selection if we press the
:
key, the command-line prompt will be prepopulated with the range:'<,'>
: stand for the visual selection. and if you press:'<,'>p
: will print the selection!
standing for the first line of the visual selection.
standing for the last line of the visual selection.
print the tags.
print the content of the tag except the tag! if
n
is omitted, it defaults to 1.
equals to
:2,5p