Skip to content

Instantly share code, notes, and snippets.

@smosher
Created December 28, 2011 18:34
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 smosher/1529063 to your computer and use it in GitHub Desktop.
Save smosher/1529063 to your computer and use it in GitHub Desktop.
function! BrightHome()
let s:col = col(".")
normal! 0
if s:col == col(".")
normal! ^
endif
endfunction
nnoremap <silent> <Home> :call BrightHome()<CR>
inoremap <silent> <Home> <C-O>:call BrightHome()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment