Skip to content

Instantly share code, notes, and snippets.

@zillou
Created April 22, 2013 06:23
Show Gist options
  • Select an option

  • Save zillou/5432785 to your computer and use it in GitHub Desktop.

Select an option

Save zillou/5432785 to your computer and use it in GitHub Desktop.
my vim config file
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'snipMate'
Bundle 'ervandew/supertab'
Bundle 'tpope/vim-markdown'
Bundle 'tpope/vim-surround'
Bundle 'xmledit'
" Bundle 'scrooloose/syntastic'
filetype plugin indent on " required!
syntax enable
set encoding=utf8
let mapleader = ","
imap <C-e> <end>
imap <C-a> <home>
map <leader>, :FufCoverageFile! <CR>
map <TAB> :bn <CR>
map <S-TAB> :bp <CR>
map <C-L> :set list! list? <CR>
nmap <leader>n :set number! number?<cr>
nnoremap <f5> :!ctags -R<CR>
nnoremap <leader>p :set paste! paste?<CR>
nnoremap <leader>d :bd<CR>
nnoremap <leader>c :%s/\s\+$//e<CR>
" set list
set lcs=tab:▸\ ,trail:-,eol:¬
autocmd FileType python set tabstop=4 shiftwidth=4 expandtab
autocmd FileType ruby set tabstop=2 shiftwidth=2 expandtab
autocmd FileType java set tabstop=2 shiftwidth=2 expandtab
autocmd FileType sml set tabstop=2 shiftwidth=2 expandtab
set background=dark
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
set smarttab
hi PmenuSel ctermfg=white ctermbg=brown
hi Pmenu ctermfg=black ctermbg=lightgreen
" fuzzyfinder
let g:fuf_file_exclude = '\v\~$|\.(o|exe|dll|bak|orig|swp|class)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])'
let g:fuf_coveragefile_exclude = '\v\~$|\.(o|exe|dll|bak|orig|swp|class)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])'
colorscheme solarized
if has('gui_running')
imap <c-return> <ESC>o
set guifont=Monaco:h11
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment