Tags: vim
vim is a text editor that is a clone of the vi editor.
vim has two "modes": COMMAND mode and INSERT mode. In COMMAND mode, you execute commands (like undo, redo, find and replace, quit, etc.). In INSERT mode, you type text. There is a third mode, VISUAL mode, that is used to highlight and edit text in bulk. To go into INSERT mode from COMMAND mode, you type i. To go back to COMMAND mode, you type the esc key. vim starts out in COMMAND mode.
If a file has been changed on disk, you can reload it in Vim without closing and reopening it.
:e
          set commands:set wrap - This will wrap long lines of text.:set ai - This stands for "autoindent" and will automatically indent new lines.