Created
July 11, 2013 02:04
-
-
Save yaotti/5971930 to your computer and use it in GitHub Desktop.
vimをless代わりに使う ref: http://qiita.com/yaotti/items/7ed0cde717e4f802212b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 " 大文字小文字をいい具合に区別する |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim -R app/models/item.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment