From 4e6dd2820ed62d23a311a9e27555db8643ea112d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 2 Feb 2021 20:42:50 +0000 Subject: To easier set autoformat paragraph on/off --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc b/vimrc index c922912..266b6d5 100644 --- a/vimrc +++ b/vimrc @@ -111,6 +111,10 @@ let g:gruvbox_guisp_fallback = "fg" " toggle spell check map s :set spell! spelllang=en_gb +" toggle autoformat paragraphs +map a :set formatoptions -=a +map A :set formatoptions +=a + " some types that shouldn't have spell check on autocmd FileType json setlocal nospell autocmd FileType conf setlocal nospell -- cgit v1.2.3