Skip to content

Instantly share code, notes, and snippets.

@anklos
Created June 27, 2013 06:08
Show Gist options
  • Save anklos/5874308 to your computer and use it in GitHub Desktop.
Save anklos/5874308 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
filetype plugin indent on
" github vim plugins
Bundle 'scrooloose/nerdtree'
Bundle 'ervandew/supertab'
" snippet
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle "honza/snipmate-snippets"
Bundle 'garbas/vim-snipmate'
Bundle 'tpope/vim-fugitive'
" ctrl p"
Bundle 'kien/ctrlp.vim'
" my own
set list!
set listchars=tab:>.,trail:.,extends:#,nbsp:.
syntax on
set backspace=2 " more powerful backspacing
set tabstop=2
set softtabstop=2
set expandtab
set autoindent
set shiftwidth=2
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
colorscheme desert
set guifont=Menlo:h18
set guioptions-=T
set number
set tags=tags
map .t :NERDTree<cr>
" set custom file extension to vim syntax highlighting
au BufNewFile,BufRead *.thor set filetype=ruby
" The default for 'backspace' is very confusing to new users, so change it to a
" more sensible value. Add "set backspace&" to your ~/.vimrc to reset it.
set backspace=indent,eol,start
" Disable localized menus for now since only some items are translated (e.g.
" the entire MacVim menu is set up in a nib file which currently only is
" translated to English).
set langmenu=none
"if exists('+colorcolumn')
" set colorcolumn=80
"endif
" hi ColorColumn ctermbg=lightgrey guibg=lightgrey
function Mess()
if !&binary && &filetype != 'diff'
normal mz
normal Hmy
%s/\s\+$//e
normal 'yz<CR>
normal `z
%s/\t/\ \ /g
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment