Skip to content

Instantly share code, notes, and snippets.

@dylanmei
Created April 1, 2014 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanmei/9924481 to your computer and use it in GitHub Desktop.
Save dylanmei/9924481 to your computer and use it in GitHub Desktop.
vimrc
execute pathogen#infect()
Helptags
set background=dark
set encoding=utf-8
set backupdir=~/tmp
" http://vim.wikia.com/wiki/Mac_OS_X_clipboard_sharing
set clipboard=unnamed
" http://tedlogan.com/techblog3.html
set softtabstop=2 tabstop=2 shiftwidth=2 expandtab
" allow switching of buffers before saving them
set hidden
" enable filetype detection
filetype on
filetype plugin on
filetype indent on
set list " show invisible characters
set listchars=" " reset the listchars
set listchars=tab:\ \ " a tab should display as " "
" show trailing spaces as dots
set listchars+=trail:·
" The character to show in the last column when wrap is off and the line continues beyond the right of the screen
set listchars+=extends:>
" The character to show in the last column when wrap is off and the line continues beyond the right of the screen
set listchars+=precedes:<
let mapleader=" "
nnoremap <Leader>f :Unite file<cr>
nnoremap <Leader>b :Unite buffer<cr>
nnoremap <Leader>u :Unite -start-insert file_rec/async<cr>
nnoremap <Leader>e :VimFiler<cr>
" Golang
au FileType go set softtabstop=4 tabstop=4 shiftwidth=4 noexpandtab
au FileType go nnoremap <Leader>d :GoDef<CR>
if filereadable(expand('~/.vimrc_local'))
execute 'source' expand('~/.vimrc_local')
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment