Skip to content

Instantly share code, notes, and snippets.

@upsilon
Created April 2, 2010 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save upsilon/353343 to your computer and use it in GitHub Desktop.
Save upsilon/353343 to your computer and use it in GitHub Desktop.
" シフト移動幅
set shiftwidth=2
" タブ幅
set tabstop=2
" タブをスペースにして入力
set expandtab
" 行番号を表示
set number
" 新しい行のインデントを現在行と同じに
set autoindent
" →や⑨などの文字幅がおかしくなる現象を回避
set ambiwidth=double
syntax enable
" GUI用の設定 (配色 ・ フォント)
autocmd GUIEnter * set guifont="Bitstream Vera Sans Mono 10"
" バックアップファイル置き場
set backupdir=~/.vim/backup
" スワップファイル置き場
set directory=~/.vim/swap
set tags=~/.tags
set complete=.,w,b,u,t,i
" -- 言語別設定(Java)
" Java言語の標準のクラス名をハイライト
let java_highlight_all=1
" デバッグ文のハイライト
let java_highlight_debug=1
" 余分な空白に対してハイライト
let java_space_errors=1
" メソッド宣言文をハイライト
let java_highlight_functions=1
" ChangeLog設定
au BufRead,BufNewFile ChangeLog set noexpandtab
let g:changelog_timeformat = "%Y-%m-%d"
let g:changelog_username = "upsilon"
" Makefile設定
au BufRead,BufNewFile Makefile set noexpandtab
@upsilon
Copy link
Author

upsilon commented Apr 2, 2010

gistの使い方に悩んだ結果こうなった

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment