summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <jesse.luehrs@stripe.com>2015-02-25 10:40:38 -0800
committerJesse Luehrs <doy@tozt.net>2015-02-25 11:34:28 -0800
commit3b7f1a1982f7252d1e6fb73b5c67be83439980b6 (patch)
treedc3b1568ac68324fc089136d7623ba597d98f735 /vimrc
parentb6843e0c92067124d291e17e757a0be271c2ce18 (diff)
downloadconf-3b7f1a1982f7252d1e6fb73b5c67be83439980b6.tar.gz
conf-3b7f1a1982f7252d1e6fb73b5c67be83439980b6.zip
also don't put vimfiler windows in zsh history
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index 3e5d233..5702a1d 100644
--- a/vimrc
+++ b/vimrc
@@ -357,9 +357,9 @@ if $SHELL =~ 'zsh' && exists('g:_zsh_hist_fname')
endfunction
function! s:zsh_hist_append ()
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"
+ " XXX gundo and vimfiler 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 !has_key(s:initial_files, to_append)
if filereadable(g:_zsh_hist_fname)
let hist = readfile(g:_zsh_hist_fname)