vim: better horizontal & vertical scrolling

This commit is contained in:
Fernando Schauenburg 2020-12-15 17:43:46 +01:00
parent 44488c44c2
commit 6d568d963e

View file

@ -43,13 +43,14 @@ set modelines=0 " never use modelines
set number " show line numbers
set nrformats-=octal " number formats for CTRL-A & CTRL-X commands
set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME " so vim-plug can work
set scrolloff=5 " minimum number of lines above and below cursor
set scrolloff=3 " minimum number of lines above and below cursor
set shiftwidth=4 " number of spaces to use for (auto)indent step
set shortmess+=I " don't show the intro message when starting Vim
set showbreak="-> " " prefix for wrapped lines
set showmatch " briefly jump to matching bracket if insert one
set noshowmode " don't show mode (using airline instead)
set sidescrolloff=5 " min. number of columns to left and right of cursor
set sidescroll=1 " minimum number of columns to scroll horizontal
set sidescrolloff=3 " min. number of columns to left and right of cursor
set smartcase " case sensitive search if pattern has uppercase chars
set smartindent " use smart autoindenting
set smarttab " use 'shiftwidth' when inserting <Tab>