2017-02-22 01:16:16 +00:00
|
|
|
" ==============================================================================
|
|
|
|
" vimrc-plugins: Plug-in configuration. Using vim-plug.
|
|
|
|
" ==============================================================================
|
2015-11-28 02:10:39 +00:00
|
|
|
|
2017-02-22 01:16:16 +00:00
|
|
|
" Fetch & Install Self
|
2015-11-28 02:10:39 +00:00
|
|
|
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
|
|
|
|
|
2015-11-23 02:14:11 +00:00
|
|
|
call plug#begin('~/.vim/bundle')
|
2017-02-22 01:16:16 +00:00
|
|
|
" Current list of plugins
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
Plug 'tpope/vim-vinegar'
|
|
|
|
Plug 'tpope/vim-tbone'
|
|
|
|
Plug 'tpope/vim-surround'
|
|
|
|
Plug 'vimwiki/vimwiki'
|
|
|
|
Plug 'tpope/vim-unimpaired'
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
Plug 'ajh17/VimCompletesMe'
|
2017-05-21 04:15:40 +00:00
|
|
|
Plug 'ludovicchabant/vim-gutentags'
|
2017-02-22 01:16:16 +00:00
|
|
|
" Ruby Related
|
|
|
|
Plug 'tpope/vim-endwise'
|
|
|
|
Plug 'vim-ruby/vim-ruby'
|
|
|
|
" Appearance Related
|
|
|
|
Plug 'dikiaap/minimalist'
|
|
|
|
Plug 'junegunn/goyo.vim'
|
|
|
|
" Syntax Related
|
|
|
|
Plug 'scrooloose/syntastic'
|
|
|
|
Plug 'tmux-plugins/vim-tmux'
|
2015-11-23 02:14:11 +00:00
|
|
|
call plug#end()
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2017-02-22 01:16:16 +00:00
|
|
|
" ==============================================================================
|
|
|
|
" Plugin Configuration
|
|
|
|
" ==============================================================================
|
2015-10-27 23:10:16 +00:00
|
|
|
|
2016-12-10 00:24:16 +00:00
|
|
|
" Colorscheme - minimalist configuration
|
|
|
|
colorscheme minimalist
|
|
|
|
|
2016-03-23 02:08:47 +00:00
|
|
|
" Syntastic configs
|
2017-05-28 15:39:20 +00:00
|
|
|
let g:syntastic_stl_format = "%W{ [•%w] }%E{ [!%e] }"
|
2016-03-23 02:08:47 +00:00
|
|
|
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-05-23 03:57:51 +00:00
|
|
|
let g:vimwiki_list = [{'path': '~/Workbench/vimwiki/', '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
|