set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-sensible' Plugin 'scrooloose/nerdtree' Plugin 'danilo-augusto/vim-afterglow' Plugin 'junegunn/fzf.vim' Plugin 'ycm-core/YouCompleteMe' Plugin 'elixir-editors/vim-elixir' Plugin 'slashmili/alchemist.vim' Plugin 'mattn/emmet-vim' Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-fugitive' Plugin 'jeffkreeftmeijer/vim-numbertoggle' Plugin 'mhinz/vim-mix-format' call vundle#end() set rtp+=/usr/local/opt/fzf map :NERDTreeToggle nnoremap K :YcmCompleter GoTo nnoremap :YcmCompleter RefactorRename nnoremap :Files filetype plugin indent on syntax on colorscheme afterglow set autoindent set hlsearch set number set relativenumber set shiftwidth=4 set tabstop=4 set scrolloff=5 set sidescrolloff=5 set ignorecase set smartcase let g:mapleader="," let g:mix_format_on_save = 1 let g:NERDDefaultAlign = 'left' let g:NERDCommentEmptyLines = 1 autocmd BufNewFile,BufRead *.md setlocal ft=markdown autocmd FileType elixir setlocal shiftwidth=2 tabstop=2 " Add optional packages. " " The matchit plugin makes the % command work better, but it is not backwards " compatible. " The ! means the package won't be loaded right away but when plugins are " loaded during initialization. if has('syntax') && has('eval') packadd! matchit endif