
750
|
Chapter 9: The vi, ex, and vim Editors
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
t
[address] t destination
Copy the lines included in address to the specified destination
address. t is equivalent to copy.
Example
:%t$ Copy the file and add it to the end
tag
[address] ta tag
In the tags file, locate the file and line matching tag, and start
editing there.
Example
Run ctags, then switch to the file containing myfunction:
:!ctags *.c
:tag myfunction
tags
tags
Print list of tags in the tag stack. {vim}
unabbreviate
una word
Remove word from the list of abbreviations.
undo
u
Reverse the changes made by the last editing command. In vi, the
undo command will undo itself, redoing what you undid. vim
supports multiple levels of undo. Use redo to redo an undone
change in vim.
unhide
[count] unh
Split screen to show one window for each active buffer in the buffer
list. If specified, limit the number of windows to count. {vim}
unmap
unm[!] string
Remove string from the list of keyboard macros. Use ! to remove a
macro for input mode.
v
[address] v/pattern/[command]
Execute command on all lines not containing pattern.Ifcommand is
not specified, print all such lines. v is equivalent to g!. See global.
Example
:v/#include/d Delete all lines except "#include" lines
version
ve
Print the editor’s current version number and date of last change.