Skip to content

Instantly share code, notes, and snippets.

@JesseObrien
Created January 20, 2015 07:49
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 JesseObrien/0511dd8c806049b9790c to your computer and use it in GitHub Desktop.
Save JesseObrien/0511dd8c806049b9790c to your computer and use it in GitHub Desktop.
vim relative numbers
" Switch between relative and no relative number in command/insert
au FocusLost * :set norelativenumber
au FocusGained * :set relativenumber
autocmd InsertEnter * :set norelativenumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment