Skip to content

Instantly share code, notes, and snippets.

@adam-stokes
Created July 23, 2013 20:41
Show Gist options
  • Save adam-stokes/6065987 to your computer and use it in GitHub Desktop.
Save adam-stokes/6065987 to your computer and use it in GitHub Desktop.
vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set background=dark
colorscheme jellybeans
set textwidth=79
set formatoptions=qrn1
if exists('+colorcolumn')
set colorcolumn=80
endif
set list
set listchars=tab:.\ ,trail:.,extends:#,nbsp:.
if has("gui_running")
set guifont=Ubuntu\ Mono\ 13
set list
set listchars=tab:▸\ ,eol:¬,extends:#,nbsp:.,trail:.
set guioptions-=r
set go-=L
set go-=T
endif
set numberwidth=5
set cursorline
set cursorcolumn
set guicursor+=a:blinkon0
nmap <c-up> ddkP
nmap <c-down> dd
nmap + <c-w>+
nmap _ <c-w>-
nmap > <c-w>>
nmap < <c-w><
vmap <c-up> xkP`[V`]
vmap <c-down> xp`[V`]
au BufEnter * silent! lcd %:p:h " auto change directory of current file
au WinLeave * set nocursorline nocursorcolumn
au WinEnter * set cursorline cursorcolumn
set cursorline cursorcolumn
if ! has('gui_running')
set ttimeoutlen=10
augroup FastEscape
autocmd!
au InsertEnter * set timeoutlen=0
au InsertLeave * set timeoutlen=1000
augroup END
endif
autocmd GUIEnter * set vb t_vb= " for your GUI
autocmd VimEnter * set vb t_vb=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment