From 651bfe01f7eabcc5ea509074bf34d97502e468fb Mon Sep 17 00:00:00 2001 From: bretello Date: Sat, 9 Jan 2021 23:46:30 +0100 Subject: [PATCH] vim: add Goyo shortcuts - `za` opens Goyo - `zz` toggles Goyo --- vim/shortcuts.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim/shortcuts.vim b/vim/shortcuts.vim index d8eaec3..b40d3a5 100644 --- a/vim/shortcuts.vim +++ b/vim/shortcuts.vim @@ -87,7 +87,12 @@ map t :CtrlPTag "" Indent Guides map I :IndentGuidesToggle -"Misc stuff +" Goyo +nmap za :Goyo 80%x85% +nmap zz :Goyo + +""Misc stuff + let s:uname='' let s:uname = system('uname | tr -d "\n"') " Get platform name (stripping the trailing newline) if s:uname == "Darwin"