inkscape-shortcut-manager icon indicating copy to clipboard operation
inkscape-shortcut-manager copied to clipboard

.minimal-tex-vimrc snippets

Open RichardScharf opened this issue 3 years ago • 3 comments

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

RichardScharf avatar Oct 15 '20 08:10 RichardScharf

Did you figure this out? I'm having the same issues now.

kevin-corcoran avatar Apr 11 '21 22:04 kevin-corcoran

Same issue as well.

258204 avatar Aug 17 '21 23:08 258204

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:UltiSnipsJumpForwardTrigger = '' let g:UltiSnipsJumpBackwardTrigger = '' let g:UltiSnipsUsePythonVersion = 3 let g:tex_flavor = 'latex'

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 <Esc>:wq<CR> nnoremap wq :wq<CR> inoremap qw <Esc>:wq<CR> nnoremap qw :wq<CR>

"Quickly getting back on track when I mess something up inoremap <C-Z> <C-O>u vnoremap <C-Z> I<C-O>u nnoremap <C-Z> ui

" Start insert mode between $$'s autocmd BufEnter * startinsert | call cursor(1, 2)

nnoremap j gj nnoremap k gk

I hope that helps.

andreykaere avatar Aug 24 '21 09:08 andreykaere