VIM

2013/04/11 Linux

# License: (CC 3.0) BY-NC-SA

.vimrc

" always show status bar
set laststatus=2
" tabstop
set tabstop=4
" unify indent
set softtabstop=4
set shiftwidth=4
set expandtab
" end line whitespace alert
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
" end line $
"set list
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" highlight string
set hls

Column Insert: ctrl+v enter Visual Block mode, shift+i enter Insert mode, then you call do column insert. NOTE, inserted characters will be displayed only on the first line.

Search

    Table of Contents