在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):joom/latex-unicoder.vim开源软件地址(OpenSource Url):https://github.com/joom/latex-unicoder.vim开源编程语言(OpenSource Language):Vim Script 100.0%开源软件介绍(OpenSource Introduction):latex-unicoder.vimA plugin to type Unicode chars in Vim, using their LaTeX names. This is a more extensive version of rtdavis22/latex2unicode. I obtained the LaTeX-character map from here. If you'd like to write Agda in Vim, you can use this as a substitute for agda-input, even though the character names are different. DemoUsageWhen in normal mode or insert mode, use the shortcut I wanted the shortcut to be usable in insert mode too, so I used a modifier key in it. If you don't want to type the entire thing, just type the first characters and press Tab, the plugin will complete it for you. If you're looking for something else that starts with the same characters, press Tab again. You can also omit the backslash in the beginning and let the autocomplete type it for you. If you are in visual mode, you can select a LaTeX code and press InstallationYou can install it the way you install any other plugin with Vundle or Pathogen. You also have the option to cancel the default mappings and create the mappings for yourself. You can change and add these lines to your let g:unicoder_cancel_normal = 1
let g:unicoder_cancel_insert = 1
let g:unicoder_cancel_visual = 1
nnoremap <C-l> :call unicoder#start(0)<CR>
inoremap <C-l> <Esc>:call unicoder#start(1)<CR>
vnoremap <C-l> :<C-u>call unicoder#selection()<CR> You can add additional custom symbols by defining let g:unicode_map = {
\ "\\box" : "□" ,
\ "\\sep" : "∗" ,
\ } ContributionsThere might be certain symbols and aliases that I miss. Pull requests are welcome. If you have other suggestions about the plugin usage, I'd like to hear them as well. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论