diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index cd5dd1e..054ac74 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -29,6 +29,7 @@ " p | (A) -> comment the current paragraph " + | (V) -> increase the selected region " _ | (V) -> decrease the selected region +" | (N) -> center content and hide everything else " " (surround) " S" | (V) -> surround selection with quotes diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index d683849..8f23d9d 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -30,6 +30,18 @@ endif "}}} +"GOYO: {{{ + nnoremap :Goyo + autocmd VimEnter,Filetype * + \ let g:goyo_width = &textwidth | + \ if (g:goyo_width == 0) | + \ let g:goyo_width = max(map(getline(1,'$'), 'len(v:val)')) | + \ if (g:goyo_width < 78) | + \ let g:goyo_width = 78 | + \ endif | + \ endif +"}}} + "GUNDO: {{{ let g:gundo_right=1 let g:gundo_width=35