fix: link x11 clipboard to vim clipboard

This commit is contained in:
lohhiiccc 2026-05-06 16:44:22 +02:00
parent 59b3cc1a51
commit ad23453ff6
2 changed files with 3 additions and 28 deletions

View file

@ -5,6 +5,7 @@ set incsearch
set cursorline set cursorline
set scrolloff=2 set scrolloff=2
set completeopt=menuone,noinsert set completeopt=menuone,noinsert
set clipboard=unnamedplus
augroup FocusNumbers augroup FocusNumbers
autocmd! autocmd!
@ -12,30 +13,3 @@ augroup FocusNumbers
autocmd WinLeave,BufLeave * setlocal norelativenumber autocmd WinLeave,BufLeave * setlocal norelativenumber
augroup END augroup END
let g:vimtex_view_method = 'general'
let g:vimtex_compiler_method = 'pdflatex'
let g:vimtex_compiler_pdflatex = {
\ 'build_dir' : 'build',
\ 'callback' : 1,
\ 'continuous' : 0,
\ 'options' : [
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
let g:vimtex_quickfix_mode = 2
let g:vimtex_quickfix_open_on_warning = 0
augroup LatexAbbrev
autocmd!
autocmd FileType tex inoreabbrev <buffer> sec \section{}<Left>
autocmd FileType tex inoreabbrev <buffer> ssec \subsection{}<Left>
autocmd FileType tex inoreabbrev <buffer> bf \textbf{}<Left>
autocmd FileType tex inoreabbrev <buffer> it \textit{}<Left>
autocmd FileType tex inoreabbrev <buffer> href \href{}{}<Left><Left><Left>
autocmd FileType tex inoreabbrev <buffer> enum \begin{itemize}<CR>\item<CR>\end{itemize}<Up>
augroup END

View file

@ -1,5 +1,6 @@
" search/substitute " search/substitute
nnoremap <silent> <Leader>h :nohlsearch<CR> nnoremap <silent> <Leader>h :nohlsearch<CR>
nnoremap <silent> <Leader>r :registers<CR>
nnoremap %s :%s/\v nnoremap %s :%s/\v
nnoremap <C-s> :s/\v nnoremap <C-s> :s/\v
vnoremap <C-s> :s/\v vnoremap <C-s> :s/\v
@ -14,7 +15,7 @@ nnoremap <Space>V <C-w>v<C-w>l
" fugitive " fugitive
nnoremap <Space>G :tab G<CR> nnoremap <Space>G :tab G<CR>
nnoremap <Space>g :G<CR> nnoremap <Space>g :G<CR> to vim clipboard
" terminal / tab commands " terminal / tab commands
command -nargs=0 Vt execute "vertical term" command -nargs=0 Vt execute "vertical term"