dotfiles/vim/vimrc-plugins

36 lines
1.3 KiB
Text
Raw Normal View History

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
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'
call plug#end()
2017-02-22 01:16:16 +00:00
" ==============================================================================
" Plugin Configuration
" ==============================================================================
" Vimwiki Configs
2017-05-23 03:57:51 +00:00
let g:vimwiki_list = [{'path': '~/Workbench/vimwiki/', 'auto_tags': 1}]
"" 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
.-1read ~/.vim/templates/journal
s/Date/\=strftime("%A, %B %d")/
endfunction