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 iwhich stands for insert- Make edits to the file.
- Once done editing
Press escape,:, then typewqwhich 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 Enterto move to the next instance of the pattern.Press Enterto move to the next instance of the pattern.- Press
nto move to the next instance of the pattern. TypeN(Note: this isnandShift) to move to the previous instance of the pattern.
Journal
- 2020.06.10 Updated section syntax