We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free. Anti-spam check. Do not fill this in!==Language specific HTML-entities== To change, for example, Norwegian special characters, there is no need to select text and not check all the text since it is never part of code-syntax. With the following, typing <code>,r</code> will check all the text and replace all three Norwegian special characters with entities. This can easily be applied to other languages. <pre> " Replace all Norwegian special characters with entities. nnoremap <silent> ,r :call ReplaceNorChar()<CR> function! ReplaceNorChar() silent %s/Æ/\&AElig;/eg silent %s/Ø/\&Oslash;/eg silent %s/Å/\&Aring;/eg silent %s/æ/\&aelig;/eg silent %s/ø/\&oslash;/eg silent %s/å/\&aring;/eg endfunction </pre> Add it to your ~/.vimrc or ~/.vim/ftplugin/html.vim. Summary: Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA Cancel Editing help (opens in new window) Retrieved from "https://vim.fandom.com/wiki/HTML_entities"