December 8, 2004
Vi Commands
Since it has been a while, and I need a place for my permanent memory banks. Enjoy
vi ?R file opens a read only copy
vi +n file opens a file at line n
vi +/pattern file opens a file at the first line matching the pattern
vi tail -200 file opens the last 200 lines of the file.
h moves to the left.
j moves down.
k moves up
l moves right
0 is the first position of the current line
$ is the last position of the current line
H brings you to the top of the screen
M brings you to the middle of the screen
L brings you to the bottom of the screen
G brings you to the last line in the file
:linenumber brings you to that line number
/searchpattern searches forward for the pattern.
?searchpattern searches backwards.
n repeats the search.
N repeats the search in the opposite direction
a appends after cursor.
A appends to the end of the current line.
i inserts before the cursor.
I inserts at the beginning of the line
ESC gets you out of insertion mode.
CTRL-J, RETURN moves down one line.
CTRL-I inserts a tab
cw changes a word
cc changes a line
dd deletes the current line
numberdd deletes how many lines number is equal to 11dd 11 lines gone.
s substitute charater
S substitute entire line
u undo last change
U restore current line
x delete current cursor position
X delete back one character
y copy current line to new buffer
yy copy the current line
ZZ, :x quit and save copy if there are changes
:w write file.
:q quit file
:e filenext edit the next file
:n edit the next file (determined at vi starting)
CTL+G show the current file and line number
I think that?s enough to get me going again when the situation arises.
Finally passed the test
Managing in light of McGregor's Theory X and Theory Y
CMMI
Kicking HIT Leadership Up a Notch
That's just some mumbo jumbo project management BS
Outcomes - The tactic to get to the strategy
Nurse Call, VOIP, and Wi-Fi: Its just cool when things come together!
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
August 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
November 2005
October 2005
September 2005
August 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
Joel on Software
David Ross
Edward Prevost
Martin Fowler
The Health Care Blog
The Tales of Hoffman
The Business Word
Medical Rants
Christina's Considerations
Paul Levy
HIS Talk
Appropriate IT
Candid CIO
RSS feed




