2017-02-22 01:16:16 +00:00
|
|
|
" ==============================================================================
|
|
|
|
" vimrc-plugins: Plug-in configuration. Using vim-plug.
|
|
|
|
" ==============================================================================
|
|
|
|
" 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
|
|
|
Plug 'tpope/vim-fugitive'
|
2017-09-22 15:15:26 +00:00
|
|
|
Plug 'vimwiki/vimwiki'
|
2017-02-22 01:16:16 +00:00
|
|
|
Plug 'tpope/vim-unimpaired'
|
|
|
|
Plug 'tpope/vim-commentary'
|
2017-09-22 15:15:26 +00:00
|
|
|
|
2017-02-22 01:16:16 +00:00
|
|
|
Plug 'ajh17/VimCompletesMe'
|
2017-08-15 13:41:19 +00:00
|
|
|
"Plug 'ludovicchabant/vim-gutentags'
|
2017-09-22 15:15:26 +00:00
|
|
|
Plug 'sheerun/vim-polyglot'
|
|
|
|
|
2017-02-22 01:16:16 +00:00
|
|
|
Plug 'junegunn/goyo.vim'
|
2017-09-22 15:15:26 +00:00
|
|
|
Plug 'tpope/vim-tbone'
|
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
|
|
|
|
" ==============================================================================
|
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>
|
2017-09-22 15:15:26 +00:00
|
|
|
function! NewJournal() abort
|
2016-10-27 22:01:24 +00:00
|
|
|
.-1read ~/.vim/templates/journal
|
|
|
|
s/Date/\=strftime("%A, %B %d")/
|
|
|
|
endfunction
|