summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <jesse.luehrs@stripe.com>2015-02-25 13:05:48 -0800
committerJesse Luehrs <doy@tozt.net>2015-02-25 13:30:44 -0800
commit0ab7b76b06d81ac0065ee6f4656600c6da5c861f (patch)
tree124a7cf250c0a0fb92f259ae64369914a2945c3d /vimrc
parent0263fcc1a02ae5d5d9569178963b904cbf045e05 (diff)
downloadconf-0ab7b76b06d81ac0065ee6f4656600c6da5c861f.tar.gz
conf-0ab7b76b06d81ac0065ee6f4656600c6da5c861f.zip
also add files opened from the shell to vim's history
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 0232a3f..f270d7a 100644
--- a/vimrc
+++ b/vimrc
@@ -353,6 +353,7 @@ if $SHELL =~ 'zsh' && exists('g:_zsh_hist_fname')
function! s:init_zsh_hist ()
for fname in <SID>get_buffer_list()
let s:initial_files[fname] = 1
+ call histadd(":", "e " . fname)
endfor
call delete(g:_zsh_hist_fname)
endfunction