VIM v19-01-30
homepage documentation manual reference faq wiki |
---|
Image source: Willi Glenz - Screenshot vim
[18] :set linebreak nolinebreak
[01] $ firefox file:///usr/share/doc/vim-doc/html/index.html &
[02] $ firefox vim-adventures.com &
[03] $ vimtutor
[04] $ man vim
[05] $ vim -O ~/.vimrc ~/.bashrc ^ww ^wr ^wc ^wq
[06] $ vim ~/.bashrc ~/.bashrc :args :ls :next :previous :n :N :bn :bp
[07] j k h l
[08] z<enter> zz z-
[09] ^g • ^e ^n • ^u ^d
[10] [InsertMode] ^n
[11] ^ws ^wv ^wr ^wc ^wq
[12] zf5j zo zc zd
[13] .
[14] :set nu nonu
[15] :set relativenumber norelativenumber
[16] :set hls nohls *
[17] :set ruler noruler
[18] :set linebreak nolinebreak
[19] :help user-manual
[20] :ab :abc :unab ^v
[99] :wq
:ab psvm public static void main(String[] args) {<CR>}<Esc>ko
:ab sysout System.out.println("");<Esc>2hi
EDITOR=/usr/bin/vim
VISUAL=$EDITOR
export EDITOR VISUAL
" 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>
" ABBREVIATIONS
:ab psvm public static void main(String[] args) {<CR>}<Esc>ko
:ab sysout System.out.println("");<Esc>2hi
# apt-get install vim vim-doc vim-scripts
$ dpkg -L vim-doc
# update-alternatives --config editor
$ vim --version | less