Appearance
Vi
For a while, when doing system administration work on remote servers, vi
was one of the few editors that could be counted on to be installed.
vi is everywhere. It's good to understand the different modes so that you can accomplish basic editing.
Configuration
See .exrc
for a simple startup script that will map ctrl-j
to print a timestamp.
The below settings can be added to a configuration file
vi ~/.vimrc
vi ~/.vimrc
add the desired setting as new line without the colon:
set paste
set paste
Settings
Line numbers can be helpful in certain contexts, especially when working together
:set number
:set number
via https://linuxize.com/post/how-to-show-line-numbers-in-vim/
Another useful one is
:set paste
:set paste
That way when pasting text and a comment shows up, you won't get all of the subsequent lines with comment prefixes added
nano
Many systems also include nano, which also works when you need an editor over a console.