- Set Commands:
:set number - Add line-numbers to the display
:set nonumber - turn off line-numbers.
- Command-line:
vi file +line - open file in vi at the specified line number.
vi -O file1 file2 - open file 1 and file 2 side by side.
- In editor commands:
:vs [file] - open vertical parallel window.
CTRL-w {up,down,left,right} - used to move between virtual editor windows.
K - Lookup up the man-page for the word indicated by the cursor
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
# Default screens
screen -t shell1 0
screen -t shell2 1
screen -t [title] [id] [command]