From 4b9b7f4c187d597d1001503e37e78b434a8e1410 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 6 Nov 2015 13:01:19 +0100 Subject: [PATCH] Use breakindent on supported versions of vim --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index 9251e93..8d1337a 100644 --- a/.vimrc +++ b/.vimrc @@ -182,6 +182,12 @@ set number set cursorline syntax on +if v:version >= 704 && has('patch338') + " automatically indents wrapped lines up to the previous line. You can also + " use the showbreak option to automatically indent the line even more + set breakindent +endif + " Show tabs and trailspaces set listchars=tab:▸\ ,trail:· " Display whitespace