Skip to content

Instantly share code, notes, and snippets.

@anklos
Created June 27, 2013 06:08

Revisions

  1. anklos created this gist Jun 27, 2013.
    75 changes: 75 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,75 @@
    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