public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
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
 
set autoindent " always set autoindenting on
set shiftwidth=2
set tabstop=2
set expandtab
set tw=80
set nohlsearch
 
set undodir=~/.vim/undodir
set undofile
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload
 
map <silent> <C-N> :se invhlsearch<CR>
map <C-Tab> :NERDTreeToggle<CR>
 
filetype on
filetype indent on
filetype plugin on
syntax on
 
noremap <F5> :set invpaste paste?<Enter>
set pastetoggle=<F5>
 
map <C-K> :!ruby %<CR>
map <C-A> :!rake<CR>
map <C-I> :!irb -Ilib --simple-prompt<CR>
 
noremap <F8> :set wrap linebreak textwidth=0 syntax=off<Enter>
noremap <F7> :set wrap linebreak textwidth=70 syntax=off<Enter>
 
set nocompatible
set fileencoding=utf8
set fileencodings=usc-born,utf8,prc
set visualbell t_vb=
set number
 
imap <F6> <ESC>:w!<CR>:!markdown % > %.html && open %.html<CR><CR>a

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.