Browse Source

add softtabstop option and fix indent

pull/1/head
10sr 12 years ago
parent
commit
d3d069709d
1 changed files with 17 additions and 16 deletions
  1. +17
    -16
      .vimrc

+ 17
- 16
.vimrc View File

@@ -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

Loading…
Cancel
Save