au Bufenter *.\(c\|cpp\|h\|py\) set expandtab " use space instead of tab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set cindent
set autoindent
set smartindent
set ruler
set nowrap
set nowrapscan
set visualbell
set fileformat=unix
set background=dark
set number
set backspace=indent,eol,start " make backspaces more powerful
set showcmd
set hlsearch
if has("syntax")
syntax on
endif
"---------------------------------------------------------------------
" Keymap configuration for code folding
"---------------------------------------------------------------------
map <f1> v]}zf " collapse
map <f2> zo " expand
"---------------------------------------------------------------------
" Keymap configuration for switching file buffer
"---------------------------------------------------------------------
map ,1 :b!1<cr> " switch to file buffer #1
map ,2 :b!2<cr> " switch to file buffer #2
map ,3 :b!3<cr>
map ,4 :b!4<cr>
map ,5 :b!5<cr>
map ,6 :b!6<cr>
map ,7 :b!7<cr>
map ,8 :b!8<cr>
map ,9 :b!9<cr>
map ,0 :b!10<cr> " switch to file buffer #10
map ,w :bw<cr> " close current file buffer
2013년 1월 30일 수요일
내가 사용 중인 vim 설정 .vimrc
피드 구독하기:
덧글 (Atom)