Created
August 24, 2009 02:49
-
-
Save alvin2ye/173620 to your computer and use it in GitHub Desktop.
.vimrc
This file contains 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
filetype on " Automatically detect file types. | |
set nocompatible " We don't want vi compatibility. | |
"Add recently accessed projects menu (project plugin) | |
set viminfo^=! | |
" Minibuffer Explorer Settings | |
let g:miniBufExplMapWindowNavVim = 1 | |
let g:miniBufExplMapWindowNavArrows = 1 | |
let g:miniBufExplMapCTabSwitchBufs = 1 | |
let g:miniBufExplModSelTarget = 1 | |
" alt+n or alt+p to navigate between entries in QuickFix | |
map <silent> <m-p> :cp <cr> | |
map <silent> <m-n> :cn <cr> | |
" Change which file opens after executing :Rails command | |
let g:rails_default_file='config/database.yml' | |
" ======================= Agi-group begin ========================= | |
syntax enable | |
colorscheme evening | |
" vim 按键映射 | |
" map <F2> <C-w>w<C-w>_ | |
map <F3> :close <CR> | |
imap <F3> <ESC> :close <CR> | |
map <F4> :bd <CR> | |
map <F5> :!git status > d.diff <CR> :!git diff --cached >> d.diff <CR> :sp d.diff <CR><C-w>_ | |
map <F6> :up <CR> :!rake > t.log <CR> :sp t.log <CR><C-w>_ | |
map <F7> :up <CR> :!ruby -Itest % > t.log <CR> :sp t.log <CR><C-w>_ | |
map <F8> :B <CR> | |
imap <C-l> => | |
imap <C-k> <%= %> | |
map <F2> :tabn <CR> | |
imap <F2> <ESC> :tabn <CR> | |
map <F12> :Gist 166924 <CR> | |
imap <F12> :Gist 166924 <CR> | |
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment