Index

vim

start vim
vim
vim [file]...
start vim in read only mode
vim -R [file]...
view [file]...
pipe output of another command to vim
ls -la | vim -
open multiple files in horizontal panes
vim -o [file]...
open multiple files in vertical panes
vim -O [file]...
edit remote file via scp
vim scp://user@host//path

vimdiff

view diff between 2 files
vimdiff [file-a] [file-b]
gvimdiff [file-a] [file-b]
more info
https://vimhelp.org/usr_08.txt.html#08.7
https://vimhelp.org/diff.txt.html#vimdiff