"-----------------------------------------------------------------------------------------------------------------------
" Plug
"-----------------------------------------------------------------------------------------------------------------------
call plug#begin('~/.vim/plugged')

"General vim Plugins
Plug 'morhetz/gruvbox'
Plug 'nathanaelkane/vim-indent-guides' 
Plug 'thornycrackers/nerdtree', { 'tag': '4.1.0' }
Plug 'tpope/vim-commentary'   
Plug 'jistr/vim-nerdtree-tabs'   
Plug 'tpope/vim-fugitive'
Plug 'terryma/vim-multiple-cursors'
Plug 'scrooloose/syntastic'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tpope/vim-surround'
Plug 'tmhedberg/matchit'
Plug 'plasticboy/vim-markdown'
Plug 'thornycrackers/vim-options' " Vim options
Plug 'vimwiki/vimwiki'
Plug 'ledger/vim-ledger'
Plug 'ervandew/supertab'

" Add plugins to &runtimepath
call plug#end()
"-----------------------------------------------------------------------------------------------------------------------



"-----------------------------------------------------------------------------------------------------------------------
" Local Options
"-----------------------------------------------------------------------------------------------------------------------
set lazyredraw "Stops flashing from command above and helps save on processing
set backupdir^=~/.vim/vim-files/backups/
set directory=~/.vim/vim-files/swaps/
let g:vimwiki_list = [{'path': '~/Wiki/wiki', 'path_html': '~/Wiki/wiki_html/', 'ext': '.markdown'}]
au BufNewFile,BufRead *.ldg,*.ledger setf ledger | comp ledger