Jack's Web Finds

Jack's Web Finds , updated 11/2/16, 11:55 PM

categoryOther
visibility0

Interesting information found while browsing

About Jack Berlin

Founded Accusoft (Pegasus Imaging) in 1991 and has been CEO ever since.

Very proud of what the team has created with edocr, it is easy to share documents in a personalized way and so very useful at no cost to the user! Hope to hear comments and suggestions at info@edocr.com.

Tag Cloud

© 2010 Go Squared Ltd.
VI Help Sheet GoSquared
Download this Help Sheet now at gosquared.com/liquidicity
Put it on your wall
Modes & Controls
Command Mode
Insertion Mode
ESC (commands preceded by :)
Entered on insertion or change
Inserting Text
i
I
a
A
o
O
R
r
Insert before cursor
Insert before line
Append after cursor
Append after line
Add new line after current line
Add new line before current line
Overwrite one character
Other
u
J
nJ
.
U
:N
Undo last change
Join lines
Join next n lines
Repeat last command
Undo all changes to line
Open split screen
v
Visual mode
ctrl + c
Escape insert mode
vi
vi -r
vi + n
vi +
vi +/str
:w
:x
:q
:q!
Save & Exit
Exit if no changes made
Exit & discard any changes
In insertion mode the following should be preceded by ESC:
Save
Edit !lename
Edit last version of !lename after crash
Edit !lename at line n
Edit !lename at end of !le
Edit !lename at !rst occurance of str
Overwrite many characters
:r Reads !le and inserts it after this line
Cursor Navigation
h or
k or
j or
l or
w
W
B
b
Cursor left
Cursor up
Cursor down
Cursor right
Next word
Next blank delimited word
Start of word
Start of blank delimited word
e End of word
E
(
)
{
0
}
End of blank delimited word
Back a sentence
Forward a sentence
Back a paragraph
Forward a paragraph
Beginning of line
$ End of the line
1G
G
:n
f
H
Start of !le
End of !le
nth line of !le
Forward to char
Back to char
Top of screen
M Middle of screen
L
%
Bottom of screen
Matching bracket
gg Start of document
F
Deleting Text
x
D
X
dd or :d
ndw
ndb
:x,yd
ndd
Delete character to right of cursor
Delete the rest of line
Delete character to left of cursor
Delete current line
Deletes the next n words
Deletes the previous n words
Deletes n lines starting with current
Delete lines x through y
:r Reads !le and inserts it after this line
Referenced from http://www.lagmonster.org/docs/vi.html
p Put after the position or line
P Put before the position or line
C Rewrite the whole line
d{nav_cmd} Overwrite many characters
:r Reads !le and inserts it after this line
Searching
/string
n
?string
N
:set ic
:set noic
:g/str/cmd
:x,yg/str
Search forward for string
Go to next match
Search backwards for string
Go to previous match
Ignore case while searching
Case-sensitive searching
:set nu Turn on line numbers
Search for str from line x to line y
Run cmd on lines containing str
* Search for next instance of current word
# Search for last instance of current word
Replacing
:s/pt/str/!ag
c
g
Flags
&
Replace pattern with string
Con!rm replaces
Replace all occurrences of pattern
Repeat last :s command
Starting VI (command line)