Upgrade to remove ads
CSE 15L Lecture 1
Terms in this set (49)
creates a file and opens it in editor if the file does not exist, otherwise opens the file.
vi -r filename
Edits filename using .filename.swp as the input . The
file .filename.swp must be deleted, using:
rm .filename.swp, after use.
vi -R filename
Edits filename in read-only mode does not allow
changes to filename.
vi +/pattern filename
Edits filename at the line containing the pattern.
Write to a new file def, but stay in the existing file.
Write to an existing file def, but stay in the existing file.
add (read) file def into the current file
Provides information on the file currently editing, including the current
line number, if it has been modified etc.
quit without saving changes
save and quit
quit without saving changes (hard quit)
ZZ or :x
save file only if changes have been made, then quit
Enter insert mode at this location, exit
Insert new line after/before current
Append after cursor, end of current
I (capital i)
Insert at beginning of line
delete this line
delete this word
Delete to next paragraph
delete to beginning of line
Delete to first occurrence of pattern
Delete to next occurrence of pattern
Delete up to and including a on this line
Delete up to (not including) a on this line
Delete current [and n-1] character[s]
Delete previous n character[s]
replace current character with x
replace text beginning at cursor
Replace based on dimension d (e.g.
cw replaces a word) use escape to
splits the line at the current cursor
joins lines at current cursor
move cursor left
move cursor down
move cursor up
move cursor right
Move to beginning of special character delimited
word, whitespace delimited word.
Move to end of special character delimited word,
whitespace delimited word
Move back to beginning of special character
delimited word, whitespace delimited word.
Open or closed parenthesis, move to beginning, end
of current sentence.
Open or closed curly braces, move to beginning, end
of current paragraph.
first and last positions
n Column (| is the pipe symbol)
searches for text forward
searches for text backward
n (after search)
searches for same text
turn line numbers on
turn line numbers off
To execute a single Unix command from inside the editor
temporarily return to shell
THIS SET IS OFTEN IN FOLDERS WITH...
CSE 15L Final -- Fall 2015
CSE 15L Midterm I -- Fall 2015
CSE 15L Practice Questions for Final Exam
CSE 15L Lecture 1
YOU MIGHT ALSO LIKE...
Editing with vi: commands
COP3353 Test 1
OTHER SETS BY THIS CREATOR
Right Triangle Ratios
Prime Numbers Less than 60
Spanish Vocab 2