소스 검색

add softtabstop option and fix indent

pull/1/head
10sr 12 년 전
부모
커밋
d3d069709d
1개의 변경된 파일17개의 추가작업 그리고 16개의 파일을 삭제
  1. +17
    -16
      .vimrc

+ 17
- 16
.vimrc 파일 보기

@@ -46,6 +46,7 @@ set visualbell "ビープしない
set browsedir=buffer "バッファで開いているファイルのディレクトリ

set tabstop=4 "タブの画面上での幅
set softtabstop=4
set shiftwidth=4 "width of indent
set expandtab "タブをスペースに展開する
set autoindent "オートインデント
@@ -117,21 +118,21 @@ augroup END

" save window position and size
if has('gui_running')
let g:save_window_file = expand('~/.vimwinpos')
augroup SaveWindow
autocmd!
autocmd VimLeavePre * call s:save_window()
function! s:save_window()
let options = [
\ 'set columns=' . &columns,
\ 'set lines=' . &lines,
\ 'winpos ' . getwinposx() . ' ' . getwinposy(),
\ ]
call writefile(options, g:save_window_file)
endfunction
augroup END
let g:save_window_file = expand('~/.vimwinpos')
augroup SaveWindow
autocmd!
autocmd VimLeavePre * call s:save_window()
function! s:save_window()
let options = [
\ 'set columns=' . &columns,
\ 'set lines=' . &lines,
\ 'winpos ' . getwinposx() . ' ' . getwinposy(),
\ ]
call writefile(options, g:save_window_file)
endfunction
augroup END

if filereadable(g:save_window_file)
execute 'source' g:save_window_file
endif
if filereadable(g:save_window_file)
execute 'source' g:save_window_file
endif
endif

불러오는 중...
취소
저장