Skip to content
Myr

[vim] Update default launcher for GVim (#212)

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

Code submitted by @lydell

authored by Junegunn Choi · committed by Junegunn Choi · parent 22ae7ad · Browse files · 1 file+9 added−1 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−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:plugin/fzf.vim+9 added-1 removed
20 unmodified lines
21" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION22" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.2324let s:default_height = '40%'25let s:launcher = 'xterm -e bash -ic %s'25let s:fzf_go = expand('<sfile>:h:h').'/bin/fzf'26let s:install = expand('<sfile>:h:h').'/install'27let s:installed = 028let s:fzf_rb = expand('<sfile>:h:h').'/fzf'
171 unmodified lines
200 execute 'chdir '.s:escape(remove(a:dict, 'prev_dir'))201 endif202endfunction203204function! s:xterm_launcher()205 return printf('xterm -T [fzf]'206 \ .' -bg "\%s" -fg "\%s"'207 \ .' -geometry %dx%d+%d+%d -e bash -ic %%s',208 \ synIDattr(hlID("Normal"), "bg"), synIDattr(hlID("Normal"), "fg"),209 \ &columns, &lines/2, getwinposx(), getwinposy())210endfunction211let s:launcher = function('s:xterm_launcher')212213function! s:execute(dict, command, temps)214 call s:pushd(a:dict)215 silent! !clear 2> /dev/null216 if has('gui_running')
160 unmodified lines