dotfiles/.vimrc

62 lines
1.4 KiB
VimL
Raw Normal View History

2019-07-11 20:25:11 +00:00
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 <C-n> :NERDTreeToggle<CR>
nnoremap K :YcmCompleter GoTo<CR>
nnoremap <D-r> :YcmCompleter RefactorRename
nnoremap <D-o> :Files<CR>
2015-10-04 21:00:02 +00:00
filetype plugin indent on
syntax on
2019-07-11 20:25:11 +00:00
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
2015-10-05 18:04:17 +00:00
autocmd BufNewFile,BufRead *.md setlocal ft=markdown
2019-07-11 20:25:11 +00:00
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