Created
June 8, 2009 01:30
-
-
Save practicingruby/125566 to your computer and use it in GitHub Desktop.
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 vb t_vb= | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile | |
| set backspace=indent,eol,start | |
| set history=50 " keep 50 lines of command line history | |
| set ruler " show the cursor position all the time | |
| set showcmd " display incomplete commands | |
| set incsearch " do incremental searching | |
| map Q gq | |
| set autoindent " always set autoindenting on | |
| set shiftwidth=2 | |
| set tabstop=2 | |
| set expandtab | |
| set tw=80 | |
| set nohlsearch | |
| map <silent> <C-N> :se invhlsearch<CR> | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| syntax on | |
| if !exists( "*EndToken" ) | |
| function EndToken() | |
| let current_line = getline( '.' ) | |
| let braces_at_end = '{\s*\(|\(,\|\s\|\w\)*|\s*\)\?$' | |
| if match( current_line, braces_at_end ) >= 0 | |
| return '}' | |
| else | |
| return 'end' | |
| endif | |
| endfunction | |
| endif | |
| noremap <F5> :set invpaste paste?<Enter> | |
| imap <F5> <C-O><F5> | |
| set pastetoggle=<F5> | |
| map <C-T> :!ruby % -Ilib<CR> | |
| map <C-K> :!ruby %<CR> | |
| map <C-A> :!rake<CR> | |
| map <C-I> :!irb -Ilib --simple-prompt<CR> | |
| set nocompatible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment