summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@stripe.com>2017-02-13 06:48:08 -0800
committerJesse Luehrs <doy@tozt.net>2017-02-13 06:53:50 -0800
commita879aa8aa710653f4434c95cf92125800fc4395c (patch)
tree94a637693e3d033ea01608b6a0238cb7e0fc8f2d
parentd9561bb4326683946c2e2c8ba7efc916ccbc58d7 (diff)
downloadconf-a879aa8aa710653f4434c95cf92125800fc4395c.tar.gz
conf-a879aa8aa710653f4434c95cf92125800fc4395c.zip
add vim calendar plugin
-rw-r--r--.gitmodules3
-rw-r--r--aliases1
m---------vim/bundle/calendar0
-rw-r--r--vimrc14
4 files changed, 16 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules
index 0d0bf27..2afc5ac 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -106,3 +106,6 @@
[submodule "zsh/anyframe"]
path = zsh/anyframe
url = git://github.com/mollifier/anyframe
+[submodule "vim/bundle/calendar"]
+ path = vim/bundle/calendar
+ url = git@github.com:itchyny/calendar.vim
diff --git a/aliases b/aliases
index 2197b2c..080d90f 100644
--- a/aliases
+++ b/aliases
@@ -40,6 +40,7 @@ alias prove="forkprove"
alias utc="env TZ=UTC date"
alias windows="VBoxManage startvm IE11\\ -\\ Win8.1"
alias pd="perldoc"
+alias vcal="vim --cmd 'set fenc=utf-8' -c Calendar"
# }}}
# vim:ft=sh:
diff --git a/vim/bundle/calendar b/vim/bundle/calendar
new file mode 160000
+Subproject e6fef6c6f7bdab98026cd2fa1a3900ce2bd0b85
diff --git a/vimrc b/vimrc
index 207d073..3a0c43c 100644
--- a/vimrc
+++ b/vimrc
@@ -361,9 +361,9 @@ if $SHELL =~ 'zsh' && exists('g:_zsh_hist_fname')
endfunction
function! s:zsh_hist_append ()
let to_append = expand("%:~:.")
- " XXX gundo and vimfiler set buftype too late to be caught by this...
+ " XXX these set buftype too late to be caught by this...
" this is broken, but not sure what a better fix is
- if &buftype == '' && to_append !~ '^\(__Gundo\|vimfiler:\)'
+ if &buftype == '' && to_append !~ '^\(__Gundo\|vimfiler:\|Startify\|\[calendar\]\)'
if !has_key(s:initial_files, to_append)
if filereadable(g:_zsh_hist_fname)
let hist = readfile(g:_zsh_hist_fname)
@@ -868,4 +868,14 @@ let g:syntastic_enable_signs = 0
let g:syntastic_perl_checkers = []
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
" }}}
+" calendar {{{
+let g:calendar_date_endian = "big"
+let g:calendar_date_separator = "-"
+let g:calendar_view = "week"
+augroup calendar-mappings
+ autocmd!
+ autocmd FileType calendar nmap <buffer> q :quit<CR>
+ autocmd FileType calendar set background=dark
+augroup END
+" }}}
" }}}