Skip to content

Instantly share code, notes, and snippets.

@iwakou
Created February 11, 2012 19:16
Show Gist options
  • Save iwakou/1803684 to your computer and use it in GitHub Desktop.
Save iwakou/1803684 to your computer and use it in GitHub Desktop.
iwakou's vimrc
syntax on "シンタックスハイライト
set cursorline "カーソル行をハイライトする
set number "行番号を表示する
set nobackup "バックアップを取らない
set hidden "変更中のファイルでも、保存しないで他のファイルを表示
set incsearch "インクリメンタルサーチを行う
set showmatch "閉じ括弧が入力されたとき、対応する括弧を表示する
set autoindent "新しい行のインデントを現在行と同じにする
set shiftwidth=4 "シフト移動幅
set smarttab "行頭の余白内で Tab を打ち込むと、'shiftwidth' の数だけインデントする。
set tabstop=4 "ファイル内の <Tab> が対応する空白の数
"初期設定不十分なvim向け設定
set mouse=a "マウスを有効にする(対応ターミナルのみ)
set backspace=start,eol,indent "バックスペースの振る舞いを一般的なエディタと合わせる
set whichwrap=b,s,[,],<,>,~ "カーソル移動を一般的なエディタと合わせる
set wildmenu wildmode=list:full "コマンドラインモードで入力補完を有効にする
set laststatus=2 "ステータスラインを常に表示
"ステータスラインに文字コードと改行文字を表示する
set statusline=%<%F\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
".ejsファイルを.htmlのシンタックスと判断する
augroup filetypedetect
au! BufRead,BufNewFile *.ejs setfiletype html
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment