Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Last active April 17, 2018 12: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 franciscoj/3f54640075bfa55c6d941a9ac2367b8d to your computer and use it in GitHub Desktop.
Save franciscoj/3f54640075bfa55c6d941a9ac2367b8d to your computer and use it in GitHub Desktop.
Unicode things for Vim
" A couple of nice things your vim can use when you're dealing with unicode text.
" Taken from https://stackoverflow.com/questions/16987362/how-to-get-vim-to-highlight-non-ascii-characters
" Highlight all non ascii characters
syntax match nonascii "[^\x00-\xFF]"
highlight nonascii guibg=Red ctermbg=2
" Find any non ascii character
nnoremap <leader>na /[^\x00-\xFF]<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment