Skip to content

Instantly share code, notes, and snippets.

@hundredwatt
Created October 6, 2011 18:34
Show Gist options
  • Save hundredwatt/1268231 to your computer and use it in GitHub Desktop.
Save hundredwatt/1268231 to your computer and use it in GitHub Desktop.
Jason's VimRC
"Replace tabs with 2 spaces
set expandtab
set softtabstop=2
set shiftwidth=2
set tabstop=2
"Move all swap files to .vim/temp
set backupdir=~/.vim/temp
set directory=~/.vim/temp
"Syntax Highlight
syntax on
filetype plugin indent on
"Autoident
set ai
"Set Colorscheme
colorscheme koehler
"Show cursor position in bottom left
set ruler
"Set window title to vim filename
let &titlestring = expand("%:t")
if &term == "screen"
set t_ts=k
set t_fs=\
endif
if &term == "screen" || &term == "xterm"
set title
endif
let &titleold=" "
"F1 Pastes Clipboard Contents
map <F1> :r! pbpaste
"F7 Turns on Spell Check
map <F7> :set spell!
map <F9> :noh
"Disable arrow keys
map <down> <nop>
map <left> <nop>
map <right> <nop>
map <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
imap <up> <nop>
"Spacebar naos to colon in command mode
nnoremap <Space> :
"Rainbow highlighting for parenthesis (for Lisp)
let vimclojure#ParenRainbow = 1
nmap <F4> :vsplit<bar>wincmd l<bar>exe "norm! Ljz<c-v><cr>"<cr>:set scb<cr>:wincmd h<cr>:set scb<cr>
set showcmd
set hlsearch
nmap <silent> <C-N> :silent noh<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment