2015-11-23 02:14:11 +00:00
|
|
|
" ######
|
|
|
|
" # Plugin File for Vim Using
|
|
|
|
" # Vim-Plug: A minimalist Vim plugin manager
|
|
|
|
" ###
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2015-11-23 02:14:11 +00:00
|
|
|
" ###
|
|
|
|
" Quick-Reference
|
|
|
|
" ===
|
|
|
|
" :PlugInstall - install plugins
|
|
|
|
" :PlugUpdate - install/update plugins
|
|
|
|
" :PlugUpgrade - upgrade vim-plug
|
|
|
|
" ###
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2015-11-23 02:14:11 +00:00
|
|
|
" ######
|
2015-11-28 02:10:39 +00:00
|
|
|
" # Fetch & Install Self
|
|
|
|
" ###
|
|
|
|
|
|
|
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
|
|
|
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
|
|
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
autocmd VimEnter * PlugInstall | source $MYVIMRC
|
|
|
|
endif
|
|
|
|
|
|
|
|
" ######
|
|
|
|
" # Fetch & Install Plugins
|
2015-11-23 02:14:11 +00:00
|
|
|
" ###
|
|
|
|
|
|
|
|
call plug#begin('~/.vim/bundle')
|
2015-10-27 23:10:16 +00:00
|
|
|
|
|
|
|
" Current list of plugins
|
2015-11-23 02:14:11 +00:00
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
Plug 'tpope/vim-vinegar'
|
2016-04-06 02:21:53 +00:00
|
|
|
Plug 'tpope/vim-tbone'
|
|
|
|
Plug 'tpope/vim-surround'
|
|
|
|
Plug 'vimwiki/vimwiki'
|
2016-04-28 17:49:53 +00:00
|
|
|
Plug 'tpope/vim-unimpaired'
|
2016-10-09 00:02:14 +00:00
|
|
|
Plug 'tpope/vim-commentary'
|
2017-01-28 01:52:36 +00:00
|
|
|
Plug 'ajh17/VimCompletesMe'
|
2016-03-23 02:08:47 +00:00
|
|
|
" Plug 'ap/vim-templates'
|
2016-04-06 02:21:53 +00:00
|
|
|
|
2016-10-09 00:02:14 +00:00
|
|
|
" Ruby Related
|
|
|
|
Plug 'tpope/vim-endwise'
|
|
|
|
Plug 'vim-ruby/vim-ruby'
|
2016-04-06 02:21:53 +00:00
|
|
|
|
|
|
|
" Appearance Related
|
2015-11-23 02:14:11 +00:00
|
|
|
Plug 'mhinz/vim-startify'
|
2016-04-06 02:21:53 +00:00
|
|
|
Plug 'bling/vim-airline'
|
2016-12-10 00:24:16 +00:00
|
|
|
Plug 'dikiaap/minimalist'
|
2017-01-28 01:52:36 +00:00
|
|
|
Plug 'junegunn/goyo.vim'
|
2016-03-23 02:08:47 +00:00
|
|
|
|
|
|
|
" Syntax Related
|
|
|
|
Plug 'scrooloose/syntastic'
|
2016-04-06 02:21:53 +00:00
|
|
|
Plug 'tmux-plugins/vim-tmux'
|
2016-10-24 22:10:35 +00:00
|
|
|
Plug 'rondale-sc/vim-spacejam'
|
2015-11-23 02:14:11 +00:00
|
|
|
|
|
|
|
call plug#end()
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2015-11-23 02:14:11 +00:00
|
|
|
" ######
|
|
|
|
" # Configs
|
|
|
|
" ###
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2016-12-10 00:24:16 +00:00
|
|
|
" Colorscheme - minimalist configuration
|
|
|
|
set t_Co=256
|
|
|
|
colorscheme minimalist
|
|
|
|
|
2015-11-23 02:14:11 +00:00
|
|
|
" Airline configuration
|
|
|
|
set laststatus=2
|
|
|
|
let g:airline_powerline_fonts = 1
|
2015-11-28 02:10:39 +00:00
|
|
|
|
|
|
|
" Startify configs
|
2016-11-21 17:26:01 +00:00
|
|
|
let g:startify_files_number = 6
|
2015-11-28 02:10:39 +00:00
|
|
|
let g:startify_change_to_dir = 1
|
2016-11-21 17:26:01 +00:00
|
|
|
let g:startify_bookmarks = [
|
|
|
|
\ '~/.dotfiles/vim/vimrc',
|
|
|
|
\ '~/.dotfiles/vim/vimrc-plugins',
|
|
|
|
\ '~/.dotfiles/tmux/tmux.conf',
|
|
|
|
\ '~/.dotfiles/makefile',
|
|
|
|
\ ]
|
2015-11-28 02:10:39 +00:00
|
|
|
|
2016-03-23 02:08:47 +00:00
|
|
|
" Syntastic configs
|
|
|
|
let g:syntastic_always_populate_loc_list = 1
|
|
|
|
let g:syntastic_auto_loc_list = 1
|
|
|
|
let g:syntastic_check_on_open = 1
|
|
|
|
let g:syntastic_check_on_wq = 1
|
|
|
|
|
|
|
|
let g:syntastic_sh_checkers = [ 'shellcheck', 'sh' ]
|
2016-10-27 22:01:24 +00:00
|
|
|
|
|
|
|
" Vimwiki Configs
|
2017-01-28 01:52:36 +00:00
|
|
|
let g:vimwiki_list = [{'auto_tags': 1}]
|
2016-10-27 22:01:24 +00:00
|
|
|
"" Insert my journal template, and the current date
|
|
|
|
nnoremap <silent><leader>tj :call NewJournal()<CR>
|
|
|
|
function! NewJournal()
|
|
|
|
.-1read ~/.vim/templates/journal
|
|
|
|
s/Date/\=strftime("%A, %B %d")/
|
|
|
|
endfunction
|
2017-01-28 01:52:36 +00:00
|
|
|
|
|
|
|
"" Easy mappings for previous/next day, since defaults don't work
|
|
|
|
nnoremap <silent><leader>dp :VimwikiDiaryPrevDay<CR>
|
|
|
|
nnoremap <silent><leader>dn :VimwikiDiaryNextDay<CR>
|