New answers tagged

1

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


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.


1

Combine vim-ninja-feet and targets.vim Preliminary steps Change $ from separator to quote augroup mytargets autocmd! autocmd User targets#mappings#user call targets#mappings#extend({ \ '$':{'quote': [{'d': '\$'}]}, \ }) augroup END I do not know how to make this change filetype-specific. If someone knows this, feel free to adjust ...


1

You can use a match for a \$, using a look-behind to match other equations enclosed in pairs of $s. That way you'll know you're always matching the first $ of each equation. This search will work: /\(^\([^$]\|\$[^$]\+\$\)\+\)\@<=\$ See :help /\@<= for the look-behind operator. The rest of the regex should be (relatively) straightforward, the look-...


1

There is a plugin that helps: vim-textobj-sentence. It replaces vim's built-in ) and (, and it does a better job on many LaTeX sentences. However, it also has some issues of its own. For example, it doesn't recognize sentences within parentheses. (I'm putting this here for people who find this question via Google, but I'm not going to accept this answer yet.)...


0

That depends on what causes Vim to think that the sentence ends at another spot than what you intend. You could have a look at the csquotes package. http://ftp.lyx.org/pub/tex-archive/macros/latex/contrib/csquotes/csquotes.pdf


Top 50 recent answers are included