개발, 웹, 블로그/Linux 상식

개인적으로 쓰는 VIM 옵션 정리

삼성동고양이 2018. 3. 5. 16:35
반응형



1. Vuldle

call vundle#begin()

Plugin 'VundleVim/Vundle.vim'

Plugin 'The-NERD-tree'

Plugin 'ctrlpvim/ctrlp.vim'

call vundle#end()



2. Function Mapping
map <F2> :ToggleBufExplorer<CR>
map <F7> :NERDTreeToggle<CR>


3. Tab and Space Optimize 

highlight ExtraWhiteSpace ctermbg=red guibg=red    "Extra White Space 빨간색 표시

match ExtraWhiteSpace /\s\+$/                            

set list listchars=tab:→\                                        "Tab 문자 화살표 표시


4. CtrlP 옵션

let g:ctrlp_custom_ignore = {

  \ 'dir':  '\v[\/](\.(git|hg|svn)|\_site)$',

  \ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg|o)$',

\}


let g:ctrlp_by_filename = 1

let g:ctrlp_regexp = 1

let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:100,results:100'

let g:ctrlp_max_files = 0


let g:ctrlp_working_path_mode = ''


let g:ctrlp_max_files = 0


let g:ctrlp_working_path_mode = 0


set wildignore+=*/tags


5. ETC...
set nu
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set hls
syntax on





VIM이 젤조음


반응형