From c66ffd3382c3a1dbd870414c592fc6f20f4a1fe4 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 15 May 2023 08:39:47 +0100 Subject: [PATCH] Echo widths and add S-F11 to toggle margins Some terminals use F11 for Full Screen (Windows Terminal for example). Add S-F11 so we can use this function without needing to mess with terminal settings. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index dd96013..4b7d093 100644 --- a/vimrc +++ b/vimrc @@ -44,6 +44,7 @@ nnoremap :call ACPActodoTodo() nnoremap :NERDTreeToggle nnoremap :vsplit nnoremap :call ACPToggleSpellEnUs() +nnoremap :call ACPToggleMargins() nnoremap :call ACPAdocTodo() nnoremap :split nnoremap :call ACPToggleSpellEnGb() @@ -152,6 +153,7 @@ if has('eval') function! ACPToggleMargins() execute "set colorcolumn=" . (&colorcolumn == "0" ? "73,81" : (&colorcolumn == "73,81" ? "101" : "0")) execute "set textwidth=" . (&colorcolumn == "101" ? "100" : "80") + echo "tw=" . &textwidth . " & cc=" . &colorcolumn endfunction function! ACPToggleSpellEnUs()