From ad23453ff6e17e970671862f69784ccc4bac1c33 Mon Sep 17 00:00:00 2001 From: lohhiiccc Date: Wed, 6 May 2026 16:44:22 +0200 Subject: [PATCH] fix: link x11 clipboard to vim clipboard --- vim/.vim/init.vim | 28 +--------------------------- vim/.vim/plugin/mappings.vim | 3 ++- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/vim/.vim/init.vim b/vim/.vim/init.vim index 8b6b42d..ce57fc5 100644 --- a/vim/.vim/init.vim +++ b/vim/.vim/init.vim @@ -5,6 +5,7 @@ set incsearch set cursorline set scrolloff=2 set completeopt=menuone,noinsert +set clipboard=unnamedplus augroup FocusNumbers autocmd! @@ -12,30 +13,3 @@ augroup FocusNumbers autocmd WinLeave,BufLeave * setlocal norelativenumber 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 sec \section{} - autocmd FileType tex inoreabbrev ssec \subsection{} - autocmd FileType tex inoreabbrev bf \textbf{} - autocmd FileType tex inoreabbrev it \textit{} - autocmd FileType tex inoreabbrev href \href{}{} - autocmd FileType tex inoreabbrev enum \begin{itemize}\item\end{itemize} -augroup END diff --git a/vim/.vim/plugin/mappings.vim b/vim/.vim/plugin/mappings.vim index d61e7d2..7c5bad1 100644 --- a/vim/.vim/plugin/mappings.vim +++ b/vim/.vim/plugin/mappings.vim @@ -1,5 +1,6 @@ " search/substitute nnoremap h :nohlsearch +nnoremap r :registers nnoremap %s :%s/\v nnoremap :s/\v vnoremap :s/\v @@ -14,7 +15,7 @@ nnoremap V vl " fugitive nnoremap G :tab G -nnoremap g :G +nnoremap g :G to vim clipboard " terminal / tab commands command -nargs=0 Vt execute "vertical term"