3

The problem is that you have updated your plugins in the transition Linux to Mac. This also brings a major update of Vimtex, in which the syntax plugin has been included as part of Vimtex. Part of the syntax script changes are to simplify the math zones. The exact issue you raise is discussed here, and this comment should provide the required change, ...


3

First you need to create your command as local to a buffer, :h :command-buffer tells us that is what the argument -buffer is for. Then I think it's better to use ftplugins (:h ftplugin) to do this kind of things rather and a Filetype autocommand which just duplicate a built-in mechanism. So you could create ~/.vim/after/ftplugin/rmd.vim and put that in it: ...


3

UPDATE: Latest vimtex includes PR #1711 which allows you to configure vimtex to override existing mappings by setting this global variable from your vimrc: let g:vimtex_mappings_override_existing = 1 So the recommended solution for this problem is update your vimtex to latest and include this variable setting in your vimrc. OLDER UPDATE: It turns out ...


3

Well, they are two different implementations, so obviously they will use different amounts of time. vimtex indentation does more, which makes it slower. But I've worked hard on making it fast, and as far as I know, it should not be unreasonable slow for daily use. Note, indenting a whole ~500 line file with gg=G should not be a "daily" activity. Indentation ...


2

I do not know whether you have found a solution in the mean time, but according to this post https://stackoverflow.com/questions/606191/convert-bytes-to-a-string you have to decode the bytes object, so that the snippet becomes: snippet 'math(.*)math' "math" wr `!p import subprocess code = match.group(1) code = 'ToString[' + code + ',TeXForm]' res = ...


2

You can also put the following in your .vimrc: xmap dsm <plug>(vimtex-env-delete-math) xmap csm <plug>(vimtex-env-change-math) xmap am <plug>(vimtex-a$) xmap im <plug>(vimtex-i$) omap dsm <plug>(vimtex-env-delete-math) omap csm <plug>(vimtex-env-change-math) omap am <plug>(vimtex-a$) ...


2

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


2

I wanted to write and edit a .tex document as fast as possible, so I followed this guide, but I can't get vimtex to work properly. If you just want to edit a .tex document and not want to spend time learning tools, then I suggest you consider to use something like TeX maker. It should work well out of the box and the barrier to entry is very low. If you ...


2

You have a few options, though some depend on plugin-authors to follow best-practices. vim --noplugin is kind of a nuclear option. You can combine with -Nu NONE or other -u options to get varying levels of "just my config" (though, if you put config files in ~/.vim/plugin/ like me, this will disable those too) let g:loaded_<plugin> = 1: most ...


1

After a lot of trial and error, I found a reasonable solution. I expect this is not a "good" solution, so would appreciate any thoughts as to how it could go wrong, and how to strengthen it. To get vimtex features to load, I simply put this in ftplugin/rmd.vim: set filetype=tex That's it --- now all of the vimtex bindings and motions appear to ...


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

Create a new file under VIM_RUNTIME_PATH/syntax, maybe ~/.vim/sytax syntax/tex.vim syn clear texMathOper


1

By tweaking the _vimrc file I have managed to determine the likely cause of the issue: the (missing) setting set encoding=utf-8. Without it, neither the replacement of characters nor the concealment work.


1

After suggestion from a comment I checked if this behaviour was from the autocomplete plugin supertab that I've installed, and sure enough it was. So to change the direction I added the following to my .vimrc which makes <Tab> go forward: let g:SuperTabDefaultCompletionType = "<c-n>"


1

You should only set a default value on the first occurrence of the placeholder, that way it works. From :help UltiSnips-mirrors: [...] A mirrored tabstop can have a default value defined. Only the first instance of the tabstop need have a default value. Mirrored tabstop will take on the default value automatically. While the help says "need", it only ...


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

Like statox said, you should really write you own snippets. But I understand it is nice to have a set to look at, see what others are doing. One post I thought was really helpful was "How I'm able to take notes in mathematics lectures using LaTeX and Vim" From there, you can also find his github, with all his snippets. I find it a bit too complex, ...


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