From 3bc5e5e4df753914c472065432eddf58a5233885 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 26 Sep 2017 22:49:11 +0800 Subject: [PATCH] Hide curosr when guide buffer is open --- autoload/SpaceVim/mapping/guide.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/autoload/SpaceVim/mapping/guide.vim b/autoload/SpaceVim/mapping/guide.vim index d41165901..d7eb9f634 100644 --- a/autoload/SpaceVim/mapping/guide.vim +++ b/autoload/SpaceVim/mapping/guide.vim @@ -401,6 +401,7 @@ function! s:winopen() " {{{ setlocal nocursorline nocursorcolumn colorcolumn= setlocal winfixwidth winfixheight call s:updateStatusline() + call s:toggle_hide_cursor() endfunction " }}} function! s:updateStatusline() abort @@ -428,7 +429,16 @@ function! s:guide_help_msg() abort return substitute(msg,' ', '\\ ', 'g') endfunction +let s:t_ve = '' +function! s:toggle_hide_cursor() abort + let t_ve = &t_ve + let &t_ve = s:t_ve + let s:t_ve = t_ve +endfunction + + function! s:winclose() " {{{ + call s:toggle_hide_cursor() noautocmd execute s:gwin.'wincmd w' if s:gwin == winnr() noautocmd close