From fa2219a62322fd17debc963628dba4702aa811e3 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 29 Dec 2021 20:45:33 -0500 Subject: [PATCH] vim: Add preferences for .txt files Now that my blog is all .txt files parsed by nihdoc(1), I want specific settings! --- .vim/ftplugin/text.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .vim/ftplugin/text.vim diff --git a/.vim/ftplugin/text.vim b/.vim/ftplugin/text.vim new file mode 100644 index 0000000..3664c2a --- /dev/null +++ b/.vim/ftplugin/text.vim @@ -0,0 +1,15 @@ +" soft wrap at word breaks +setlocal linebreak +setlocal breakindent + +" Spellcheck +setlocal spell spelllang=en_us + +" Break at 65 +setlocal textwidth=65 + +" TAB is TAB +setlocal softtabstop=8 +setlocal shiftwidth=8 +setlocal noexpandtab +setlocal nosmarttab -- libgit2 1.1.1