Hi there,
In this little article, I'll make some basic notes about the VIM text editor command and modes. Like NANO, VIM is also a text editor. There's another text editor VI, which stands for Visual, but VIM stands for Vi IMproved. In another way, VIM is the improved version of VI. VIM has improved with some of the features and preferences, especially with code highlighting and colored properties compared to VI. So, let's get started:
Like the NANO command-line text editor, the VIM text editor is also used to open or create, edit, overwrite, and add the content of files. Compared to NANO, everything may look weird and complicated to you in VIM command, but don't worry, while a lot of practice you'll get to know how powerful text editor VIM is. Actually, VIM has many modes, but basic operational modes are Normal, Insert, Visual and Command-line modes, which I'll talk about. VIM text editor is not the same as NANO, because VIM acts or behaves differently in every other mode.
- Normal mode can be accessed from other modes and this mode is the default mode of VIM. Normal mode also comes as a default to create or edit an existing file with VIM;
- Insert mode allows you to type, add or edit texts, and to switch from normal mode to insert mode need to type "i" (means insert), and you'll see in the lower left corner of the page, the insert word popped up and that means you're in insert mode;
- Visual mode allows you copy, cut, and delete operations on selected text. Visual mode is almost close to normal mode. To switch from insert mode to visual mode need to press the ESC button on the keyboard. Actually, the ESC button works while switching the VIM modes, and plus visual mode is good to work with the large files to do all of such things once and fast without wasting time.
- Command-line mode allows you to save, unsave, exit, edit buffers, search, replace, and so on By the way, the buffer is VIM's memory that holds a copy of texts or contents you type.
I guess that's it for now, hopefully my article will be useful for your enlightenment.
Thank you and good luck!
Sincerely,
Araz Ahmadov
Comments
Post a Comment