New answers tagged

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-...


Top 50 recent answers are included