Hi, kamaraju kusumanchi schrieb am 31.05.2016 um 06:46: > For normal editing purposes, I use vim and it works great. But once in > a while, I want to use subscripts and superscripts. For example, while > writing chemical equations I would like to see O with a subscript 2 to > represent the Oxygen molecule. Without using heavy weight stuff such > as Latex, could I somehow make vim/gvim show subscripts and > superscripts?
Unicode contains subscript and superscript digits. With 'encoding' set to UTF-8 and an appropriate font you can enter them via Vim's digraph capabilities. Just press <Ctrl-K>s1 ... <Ctrl-K>s9 for subscript digits and <Ctrl-K>S1 ... <Ctrl-K>S9 for superscript letters while in insert mode. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
