Open RichardScharf opened 3 years ago
Did you figure this out? I'm having the same issues now.
Same issue as well.
I struggled myself back when I was configuring all these stuff. I dont really remember what helped me, but I guess "set nocompatible" does the trick. Anyway, I am posting here my .minimal-tex-vimrc:
set nocompatible set ft=tex
set rtp+=~/current_course
call plug#begin('~/.vim/plugged') Plug 'lervag/vimtex', { 'frozen': 1 } Plug 'sirver/ultisnips', { 'frozen': 1 } Plug 'KeitaNakamura/tex-conceal.vim', { 'frozen': 1 } call plug#end()
let g:UltiSnipsExpandTrigger = '
let g:vimtex_syntax_enabled = 1 let g:vimtex_syntax_minted = 1
"set conceallevel=1 "let g:tex_conceal='abdmg'
set backspace=indent,eol,start
autocmd BufNewFile,BufRead *.tex set filetype=tex
" Quickly closing the window by jamming wq
inoremap wq
"Quickly getting back on track when I mess something up
inoremap
" Start insert mode between $$'s autocmd BufEnter * startinsert | call cursor(1, 2)
nnoremap j gj nnoremap k gk
I hope that helps.
Hi, thanks for sharing your amazing setup on your blog!
I've managed to set up the shortcut manager with gnome in the .config using your help:
'gnome-terminal', '--wait', '--geometry', '60x5', '--', "vim", f"{filename}", "-u", "~/.vim/minimal-tex-vimrc", ])
if I skip the -u flag vim opens normally and everything works perfectly.
But using the -u flag results in vim opening with the cursor between the $$ correctly, but as soon as I type wq it literally pastes < Esc >:wq< CR >" as text.
Snippets like sum stop working entirely, even after adding
call plug#begin('~/.vim/plugged')
with ultisnips and snippets to the minimal-tex-vimrc.
I got the same problem using urxvt and your example .config file.
I'm using a VM running on Hyper-V with enchanced Session mode and can use checkpoints to try stuff out.
So don't hesitate to recommend the "risky" stuff too :D