= vim = Console text editor for *NIX. == Zenburn look and feel for Vim and GVim == Edit ~/.vimrc and add the following {{{ set t_Co=256 colors zenburn }}} Run the following: * mkdir -p ~/.vim/colors * cd ~/.vim/colors * wget https://github.com/jnurmine/Zenburn/blob/master/colors/zenburn.vim Zenburn colors: [[attachment:zenburn.vim]] == Open file == * Escape * :o! == Exit without save == * Escape * :q! == Save and exit == * Escape * :wq == Insert == * Escape * Place cursor * Press i == Delete line == * Escape * Place cursor * Press dd == Delete character == * Escape * Place cursor * Press x == Undo == * Escape * Press u == Copy == * Escape * Place cursor on start * Press v * Select with cursor * Press y == Cut == * Escape * Place cursor on start * Press v * Select with cursor * Press d == Paste == * Escape * Place cursor on destination * Press p == Search and replace all occurrences == * Escape * :%s/oldString/newString/g == Search == * Escape * /searchPatern * go to previous and next with '''n''' and '''p''' == Go to the top of a file == * Escape * :0 or gg == Go to the end of a file == * Escape * G == Vi settings == Settings are saved in '''~/.exrc'''. For OpenSolaris/OpenIndiana {{{ set number set showmode }}} == Add extension wsgi == File /usr/share/vim/vim74/filetype.vim in Ubuntu 14.04 LTS (Trusty). {{{ #line 1577 in Ubuntu au BufNewFile,BufRead *.py,*.pyw,*.wsgi setf python }}} == vimrc with key mappings == {{{ filetype plugin on filetype indent on colors zenburn set t_Co=256 set nocompatible set tabstop=4 set shiftwidth=4 set expandtab set cursorline set number "This is a comment in vimrc. It does not have a closing quote map :previous map :next "save map :w " quit all map :qa! " go to shell map :sh " write curr date time map! =strftime('%Y-%m-%dT%H:%M:%S') " paste map p " undo map u " refresh map :edit! " go beginning map gg=G " search map / " start marking map v " copy map y " select all map ggVG }}}