dotfiles/vim/vimrc-plugins

76 lines
2.3 KiB
Text
Raw Normal View History

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
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'
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 'mhinz/vim-startify'
Plug 'dikiaap/minimalist'
Plug 'junegunn/goyo.vim'
" Syntax Related
Plug 'scrooloose/syntastic'
Plug 'tmux-plugins/vim-tmux'
call plug#end()
2017-02-22 01:16:16 +00:00
" ==============================================================================
" Plugin Configuration
" ==============================================================================
2016-12-10 00:24:16 +00:00
" Colorscheme - minimalist configuration
set t_Co=256
colorscheme minimalist
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
" Easy mapping for Startify
nnoremap <silent> <leader>s :Startify<CR>
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' ]
" Vimwiki Configs
2017-02-22 01:16:16 +00:00
let g:vimwiki_list = [{'path': '~/vimwiki/', 'auto_tags': 1}]
"" 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>