dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 2cc3255eae0931c771732d235b840a89ca7cd829 (patch)
parent bb61865033c691fda0855ee3556140be07511f90
Author: Alexander Karle <akarle@umass.edu>
Date:   Sun, 19 Aug 2018 15:27:53 -0400

[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.

Diffstat:
Mvim/ftplugin/markdown.vim | 5++++-
Mvim/ftplugin/tex.vim | 12+++++++-----
2 files changed, 11 insertions(+), 6 deletions(-)

diff --git 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 @@ -1,12 +1,14 @@ " ignore the wrapped lines -noremap <buffer> <silent> k gk -noremap <buffer> <silent> j gj -noremap <buffer> <silent> 0 g0 -noremap <buffer> <silent> $ g$ +noremap <buffer> <silent> k gk +noremap <buffer> <silent> 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