행복아울렛

vim 설정[.vimrc] 본문

vim

vim 설정[.vimrc]

붕탱구 2007. 6. 16. 01:59

color vc

syn on
set history=500             " keep 100 lines of command line history
set hlsearch
set ruler
set tabstop=4
set shiftwidth=4
set nobackup
set nocompatible
set fileencoding=korea
"set enc=utf-8
set showmatch
set is
set dip=iwhite,icase,vertical

"C indent 설정하기
set nocp incsearch
set cinoptions=:0,p0,t0
set cinwords=if,else,while,do,for,switch,case
set formatoptions=tcqr
set cindent
"set ic

"below script for match it
"source $VIMRUNTIME/macros/matchit.vim
"runtime macros/matchit.vim

map <F1> :q!<CR>
map <F3> :nohlsearch<CR>
map <F4> :set number!<CR>
map <F5> :set ts=8<CR>
map <F7> I/* <ESC>A */<ESC>
map <F8> :s/\/\* \(.*\) \*\//\1/
map <F9> :w!<CR>
map <F10> :set columns=181<cr><C-w>=zR]c
map ; ebve<C-Insert>

map ,1 :b1<CR>
map ,2 :b2<CR>
map ,3 :b3<CR>
map ,4 :b4<CR>
map ,5 :b5<CR>
map ,6 :b6<CR>
map ,7 :b7<CR>
map ,8 :b8<CR>
map ,8 :b8<CR>
map ,9 :bp<CR>
map ,0 :bn<CR>

imap <C-j> <DOWN>
imap <C-k> <UP>
imap <C-h> <LEFT>
imap <C-l> <RIGHT>
"imap <TAB> <Space><Space><Space><Space>

map -
map =
map <space> l
vmap <space> zf

autocmd FileType html set formatoptions+=tl
autocmd FileType css set smartindent
autocmd FileType html,css set noexpandtab tabstop=2

abbr p%      printf("\n", );
abbr inculde include
abbr q1 q!
abbr Q1 q!
abbr Wq wq
abbr WQ wq
abbr wQ wq
abbr wq1 wq!
abbr WQ1 wq!
abbr Wq1 wq!
abbr wQ1 wq!
abbr #b /************************************************************
abbr #e ************************************************************/
abbr THe The
abbr ds diffs
abbr 2html runtime! syntax/2html.vim

set noeb
set commentstring=//%s
set lines=50
set columns=90
winpos 700 0
"set tags=D:\p4\KTF\src\tags
set tags=D:\depot\dp\shibumi\releases_7.2.7-br\src\tags
set path=c:\Program\ Files\\Microsoft\ Visual\ Studio\ 8\\VC\PlatformSDK\include

Comments