Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created July 11, 2013 02:04
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 yaotti/5971930 to your computer and use it in GitHub Desktop.
Save yaotti/5971930 to your computer and use it in GitHub Desktop.
vimをless代わりに使う ref: http://qiita.com/yaotti/items/7ed0cde717e4f802212b
set nocompatible " おまじない
syntax on " シンタックスハイライト有効化
set number " 行数表示
nnoremap q :<C-u>q<CR> " q でvimを閉じる
colorscheme darkblue
" 行末のスペースを赤く表示する
highlight WhitespaceEOL ctermbg=red
match WhitespaceEOL /\s\+$/
" 検索関連
set hlsearch " マッチした箇所をハイライトする
set incsearch " インクリメンタルサーチ
set smartcase " 大文字小文字をいい具合に区別する
$ vim -R app/models/item.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment