Vim Terminal Editor
Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as “vi” with most UNIX systems and with Apple OS X.
Opening a file to view text contents
In the terminal:
$ vim <filename>
Edit File Contents in Open File
Press i
which stands for insert- Make edits to the file.
- Once done editing
Press escape
,:
, then typewq
which stands for write (save) then quit (exit vim)
Searching for Patterns in Open File
Reference
- https://vim.fandom.com/wiki/Searching
Steps
Press /
they type any pattern.Press Enter
to move to the next instance of the pattern.Press Enter
to move to the next instance of the pattern.- Press
n
to move to the next instance of the pattern. TypeN
(Note: this isn
andShift
) to move to the previous instance of the pattern.
Journal
- 2020.06.10 Updated section syntax