Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ea26cad1bd
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (39 sloc) 1.341 kb
""" Ben Bleything's Vim Setup
""" Based on the work of many others. See README.rdoc for credits.
""" Git Hubs:
""" Internet Electronic Mail:
""" K E Y B I N D I N G S
let mapleader=',' " set leader to ,
" format paragraphs (72 columns)
map ^^ {!}par w72qrg<CR>
" one-stroke window maximizing
map <C-H> <C-W>h<C-W><BAR>
map <C-L> <C-W>l<C-W><BAR>
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
" quick buffer switching
map <leader>[ :bprevious<CR>
map <leader>] :bnext<CR>
" shortcut to compile/run the current file
map <leader>r :w<CR>:make %<CR>
" shortcut to strip trailing whitespace
map <leader>s :s/\s\+$//g<CR>
map <leader>sa :%s/\s\+$//g<CR> " on all lines
" shortcut to delete blank lines
map <leader>db :g/^\s*$/d<CR>
" shortcut for titlecasing a line
map <leader>T :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR>
" fold helpers:
" Tab: toggle fold state
" Shift-Tab: toggle state of outermost fold
" Ctrl-Tab: open all folds
map <TAB> za
map <S-TAB> zA
map <C-TAB> zR
Jump to Line
Something went wrong with that request. Please try again.