summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-07-21 14:33:43 +0200
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-07-21 14:33:43 +0200
commit0eb313447b77180e1aa08c164cc74863f5af6e08 (patch)
treef698a71b690a1f32607694d55cf26b82fb9b2f31
parent291a09d74553bec4bd98e25b97b0a3307871f559 (diff)
foldmethod indent on html
-rw-r--r--nvim/nvim/ftplugin/html.vim14
-rw-r--r--nvim/nvim/shada/main.shadabin54238 -> 0 bytes
-rw-r--r--vim/.vim/ftplugin/html.vim5
3 files changed, 15 insertions, 4 deletions
diff --git a/nvim/nvim/ftplugin/html.vim b/nvim/nvim/ftplugin/html.vim
index 6a56808..fb854a7 100644
--- a/nvim/nvim/ftplugin/html.vim
+++ b/nvim/nvim/ftplugin/html.vim
@@ -1,2 +1,12 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal 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
+
+setlocal foldmethod=indent
diff --git a/nvim/nvim/shada/main.shada b/nvim/nvim/shada/main.shada
deleted file mode 100644
index 5e5cf2d..0000000
--- a/nvim/nvim/shada/main.shada
+++ /dev/null
Binary files differ
diff --git a/vim/.vim/ftplugin/html.vim b/vim/.vim/ftplugin/html.vim
index fc0d53a..fb854a7 100644
--- a/vim/.vim/ftplugin/html.vim
+++ b/vim/.vim/ftplugin/html.vim
@@ -1,5 +1,5 @@
-set tabstop=2 softtabstop=0 expandtab shiftwidth=2
-set autoindent
+setlocal tabstop=2 softtabstop=0 expandtab shiftwidth=2
+setlocal autoindent
" Test some wrapping on the html
setlocal textwidth=79
@@ -9,3 +9,4 @@ setlocal formatoptions+=t
setlocal colorcolumn=80
highlight ColorColumn ctermbg=LightGreen
+setlocal foldmethod=indent