BLOG ARTICLE vimrc | 1 ARTICLE FOUND

  1. 2007.12.07 .vimrc 설정

.vimrc 설정

OS/Linux 2007. 12. 7. 23:30
set cindent
set number
set shiftwidth=4
set smartindent
set ts=4

if has("syntax")
  syntax on           " Default to no syntax highlightning
endif

au FileType * set fo-=ro
set bg=dark
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif

func! Man()
let sm = expand("<cword>")
exe "!man -S 2:3:4:5:6:7:8:9:tcl:n:l:p:o ".sm
endfunc

if $LANG[0] == 'k' && $LANG[1] == 'o'
set fileencoding=korea
endif

map <F1> :call Man()<CR><CR>

map <F3> :q!<CR>
map <F4> :wq<CR>

map <F5> :norm i//<CR>
map <F6> :norm xx<CR>

map <F9> v]}zf
map <F10> zo
map <F11> zc

AND