I broke up with neovim....vim is my best friend now

This commit is contained in:
LinlyBoi
2023-04-30 08:14:07 +03:00
parent 0d185449c5
commit 4a4a6b1e81
5245 changed files with 468325 additions and 25 deletions

View File

@@ -0,0 +1,30 @@
set nocompatible
let &rtp = '../..,' . &rtp
filetype plugin on
setfiletype tex
let g:vimtex_toggle_fractions = {
\ 'INLINE': 'frac',
\ 'frac': 'dfrac',
\ 'dfrac': 'cfrac',
\ 'cfrac': 'INLINE',
\}
" tsf / Toggle surrounding fraction
for [s:in, s:out] in [
\ ['$x / (x-1)$', '$\frac{x}{x-1}$'],
\ ['$\frac{x}{x-1}$', '$\dfrac{x}{x-1}$'],
\ ['$\dfrac{x}{x-1}$', '$\cfrac{x}{x-1}$'],
\ ['$\cfrac{x}{x-1}$', '$x/(x-1)$'],
\]
if s:in =~# '\/'
call vimtex#test#keys('f/ltsf', s:in, s:out)
call vimtex#test#keys('f/htsf', s:in, s:out)
else
call vimtex#test#keys('f{tsf', s:in, s:out)
endif
endfor
call vimtex#test#finished()