Hot answers tagged

4

I suspect the Conceal highlighting is overriden by your colorscheme os something like that. You will see where it is defined with :verbose highlight Conceal, which should show an output similar to this: :verbose hi Conceal Conceal xxx ctermfg=4 guifg=#268bd2 Last set from ~/.vim/colors/my_colorscheme.vim line 1234 I suggest you read this ...


4

Concealing characters is just a visual representation of the physical text. Vim commands however work with the actual text, so that yanking actually yanks what is in the buffer and not what is displayed. If you want to capture what is displayed, there are a couple of ways around it. The easiest solution is, if you are using Vim in the terminal and let the ...


4

The problem is that the subscript for g doesn't exist, and those for h and i look "off." As noted, you can either turn off the conceal feature altogether (set conceallevel=0) turn off conceal in tex files just for these kinds of things (let g:tex_conceal = 'abdmg')—see :help g:tex_conceal


2

One approach is to overwrite the existing markdownLinkText syntax item with one that conceals the [ and ] delimiters: This item is currently defined with the following line from $VIMRUNTIME/syntax/markdown.vim (line continuations added by me for Stack Exchange formatting purposes): syn region markdownLinkText matchgroup=markdownLinkTextDelimiter \ start=&...


2

If you don't want to have an alias for tmux -u, you can make sure LANG, LC_ALL or LC_CTYPE contains a UTF-8 locale because tmux will use them to automatically detect UTF-8.


2

Correction tmux(){ /path/to/tmux -u "$@" } is more appropriate; the previous answer would not allow you to use tmux ls for example. The problem was utf8 encoding. By default tmux doesn't use it, and this encoding is necessary to get these LaTeX symbols and several other symbols in zsh theme to appear. calling tmux -u instead of tmux fixed it. ...


2

Here's a solution using a different technique to the two you suggested: syntax match lambda /\_.\<fn\>/ containedin=ALL syntax match lam /f/ containedin=lambda contained conceal cchar=λ syntax match bda /n/ containedin=lambda contained conceal cchar=. Syntax items which start in an earlier position in the buffer take priority over other items, so we ...


2

This is not a vim problem, but caused by incorrect building procedure. I refetched the code and build again and this test passed - at the first build I firstly make reconfig then ./configure --disable-gui then make (maybe I did something else I don't remember). I believe the extra make reconfig made something conficted.


1

Vim syntax is a beast. It takes some time to get used to it. I suggest to try this: scriptencoding utf-8 syn match coqSubscript keepend /\K\d\+/ms=s+1 transparent contains=coqSubscriptDigit \ containedin=ALLBUT,coqComment,coqRequire,coqSubscript,coqSubscriptDigit syn match coqSubscriptDigit /0/ contained conceal cchar=₀ syn match coqSubscriptDigit /1/ ...


1

From your description, it sounds like the text is unconcealed when your cursor enters the line. The recommended option to avoid this is: set concealcursor=nc This will keep characters concealed until you actually want to operate on the hidden characters in visual or insert mode. You can read more with :h 'concealcursor' Side note Since you linked to them, ...


1

I adapted the font in the preference shown below: In the Text section, the font size under Non-ASCII Font will change the font size of greek letters and other math operators like \mathbb{E}, \mathscr{F} etc.


1

I cannot do the same with control characters. When you use syn keyword Vim is actually trying to match keywords, which are defined as sequences of characters included in 'iskeyword'. From :help :syn-keyword: Don't forget that a keyword can only be recognized if all the characters are included in the 'iskeyword' option. If one character isn't, the keyword ...


1

Here's a completely different, arguably even more hacky, but much simpler solution: syntax keyword lam fn conceal cchar=λ containedin=ALL nextgroup=bda execute "syntax match bda ' ' conceal cchar=\uff0e" It relies on: There always being a space after the fn keyword: we're matching this space as well as the fn. Unicode support: we're replacing the space ...


1

Do you by any chance have the plugin KeitaNakamura/tex-conceal.vim installed? Try putting the following in .vimrc: set conceallevel=0 let g:tex_conceal='abdgm' I hope this solves your problem.


Only top voted, non community-wiki answers of a minimum length are eligible