Working with multiple files in vi it's possible...
:e filename - Edit a file in a new buffer
:bnext (or :bn) - go to next buffer
:bprev (of :bp) - go to previous buffer
:bd - delete a buffer (close a file)
:sp filename - Open a file in a new buffer and split window
ctrl+ws - Split windows
ctrl+ww - switch between windows
ctrl+wq - Quit a window
ctrl+wv - Split windows vertically
hide - close current window
:only - keep only this window open
:ls - show current buffers
:b 2 - open buffer Read more...
vi
All posts tagged vi
If your linux distribution comes with a "normal" vi editor (this means, whithout colored interface and reading), you can "upgrade" your vi with a more readable interface. Some versions before, after Vim5, vim supports syntax highlighting by default, but if it is not enabled, you can modify your .vimrc and add next lines:
syntax on
If using a dark background within the editing area and syntax highlighting
turn on this option as well
set background=dark
And to have a jump to the last position Read more...