Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


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.
Your email address is only used to allow you to reset your password. See 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.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
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
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards