summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 1209d5b..913f412 100644
--- a/vimrc
+++ b/vimrc
@@ -346,7 +346,7 @@ if $SHELL =~ 'zsh' && exists('g:_zsh_hist_fname')
call delete(g:_zsh_hist_fname)
endfunction
function! s:zsh_hist_append ()
- let to_append = expand("%")
+ let to_append = expand("%:~:.")
" XXX gundo sets buftype too late to be caught by this... this
" is broken, but not sure what a better fix is
if &buftype == '' && to_append !~ "^__Gundo"