Skip to content

Instantly share code, notes, and snippets.

@thata
Created October 29, 2012 00:52
Show Gist options
  • Save thata/3970763 to your computer and use it in GitHub Desktop.
Save thata/3970763 to your computer and use it in GitHub Desktop.
htkymtksの.vimrc
" vundle
set nocompatible
filetype off
set rtp+=~/.vim/vundle.git/
call vundle#rc()
Bundle 'unite.vim'
Bundle 'rails.vim'
Bundle 'git://github.com/vim-ruby/vim-ruby.git'
set tabstop=2
set shiftwidth=2
set expandtab
syntax on
filetype on
filetype indent on
filetype plugin on
"カーソルを表示行で移動する。物理行移動は<C-n>,<C-p>
nnoremap j gj
nnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk
" 挿入モードでのカーソル移動
inoremap <C-b> <Left>
inoremap <C-f> <Right>
"コマンドラインをEmacs風に移動
:cnoremap <C-A> <Home>
:cnoremap <C-F> <Right>
:cnoremap <C-B> <Left>
" grep後にcwinを表示
autocmd QuickFixCmdPost make,grep,grepadd,vimgrep,vimgrepadd cwin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment