diff --git a/README.md b/README.md index 3e9f832..9b8a456 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ If you have wished Vim would be smarter about keeping your editing state, *vim-s ## Installation -1. The old way: download and source the vimball from the [releases page][releases], then run `:helptags {dir}` on your runtimepath/doc directory. Updating the plug-in via `:GetLatestVimScripts` is supported. Or, +1. The old way: download and source the vimball from the [releases page]releases], then run `:helptags {dir}` on your runtimepath/doc directory. Updating the plug-in via `:GetLatestVimScripts` is supported. Or, 1. The plug-in manager way: using a git-based plug-in manager (Pathogen, Vundle, NeoBundle, Vim-Plug etc.), simply add `zhimsel/vim-stay` to the list of plug-ins, source that and issue your manager's install command. Or, 1. The Vim package way (requires Vim 7.4 with patch 1384): create a `pack/vim-stay/start/` directory in your `'packagepath'` and clone this repository into it. Run `:helptags {dir}` on the `doc` directory of the created repo. Run `:runtime plugin/stay.vim` to load *vim-stay* (or restart Vim). diff --git a/autoload/stay.vim b/autoload/stay.vim index 85e84bd..7a58ff8 100644 --- a/autoload/stay.vim +++ b/autoload/stay.vim @@ -26,7 +26,7 @@ function! stay#ispersistent(bufnr, volatile_ftypes) abort \ getbufvar(a:bufnr, 'stay_ignore') isnot 1 && \ getbufvar(a:bufnr, '&buflisted') is 1 && \ index(['', 'acwrite'], getbufvar(a:bufnr, '&buftype')) isnot -1 && - \ index(['', 'hide'], getbufvar(a:bufnr, '&bufhidden')) isnot -1 && + \ index(['', hide'], getbufvar(a:bufnr, '&bufhidden')) isnot -1 && \ filereadable(l:bufpath) && \ stay#isftype(a:bufnr, a:volatile_ftypes) isnot 1 && \ stay#istemp(l:bufpath) isnot 1