set nu set autoindent set cindent set smartindent set textwidth=79 set wrap set nowrapscan set visualbell set ruler set tabstop=4 set shiftwidth=4 set fencs=ucs-bom,utf-8,euc-kr.latin1 set fileencoding=euc-kr "set background=dark set ignorecase set hlsearch "mouse scroll enable set mouse=a "파일빨리 열어보는 map 관련 map ,1 :b!1 map ,2 :b!2 map ,3 :b!3 map ,4 :b!4 map ,5 :b!5 map ,6 :b!6 map ,7 :b!7 map ,8 :b!8 map ,9 :b!9 map ,0 :b!0 map ,w :bw "colorscheme evening syntax on "ctags file 옵션 들이다. "set tags=/root/Android_NexusOne_Source_2.3.3/tags "cscope 옵션 들이다. set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb if filereadable("./cscope.out") cs add cscope.out else cs add /usr/src/linux/cscope.out endif set csverb "ctags cscope macro setting if version >= 500 func! Sts() let st = expand("") exe "sts ".st endfunc nmap ,st :call Sts() func! Tj() let tj = expand("") exe "tj ".tj endfunc nmap ,tj :call Tj() endif func! Css() let css = expand("") new exe "cs find s ".css if getline(1) == "" exe "q!" endif endfunc nmap ,css :call Css() func! Csc() let csc = expand("") new exe "cs find c ".csc if getline(1) == "" exe "q!" endif endfunc nmap ,csc :call Csc() func! Csd() let csd = expand("") new exe "cs find d ".csd if getline(1) == "" exe "q!" endif endfunc nmap ,csd :call Csd() func! Csg() let csg = expand("") new exe "cs find g ".csg if getline(1) == "" exe "q!" endif endfunc nmap ,csg :call Csg() "Tag list환경 설정 =========================================== "F2를 눌렀을 때 symbol window를 나오게 하는 Renaming Instruction filetype on nmap :TlistToggle let Tlist_Ctags_Cmd = "/usr/bin/ctags" let Tlist_Inc_Winwidth = 0 let Tlist_Exit_onlyWindow = 0 let Tlist_Auto_Open = 0 let Tlist_Use_Right_Window = 1 "=================== "Source Explorer "======================== nmap :SrcExplToggle nmap h nmap j nmap k nmap l let g:SrcExpl_winHeight = 8 let g:SrcExpl_refreshTime = 100 let g:SrcExpl_jumpKey = "" let g:SrcExpl_gobackKey = "" let g:SrcExpl_isUpdateTags = 0 "========================== "NERD Tree "============================ let NERDTreeWinPos = "left" nmap :NERDTreeToggle "폴딩 "nmap v]}zf "폴딩 해제 "nmap zo "cscope option 들이다. "커서가 위치한 변수(함수)의 정의를 보고 싶은 경우, nmap :cs find g =expand("") "커서가 위치한 함수가 호출된 모든 경우를 보고 싶은 경우 nmap :cs find c =expand("") "커서가 위치한 변수(함수)의 모든 사용례를 보고싶은 경우 nmap :cs find s =expand("") set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'The-NERD-Tree' Plugin 'Source-Explorer-srcexpl.vim' Plugin 'SrcExpl' Plugin 'taglist.vim' Plugin 'AutoComplPop' Plugin 'snipMate' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' call vundle#end() "========== AutoCompletePop ========== function! InsertTabWrapper() let col=col('.')-1 if !col||getline('.')[col-1]!~'\k' return "\" else if pumvisible() return "\" else return "\\" end endif endfunction inoremap =InsertTabWrapper() hi Pmenu ctermbg=blue hi PmenuSel ctermbg=yellow ctermbg=black hi PmenuSbar ctermbg=blue