Skip to content

Instantly share code, notes, and snippets.

@brooth
Created December 10, 2016 21:39
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save brooth/0404932dd450c5734b847e8823cf6657 to your computer and use it in GitHub Desktop.
function! ToogleScrollMode()
if exists("s:scroll_mode")
unmap k
unmap j
unlet s:scroll_mode
echom "scroll mode off"
else
nnoremap j <C-e>j
nnoremap k <C-y>k
let s:scroll_mode = 1
echom "scroll mode on"
endif
endfunction
@9horses
Copy link

9horses commented Feb 10, 2018

Works well, but "Toogle"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment