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.

VI Commands

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
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.  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
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
Created by: jtuyen
Popular Computers sets