Hard wrap markdown lines

This commit is contained in:
Max Bucknell 2015-05-05 13:14:42 +01:00
parent 7a35dd68a9
commit e1876c46a2

View file

@ -103,9 +103,6 @@ noremap _ ddkP
" Uppercase an entire word with <c-u> " Uppercase an entire word with <c-u>
nnoremap <leader>u viwU nnoremap <leader>u viwU
" Add new line below
nnoremap <cr> i<cr><esc>k
" Show me when my lines are too long " Show me when my lines are too long
" I wish to limit my lines to 80 characters long. However, Vim creates " I wish to limit my lines to 80 characters long. However, Vim creates
" the n+1th character when you have n characters in a line. Hence, when " the n+1th character when you have n characters in a line. Hence, when
@ -222,6 +219,9 @@ augroup vimrcEx
autocmd FileType ruby,haml,eruby,yaml,html,javascript,sass,cucumber setlocal ai sw=2 sts=2 et autocmd FileType ruby,haml,eruby,yaml,html,javascript,sass,cucumber setlocal ai sw=2 sts=2 et
autocmd FileType make setlocal noet sw=8 sts=8 ts=8 autocmd FileType make setlocal noet sw=8 sts=8 ts=8
" Hard wrap prose
autocmd FileType markdown setlocal tw=80 fo=t1
" Create files when opened " Create files when opened
autocmd BufNewFile * write autocmd BufNewFile * write
augroup END augroup END