summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2023-05-12 17:12:12 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2023-05-12 17:12:12 +0200
commite26e7840c22cbefda156e7fd8437a9bb4bf8ead3 (patch)
tree6e2d72e34c7290fc38dcaeaa1e24d2a4cefe5f1e /vimrc
parentfb2b3591aa832dce5d8d9295d444fbe3909980de (diff)
XML syntax folding in vim
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index d078273..2d69152 100644
--- a/vimrc
+++ b/vimrc
@@ -1,5 +1,5 @@
" vimrc of Johannes Ranke
-" Last Change: Fri Jul 01, 2022 at 11:47 AM +0200
+" Last Change: Sun Apr 30, 2023 at 08:27 AM +0200
" default settings (much is handled by tpope/sensible) {{{1
set ts=2
set sw=2
@@ -169,4 +169,7 @@ if has('nvim')
tnoremap <A-l> <C-\><C-n><C-w>l
endif
colorscheme desert
+" XML editing
+let g:xml_syntax_folding=1
+au FileType xml setlocal foldmethod=syntax
" {{{1 vim: foldmethod=marker foldlevel=0 ts=2 sw=2 expandtab

Contact - Imprint