From 40b17c99e40c1a5ec016271bbe1cd98daed5e202 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Tue, 7 Jan 2025 10:38:55 +0100 Subject: [PATCH] :zap: cleaning vimrc --- .vimrc | 61 ++++++++++++++++++---------------------------------------- 1 file changed, 19 insertions(+), 42 deletions(-) diff --git a/.vimrc b/.vimrc index b577413..04828b8 100644 --- a/.vimrc +++ b/.vimrc @@ -1,10 +1,13 @@ -""" VIM config file | Jan Andrle | 2024-10-21 (VIM >=9.1 AppImage) +""" VIM config file | Jan Andrle | 2025-01-07 (VIM >=9.1 AppImage) "" #region B – Base scriptencoding utf-8 | set encoding=utf-8 set pythonthreedll=/lib/x86_64-linux-gnu/libpython3.10.so.1.0 let $BASH_ENV = "~/.bashrc" set runtimepath^=~/.vim/bundle/* packadd! matchit + packadd! cfilter + let g:ft_man_folding_enable = 1 + runtime! ftplugin/man.vim " set hidden set title @@ -51,10 +54,10 @@ """ #endregion BB "" #endregion B "" #region H – Helpers + " TODO DEL command! -nargs=? CLscratch 10split | enew | setlocal buftype=nofile bufhidden=wipe noswapfile nobuflisted | if !='' | execute 'normal "'..'p' | endif | nnoremap ;q :q cabbrev ALTR ALTredrawSyntax - set grepprg=LC_ALL=C\ grep\ -nrsH command! -nargs=0 \ ALTredrawSyntax edit | exec 'normal `"' | exec 'set ft='.&ft command! -complete=command -bar -range -nargs=+ @@ -77,16 +80,6 @@ augroup quickfix autocmd! autocmd QuickFixCmdPost * call QuickFixCmdPost() - autocmd filetype qf - \ if filter(getwininfo(), {i,v -> v.winnr == winnr()})[0].loclist - \| nnoremap ;q :lclose - \| nnoremap ;w :lgetbuffer:lclose:lopen - \| nnoremap ;s :ldo s///gc \| update - \| else - \| nnoremap ;q :cclose - \| nnoremap ;w :cgetbuffer:cclose:copen - \| nnoremap ;s :cdo s///gc \| update - \| endif augroup END "" #endregion H "" #region SLH – Status Line + Command Line + History (general) + Sessions + File Update, … @@ -97,6 +90,7 @@ cabbrev wbw wbw set sessionoptions-=options + " TODO DEL command! -nargs=1 \ CLSESSIONcreate :call mini_sessions#create() command! -nargs=0 @@ -125,6 +119,7 @@ set cursorline cursorcolumn " Always show current position set number foldcolumn=2 " enable line numbers and add a bit extra margin to the left set colorcolumn=+1 " …marker visual + " TODO DEL command -nargs=? SETtextwidth if | let &textwidth= | let &colorcolumn=',120,240' | else | let &textwidth=250 | let &colorcolumn='120,240' | endif SETtextwidth " wraping lines and show two lines set nowrap " Don't wrap long lines by default @@ -181,7 +176,6 @@ " use § for § inoremap § set nrformats-=octal - command! -nargs=1 SETTOGGLEnrformats if &nf=~ | set nf-= | else | set nf+= | endif let g:htl_css_templates=1 let g:markdown_fenced_languages= [ 'javascript', 'js=javascript', 'json', 'html', 'php', 'bash', 'vim', 'vimscript=javascript', 'sass' ] @@ -202,7 +196,6 @@ let g:rainbow#blacklist = [203,9] autocmd VimEnter * try \| call rainbow_parentheses#toggle() | catch | endtry - command! SETTOGGLErainbowParentheses call rainbow_parentheses#toggle() " HIGHLIGHT&YANK plugins machakann/vim-highlightedyank & cwordhi.vim let g:highlightedyank_highlight_duration= 250 let g:cwordhi#autoload= 1 @@ -211,6 +204,7 @@ if v:version > 703 || v:version == 703 && has("patch541") set formatoptions+=j | endif " Delete comment character when joining commented lines set smarttab + " TODO DEL command! -nargs=1 SETtab let &shiftwidth= | let &tabstop= | let &softtabstop= SETtab 4 set backspace=indent,eol,start " Allow cursor keys in insert mode: http://vi.stackexchange.com/a/2163 @@ -284,9 +278,17 @@ autocmd! autocmd FileType gitmessengerpopup setlocal keywordprg=git\ show augroup END - command! -nargs=0 - \ GITblameThis GitMessenger "" #endregion GIT +"" #region AI +let g:codeium_disable_bindings = 1 +imap