Skip to content

Instantly share code, notes, and snippets.

@nekonenene
Created January 6, 2016 09:49
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 nekonenene/235aea827c69e2f3d51c to your computer and use it in GitHub Desktop.
Save nekonenene/235aea827c69e2f3d51c to your computer and use it in GitHub Desktop.
vim 設定
" インデントの設定
set tabstop=4
set shiftwidth=4
set softtabstop=0
set smartindent
set smarttab
set ruler
set number " 行番号
set whichwrap+=h,l,<,>
set hidden
" Emacs風 コマンドモード
cnoremap <C-a> <C-b>
cnoremap <C-e> <C-e>
set autoread
" コマンドラインモードで、TABキーでの補完
set wildchar=<C-Z>
set virtualedit=block
set history=50
set wrapscan " 行末まで検索したら行頭へ
set showmatch " かっこの対応関係をハイライト
set hlsearch " 検索に該当する箇所をハイライト
set showcmd
set statusline+=%<%F
"文字コード表示
set statusline+=[%{has('multi_byte')&&\&fileencoding!=''?&fileencoding:&encoding}]
set fileformat=unix
set fileformats=unix,dos,mac
set fileencoding=utf-8
menu User.Encode.reload.UTF :e ++enc=utf-8<CR>
menu User.Encode.convert.UTF :set fenc=utf-8<CR>
menu User.Format.Unix :e ++ff=unix<CR>
"OSのクリップボードを使用する
set clipboard+=unnamed
""ターミナルでマウスを使用できるようにする
if has ("mouse")
set mouse=a
set guioptions+=a
set ttymouse=xterm2
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment