mirror of
https://github.com/Feliix42/dotfiles.git
synced 2024-11-22 06:06:29 +00:00
Set scroll-offset to keep context visible
This commit is contained in:
parent
1bfdd2a6f6
commit
95d5a8ef0a
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue