• ctrl e
:set nu
:set nonu
:set relativenumber
• ctrl g
• ctrl e
• z <enter>
• zz <enter>
• z - <enter>
$ vim -o dummy1.txt dummy2.txt
$ vim -O dummy1.txt dummy2.txt
• ctrl-ws ctrl-wv ctrl-wr ctrl-wc ctrl-wq
$ man vim
$ vimtutor
: help user-manual
• file:///usr/share/doc/vim-doc/html/index.html
• vim.org/docs.php
• vim-adventures.com
• vim.org
BASHRC
: find .bashrc
$ vim ~/.bashrc
> EDITOR=/usr/bin/vim
> VISUAL=$EDITOR
> export EDITOR VISUAL
VIMRC
$ vim ~/.vimrc
> " GENERAL
> syntax on
> set number
> set relativenumber
> set ruler
> set mouse=a
> "set hls
> set background=dark
> set encoding=utf8
> " INDENT
> set autoindent
> " TABs
> set tabstop=3
> set softtabstop=3
> set shiftwidth=3
> set expandtab
> " MAPs
> nmap <leader>w :w!<cr>
> map <F2> :echo 'Current time is ' . strftime('%c')<CR>
# apt-get install vim vim-doc vim-scripts
$ dpkg -L vim-doc
# update-alternatives --config editor
$ vim --version | less