Skip to content
Myr

[vim] Temporarily disable &autochdir when opening files (#306)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 02bd2d2 · Browse files · 1 file+9 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−3 removed

  • other:+9 added−3 removed

1 file+9 added−3 removed

modified:plugin/fzf.vim+9 added-3 removed
366 unmodified lines
367 return368 endif369 let key = remove(a:lines, 0)370 let cmd = get(s:action, key, 'e')371 try372 let autochdir = &autochdir373 set noautochdir371 for item in a:lines372 execute cmd s:escape(item)373 endfor374 for item in a:lines375 execute cmd s:escape(item)376 endfor377 finally378 let &autochdir = autochdir379 endtry380endfunction381382function! s:cmd(bang, ...) abort383 let s:action = get(g:, 'fzf_action', s:default_action)
16 unmodified lines