mainiak
4/19/2013 - 11:04 AM

vimrc.md

My .vimrc

# vimtutor
vim ~/.vimrc

in vim

:r $VIMRUNTIME/vimrc_example.vim
:wq

in shell

cat >> ~/.vimrc <<EOF
" my setting
set background=dark
set number
set ignorecase
set mouse=

set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2

# hiding buffers - don't know why
set hidden

"show tabs, EOL etc.
set list
set lcs=tab:»·   "show tabs
set lcs+=trail:· "show trailing spaces

" write tag name and press CTRL+T
imap <C-t> <></><Esc>5hdiwp3lpT>
EOF