Auto wrap reStructuredText files. Tweak rST key mappings

master
Dustin C. Hatch 2012-02-13 20:33:37 -06:00
parent aed5f1ca9d
commit a0d2ae3cc3
1 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
nnoremap ,t <S-V>:t.<Bar>s/./=/g<Bar>t-2<CR>:noh<CR> " Wrap lines at 80 characters
nnoremap ,1 <S-V>:t.<Bar>s/./=/g<CR>:noh<CR> setlocal textwidth=79
nnoremap ,2 <S-V>:t.<Bar>s/./*/g<CR>:noh<CR>
nnoremap ,3 <S-V>:t.<Bar>s/./+/g<CR>:noh<CR> " Title and heading key mappings
nnoremap ,4 <S-V>:t.<Bar>s/./-/g<CR>:noh<CR> inoremap ,t <ESC><S-V>:t.<Bar>s/./=/g<Bar>t-2<CR>:noh<CR>j2A
inoremap ,1 <ESC><S-V>:t.<Bar>s/./=/g<CR>:noh<CR>A
inoremap ,2 <ESC><S-V>:t.<Bar>s/./*/g<CR>:noh<CR>A
inoremap ,3 <ESC><S-V>:t.<Bar>s/./+/g<CR>:noh<CR>A
inoremap ,4 <ESC><S-V>:t.<Bar>s/./-/g<CR>:noh<CR>A