diff options
Diffstat (limited to 'stow/vim/.vim/rc/goyo.vim')
-rw-r--r-- | stow/vim/.vim/rc/goyo.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/stow/vim/.vim/rc/goyo.vim b/stow/vim/.vim/rc/goyo.vim new file mode 100644 index 0000000..bbe3090 --- /dev/null +++ b/stow/vim/.vim/rc/goyo.vim @@ -0,0 +1,15 @@ +Plug 'junegunn/goyo.vim' + +function! s:goyo_enter() + silent !tmux set status off +endfunction + +function! s:goyo_leave() + silent !tmux set status on +endfunction + +autocmd! User GoyoEnter nested call <SID>goyo_enter() +autocmd! User GoyoLeave nested call <SID>goyo_leave() + +let g:goyo_linenr = 1 +nnoremap <leader>G :Goyo \| set linebreak<CR>:e<CR> |