Skip to content

Instantly share code, notes, and snippets.

@dnmiller
Created October 12, 2012 03:39
Show Gist options
  • Save dnmiller/3877159 to your computer and use it in GitHub Desktop.
Save dnmiller/3877159 to your computer and use it in GitHub Desktop.
vimrc
" .---.
" / . \
" |\_/| |
" | | /|
" .----------------------------------------------------------------' |
" / .-. |
" | / \ |
" | |\_. | |
" |\| | /| MY .vimrc - Last updated whenever |
" | `---' | |
" | | Much shortened for use with spf13-vim |
" | | /
" | |----------------------------------------------------------'
" \ |
" \ /
" `---'
" -----------------------------------------------------------------------------
" Visual/Interface Preferences
" -----------------------------------------------------------------------------
" Default font in GUI (needs to be platform independent)
set guifont=Monaco:h13
" This seems to be the only way to get rid of bells for sure.
autocmd VimEnter * set visualbell t_vb=
set noerrorbells visualbell t_vb=
colorscheme solarized
" Turn on spell-checking in comments.
set spell spelllang=en_us
" Don't like the bars in spf13
let g:indent_guides_autocmds_enabled=0
let g:indent_guides_enable_on_vim_startup=0
" or the transparency
if has('gui_running')
set transparency=0
endif
" --------------------------------------------------------------------------
" Keymap Stuff
" --------------------------------------------------------------------------
" Quick map for the escape key. Just mash the right hand on the home row.
imap jkl <esc>
imap jlk <esc>
imap kjl <esc>
imap klj <esc>
imap ljk <esc>
imap lkj <esc>
" Time in miliseconds that we have to mash all 3 keys.
set timeoutlen=320
" These just navigate. Need to be redefined because spf13 does that kind of
" annoying thing where it maximizes after navigation.
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-h> <C-w>h
map <C-l> <C-w>l
" --------------------------------------------------------------------------
" Code Format Options
" --------------------------------------------------------------------------
" Use spaces, not tabs. Set the tabwidth to be 4, and use smart tabs to make
" tab deleting easier:
set textwidth=76
set tabstop=4
set shiftwidth=4
set softtabstop=4
" --------------------------------------------------------------------------
" Syntax Checking Options
" --------------------------------------------------------------------------
let g:syntastic_check_on_open=1
let g:syntastic_error_symbol='✗'
let g:syntastic_warning_symbol='⚠'
let g:syntastic_cpp_auto_refresh_includes = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment