use scrolloff instead of zz
This commit is contained in:
@@ -26,22 +26,18 @@ vim.cmd [[
|
|||||||
set expandtab
|
set expandtab
|
||||||
set nohlsearch
|
set nohlsearch
|
||||||
set incsearch
|
set incsearch
|
||||||
"set scrolloff=8
|
set scrolloff=999
|
||||||
|
set sidescrolloff=999
|
||||||
set guicursor=n-v-c:block-Cursor
|
set guicursor=n-v-c:block-Cursor
|
||||||
|
|
||||||
nnoremap <c-d> <c-d>zz
|
|
||||||
nnoremap <c-u> <c-u>zz
|
|
||||||
nnoremap } }zz
|
|
||||||
nnoremap { {zz
|
|
||||||
|
|
||||||
nnoremap ,co :copen<CR>
|
nnoremap ,co :copen<CR>
|
||||||
nnoremap ,cc :cclose<CR>
|
nnoremap ,cc :cclose<CR>
|
||||||
nnoremap ,cq :call setqflist([])<CR>:cclose<CR>
|
nnoremap ,cq :call setqflist([])<CR>:cclose<CR>
|
||||||
nnoremap ,ct :call setqflist([{'filename': expand('%'), 'lnum': line('.'), 'col': col('.'), 'text': 'TODO'}], 'a')<CR>
|
nnoremap ,ct :call setqflist([{'filename': expand('%'), 'lnum': line('.'), 'col': col('.'), 'text': 'TODO'}], 'a')<CR>
|
||||||
nnoremap ,cf :cfirst<CR>
|
nnoremap ,cf :cfirst<CR>
|
||||||
nnoremap ,cl :clast<CR>
|
nnoremap ,cl :clast<CR>
|
||||||
nnoremap <c-n> :cnext<CR>zz
|
nnoremap <c-n> :cnext<CR>
|
||||||
nnoremap <c-p> :cprevious<CR>zz
|
nnoremap <c-p> :cprevious<CR>
|
||||||
nnoremap ,cu :colder<CR>
|
nnoremap ,cu :colder<CR>
|
||||||
nnoremap ,cr :cnewer<CR>
|
nnoremap ,cr :cnewer<CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user