Skip to content

Instantly share code, notes, and snippets.

@bartlomiejdanek
Forked from pera/gist:2624765
Created March 14, 2013 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartlomiejdanek/5161960 to your computer and use it in GitHub Desktop.
Save bartlomiejdanek/5161960 to your computer and use it in GitHub Desktop.
" Improve move speed
let g:boostmove=0
set updatetime=500
au CursorMoved * call BoostMoveON()
au CursorMovedI * call BoostMoveON()
au CursorHold * call BoostMoveOFF()
au CursorHoldI * call BoostMoveOFF()
function BoostMoveON()
if (winline() != line('$')) && (line('.') != 1)
if (winline() == winheight('.')) || (winline() == 1)
let g:boostmove=1
setlocal nocursorline
setlocal syntax=OFF
endif
endif
endfunction
function BoostMoveOFF()
if g:boostmove==1
let g:boostmove=0
setlocal cursorline
setlocal syntax=ON
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment