From 450d847e42582ef2734015869c59c7d1fdd6b208 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 10 Jun 2019 23:40:23 +0200 Subject: Improved color schemes, indentation, autocompletion for text --- ftplugin/text.vim | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ftplugin') diff --git a/ftplugin/text.vim b/ftplugin/text.vim index 2095ef5..0336a13 100644 --- a/ftplugin/text.vim +++ b/ftplugin/text.vim @@ -5,4 +5,17 @@ autocmd InsertLeave * syntax match Convention /\v<(\w+)\_s+\1>/ containedin=ALL set autoindent nosmartindent nocindent set formatoptions+=n " When formatting text, recognize numbered lists. -set formatoptions+=a " Automatic formatting of paragraphs. +set formatoptions+=1 " do not break after a one letter word +set formatoptions+=p " Don't break lines at single spaces that follow periods. + +set formatoptions+=aw " Automatic formatting of paragraphs (w=only if space in the end) + + +set noexpandtab +set spell +set complete+=kspell + +inoremap + +" nnoremap :normal +" autocmd CursorHoldI * normal s -- cgit v1.2.3