]> git.rmz.io Git - dotfiles.git/commitdiff
vim: breadindent
authorSamir Benmendil <me@rmz.io>
Wed, 26 Aug 2015 23:52:50 +0000 (00:52 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 27 Aug 2015 01:33:49 +0000 (02:33 +0100)
vim/vimrc

index 6847c851503f23d606ba384e92bad58baa11e3b6..8ca59ec68270a258e0b7b50bdd220fe645555ed4 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -100,10 +100,10 @@ set nostartofline       " don't move the cursor to the first non-blank char of a
 set path=.,include/,../include/,/usr/include/c++/*,/opt/ros/hydro/include
 
 " displaying text {{{2
-set scrolloff=5                 " number of screen lines to show around the cursor
 set nowrap                      " long lines wrap
 set linebreak                   " wrap long lines at a character in 'breakat'
 set showbreak=↪                 " show these chars for wrapped lines
+set breakindent                 " preserve indentation in wrapped text
 
 set lazyredraw                  " don't redraw while executing macros
 
@@ -117,6 +117,7 @@ augroup trailing
     au InsertLeave * :set listchars+=trail:·
 augroup END
 
+set scrolloff=5                 " number of screen lines to show around the cursor
 set sidescroll=1                " number of collumns to scroll
 set sidescrolloff=1             " don't scroll over the listchars