Remove cursorline in goyo mode

This commit is contained in:
Mark Vainomaa 2016-04-22 00:06:14 +03:00
parent f9a5edc8bf
commit 0ac1234126
1 changed files with 13 additions and 3 deletions

View File

@ -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 <SID>on_goyo_enter()
autocmd! User GoyoLeave nested call <SID>on_goyo_leave()
" Keybinds