commit 3cd77a31081ebdf55c8268928a3e10d20a6102e5 parent fad890473e99e6a749679aa94347a9a1ed6f42fb Author: Anders Damsgaard <andersd@riseup.net> Date: Sat, 21 Oct 2017 13:40:09 -0400 add command to disable goyo and reinitialize MYVIMRC Diffstat:
M | links/.vim/keybinds.vim | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/links/.vim/keybinds.vim b/links/.vim/keybinds.vim @@ -7,9 +7,6 @@ nmap \a :set formatoptions-=a<CR>:echo "autowrap disabled"<CR> " Save with ZX nmap ZX :w<CR> -" toggle distraction-free editing -nmap <leader>y :set nolist<CR>:Goyo<CR> - " use , instead of \ as leader "let mapleader="," " use space instead of \ as leader @@ -18,6 +15,10 @@ let mapleader="\<Space>" " Shortcut to reload .vimrc nmap <leader>R :source $MYVIMRC<CR> +" toggle distraction-free editing +nmap <leader>y :set nolist<CR>:Goyo<CR> +nmap <leader>Y :set nolist<CR>:Goyo!<CR>:source $MYVIMRC<CR> + " Shortcut to switch background color "nmap <leader>W :ToggleBG<CR>