From 2cc3255eae0931c771732d235b840a89ca7cd829 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Sun, 19 Aug 2018 15:27:53 -0400 Subject: [PATCH] [vim] ftplugin minor updates for tex and markdown Notably, shifting towards hard wrapping text for the two languages as they both lend themselves to this style. --- vim/ftplugin/markdown.vim | 5 ++++- vim/ftplugin/tex.vim | 12 +++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index ef5ce09..a210b8b 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -5,4 +5,7 @@ setlocal linebreak setlocal breakindent " spell check -setlocal spell +setlocal spell spelllang=en_us + +" Break at 80 +setlocal textwidth=80 diff --git a/vim/ftplugin/tex.vim b/vim/ftplugin/tex.vim index d12f7e4..c681ff3 100644 --- a/vim/ftplugin/tex.vim +++ b/vim/ftplugin/tex.vim @@ -1,12 +1,14 @@ " ignore the wrapped lines -noremap k gk -noremap j gj -noremap 0 g0 -noremap $ g$ +noremap k gk +noremap j gj " spell check! setlocal spell spelllang=en_us " soft word wrap should not break words " NOTE: don't use listchars with this feature -set linebreak +setlocal linebreak +setlocal breakindent + +" Break at 80 +setlocal textwidth=80 -- libgit2 0.28.4