From e1876c46a288d0e4e03c0864c60245d9def76308 Mon Sep 17 00:00:00 2001 From: Max Bucknell Date: Tue, 5 May 2015 13:14:42 +0100 Subject: [PATCH] Hard wrap markdown lines --- vim/vimrc.symlink | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 20d0495..1d5a177 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -103,9 +103,6 @@ noremap _ ddkP " Uppercase an entire word with nnoremap u viwU -" Add new line below -nnoremap ik - " Show me when my lines are too long " 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 @@ -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 make setlocal noet sw=8 sts=8 ts=8 + " Hard wrap prose + autocmd FileType markdown setlocal tw=80 fo=t1 + " Create files when opened autocmd BufNewFile * write augroup END