diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim index 87cde23..04f99d1 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -1,5 +1,9 @@ -nnoremap ,t :t.s/./=/gt-2:noh -nnoremap ,1 :t.s/./=/g:noh -nnoremap ,2 :t.s/./*/g:noh -nnoremap ,3 :t.s/./+/g:noh -nnoremap ,4 :t.s/./-/g:noh +" Wrap lines at 80 characters +setlocal textwidth=79 + +" Title and heading key mappings +inoremap ,t :t.s/./=/gt-2:nohj2A +inoremap ,1 :t.s/./=/g:nohA +inoremap ,2 :t.s/./*/g:nohA +inoremap ,3 :t.s/./+/g:nohA +inoremap ,4 :t.s/./-/g:nohA