Skip to content

Instantly share code, notes, and snippets.

@beejhuff
Forked from amacgregor/.vimrc
Created April 19, 2016 22:44
Show Gist options
  • Select an option

  • Save beejhuff/f157ebac0b35e402e7fe27c36bc96689 to your computer and use it in GitHub Desktop.

Select an option

Save beejhuff/f157ebac0b35e402e7fe27c36bc96689 to your computer and use it in GitHub Desktop.

Revisions

  1. @amacgregor amacgregor created this gist Dec 28, 2015.
    122 changes: 122 additions & 0 deletions .vimrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,122 @@
    """""""""""""""""""""""""""""""""""""
    " Allan MacGregor Vimrc configuration
    """""""""""""""""""""""""""""""""""""
    set nocompatible
    syntax on
    set nowrap

    """" START Vundle Configuration

    " Disable file type for vundle
    filetype off " required

    " set the runtime path to include Vundle and initialize
    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin()

    " let Vundle manage Vundle, required
    Plugin 'gmarik/Vundle.vim'

    " Vundle Plugin list
    Plugin 'tpope/vim-markdown'
    Plugin 'jtratner/vim-flavored-markdown'
    Plugin 'scrooloose/nerdtree'
    Plugin 'powerline/powerline'
    Plugin 'tomasr/molokai'
    Plugin 'majutsushi/tagbar'
    Plugin 'jakedouglas/exuberant-ctags'
    Plugin 'tpope/vim-fugitive'
    Plugin 'kablamo/vim-git-log'
    Plugin 'gregsexton/gitv'
    Plugin 'godlygeek/tabular'
    Plugin 'junegunn/limelight.vim'
    Plugin 'zenorocha/dracula-theme', {'rtp': 'vim/'}
    Plugin 'tobyS/vmustache'
    Plugin 'tobyS/pdv'
    Plugin 'tomtom/tcomment_vim'
    Plugin 'reedes/vim-pencil'
    " Elixir Support
    Plugin 'elixir-lang/vim-elixir'
    Plugin 'mmorearty/elixir-ctags'
    Plugin 'mattreduce/vim-mix'
    Plugin 'avdgaag/vim-phoenix'
    Plugin 'BjRo/vim-extest'
    Plugin 'frost/vim-eh-docs'
    Plugin 'junegunn/fzf'

    "Plugin 'joonty/vim-phpqa'
    "Plugin 'rafi/vim-phpspec'
    "Plugin 'bling/vim-airline'
    "Plugin 'SirVer/ultisnips'

    " OSX stupid backspace fix
    set backspace=indent,eol,start

    call vundle#end() " required
    filetype plugin indent on " required

    """" END Vundle Configuration

    map <C-n> :NERDTreeToggle<CR>
    map <C-m> :TagbarToggle<CR>
    " Show linenumbers
    set number
    set ruler

    set tabstop=4
    set shiftwidth=4
    set smarttab
    set expandtab

    " PHP documenter script bound to Control-P
    autocmd FileType php inoremap <C-p> <ESC>:call pdv#DocumentWithSnip()<CR>i
    autocmd FileType php nnoremap <C-p> :call pdv#DocumentWithSnip()<CR>
    let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates_snip"

    " Theme...
    set t_Co=256
    "set background=dark
    "colorscheme molokai
    syntax on
    color Dracula

    "let g:airline_theme='luna'
    ")let g:airline_powerline_fonts=1

    source /usr/local/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim
    set laststatus=2

    let g:phpqa_codesniffer_args = "--standard=PSR2"

    augroup markdown
    au!
    au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown
    augroup END

    let g:pencil#wrapModeDefault = 'soft' " default is 'hard'

    augroup pencil
    autocmd!
    autocmd FileType markdown,mkd call pencil#init()
    autocmd FileType text call pencil#init()
    augroup END

    " Elixir Tagbar config
    let g:tagbar_type_elixir = {
    \ 'ctagstype' : 'elixir',
    \ 'kinds' : [
    \ 'f:functions',
    \ 'functions:functions',
    \ 'c:callbacks',
    \ 'd:delegates',
    \ 'e:exceptions',
    \ 'i:implementations',
    \ 'a:macros',
    \ 'o:operators',
    \ 'm:modules',
    \ 'p:protocols',
    \ 'r:records',
    \ 't:tests'
    \ ]
    \ }