X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/a5c13e23ffd33c3a77043ca2d776845000d8cb57..5f7a37092d2d250c176c4779106fc88c0e3e38a4:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 6847c85..10e5770 100644 --- 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 @@ -111,12 +111,14 @@ set list " show chars defined in 'listchars' set listchars=tab:❭\ " list of strings used for list mode set listchars+=extends:❯,precedes:❮ " Only shown when not in insert mode +au InsertLeave * :set listchars+=trail:· augroup trailing au! au InsertEnter * :set listchars-=trail:· 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