Set scroll-offset to keep context visible

This commit is contained in:
Felix Suchert 2022-06-22 14:14:09 +02:00
parent 1bfdd2a6f6
commit 95d5a8ef0a
Signed by: feliix42
GPG key ID: 24363525EA0E8A99

View file

@ -79,10 +79,6 @@ set backspace=indent,eol,start
" map the leader key to ,
let mapleader=","
" set filetypes
au BufRead,BufNewFile *.ohuac setfiletype rust
au BufRead,BufNewFile *.ohuao setfiletype json
" Cycling through windows and tabs -- made by Pius :D
" nnoremap j <C-W><C-J>
" nnoremap k <C-W><C-K>
@ -122,6 +118,9 @@ set tabstop=4
set shiftwidth=4
set expandtab
" keep 5 lines of context above/below the cursor (if possible)
set scrolloff=5
" Search
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search