From 0ac12341262611dc15406b3663c46a639983376e Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Fri, 22 Apr 2016 00:06:14 +0300 Subject: [PATCH] Remove cursorline in goyo mode --- neostrophic.vim | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/neostrophic.vim b/neostrophic.vim index b6ab549..d8b7fbd 100644 --- a/neostrophic.vim +++ b/neostrophic.vim @@ -190,9 +190,19 @@ Plug 'zchee/deoplete-jedi' call plug#end() -" Goyo and Limelight -autocmd! User GoyoEnter Limelight -autocmd! User GoyoLeave Limelight! +" Goyo +function! s:on_goyo_enter() + setlocal nocursorline + Limelight +endfunction + +function! s:on_goyo_leave() + setlocal cursorline + Limelight! +endfunction + +autocmd! User GoyoEnter nested call on_goyo_enter() +autocmd! User GoyoLeave nested call on_goyo_leave() " Keybinds