Busy. Please wait.
or

show password
Forgot Password?

Don't have an account?  Sign up 
or

Username is available taken
show password

why


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
We do not share your email address with others. It is only used to allow you to reset your password. For details read our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Remove ads
Don't know
Know
remaining cards
Save
0:01
To flip the current card, click it or press the Spacebar key.  To move the current card to one of the three colored boxes, click on the box.  You may also press the UP ARROW key to move the card to the "Know" box, the DOWN ARROW key to move the card to the "Don't know" box, or the RIGHT ARROW key to move the card to the Remaining box.  You may also click on the card displayed in any of the three boxes to bring that card back to the center.

Pass complete!

"Know" box contains:
Time elapsed:
Retries:
restart all cards




share
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

LPI101 - table 5-9

VI Commands

QuestionAnswer
h Move left one character.
j Move down one line.
k Move up one line.
l Move right one character.
H Move to the top of the screen.
L Move to the bottom of the screen.
G Move to the end of the file.
w Move forward one word.
b Move backward one word.
0 (zero) Move to the beginning of the current line.
^ Move to the first non-whitespace character on the current line.
$ Move to the end of the current line.
Ctrl-B Move up (back) one screen.
Ctrl-F Move down (forward) one screen.
i Insert at the current cursor position.
I Insert at the beginning of the current line.
a Append after the current cursor position.
A Append to the end of the current line.
o Start a new line after the current line.
O Start a new line before the current line.
r Replace the character at the current cursor position.
R Start replacing (overwriting) at the current cursor position.
x Delete the character at the current cursor position.
X Delete the character immediately before (to the left) of the current cursor position.
s Delete the character at the current cursor position and go into insert mode. (This is the equivalent of the combination xi.)
S Delete the contents of the current line and go into insert mode.
dX Given a movement command X, cut (delete) the appropriate number of characters, words, or lines from the current cursor position.
dd Cut the entire current line.
D Cut from the current cursor position to the end of the line. (This is equivalent to d$.)
cX Given a movement command X, cut the appropriate number of characters, words, or lines from the current cursor position and go into insert mode.
cc Cut the entire current line and go into insert mode.
C Cut from the current cursor position to the end of the line and enter insert mode. (This is equivalent to c$.)
yX Given a movement command X, copy (yank[a]) the appropriate number of characters, words, or lines from the current cursor position.
yy or Y Copy the entire current line.
p Paste after the current cursor position.
P Paste before the current cursor position.
. Repeat the last command.
u Undo the last command.
/regex Search forward for regex.
?regex Search backward for regex.
n Find the next match.
N Find the previous match. (In other words, repeat the last search in the opposite direction.)
:n Next file; when multiple files are specified for editing, this command loads the next file. Force this action (if the current file has unsaved changes) with :n!.
:e file Load file in place of the current file. Force this action with :e! file.
:r file Insert the contents of file after the current cursor position.
:q Quit without saving changes. Force this action with :q!.
:w file Write the current buffer to file. To append to an existing file, use :w >>file. Force the write (when possible, such as when running as root) with :w! file.
:wq Write the file contents and quit. Force this action with :wq!.
:x Write the file contents (if changed) and quit (the ex equivalent of ZZ).
ZZ Write the file contents (if changed) and quit.
:!command Execute command in a subshell.
Created by: jtuyen