Skip to content

Instantly share code, notes, and snippets.

@mhinz
Created September 26, 2013 23:33
Show Gist options
  • Save mhinz/6722104 to your computer and use it in GitHub Desktop.
Save mhinz/6722104 to your computer and use it in GitHub Desktop.
" style 1
if exists('b:loaded')
finish
endif
let b:loaded = 1
" style 2
if exists('s:counter')
finish
endif
let s:counter = 1
autocmd CursorMoved <buffer> let s:counter += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment