From 6bfff1d63f5637bfe0cd2db84f40019d8b0cab03 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Sun, 31 Jan 2016 11:23:19 +0100 Subject: wrap html --- vim/.vim/ftplugin/html.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vim/.vim/ftplugin/html.vim b/vim/.vim/ftplugin/html.vim index 6a56808..fc0d53a 100644 --- a/vim/.vim/ftplugin/html.vim +++ b/vim/.vim/ftplugin/html.vim @@ -1,2 +1,11 @@ set tabstop=2 softtabstop=0 expandtab shiftwidth=2 set autoindent + +" Test some wrapping on the html +setlocal textwidth=79 +setlocal formatoptions+=t + +" Highlight where the lines are more than 80 characters wide +setlocal colorcolumn=80 +highlight ColorColumn ctermbg=LightGreen + -- cgit v1.2.3