Last active
April 17, 2018 12:49
-
-
Save franciscoj/3f54640075bfa55c6d941a9ac2367b8d to your computer and use it in GitHub Desktop.
Unicode things for Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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