aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-02-02 20:42:50 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:30 +0100
commit4e6dd2820ed62d23a311a9e27555db8643ea112d (patch)
tree9416135c5ebd8a87d6b2b8e5cdc87dad1aca035b
parent2635dd9026f900024ac36713542fba723efdd762 (diff)
downloaddotnvim-4e6dd2820ed62d23a311a9e27555db8643ea112d.tar.gz
dotnvim-4e6dd2820ed62d23a311a9e27555db8643ea112d.zip
To easier set autoformat paragraph on/off
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
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 <leader>s :set spell! spelllang=en_gb<CR>
+" toggle autoformat paragraphs
+map <leader>a :set formatoptions -=a<CR>
+map <leader>A :set formatoptions +=a<CR>
+
" some types that shouldn't have spell check on
autocmd FileType json setlocal nospell
autocmd FileType conf setlocal nospell