From 252d2531b10766bd644514f0f44dc5327e8fe064 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 10 Oct 2024 19:59:14 +0100 Subject: Some minorish vim changes --- vim/vimrc-sept24 | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/vim/vimrc-sept24 b/vim/vimrc-sept24 index 9654f18..d202f0e 100644 --- a/vim/vimrc-sept24 +++ b/vim/vimrc-sept24 @@ -53,10 +53,12 @@ nnoremap CC :Commands " Open quickfix list in a right vertical split (good for Ngrep results) command! Vlist botright vertical copen | vertical resize 50 nnoremap v : Vlist +set pastetoggle= " Here we are going to switch on column highlighting in HTML files " see https://www.youtube.com/watch?v=DeLBFiQ_LEQ autocmd FileType htmldjango,html setlocal cuc cul +hi ColumnColor ctermbg=red term=none " In pursuit of the single text file idea, which uses TODO, IDEA, FLAG " as tags at the start of lines, this function is a vim-native replacement @@ -133,7 +135,7 @@ set expandtab set hidden set path+=** " set relativenumber -set number +set nonumber set more set signcolumn=number set colorcolumn=0 @@ -145,6 +147,7 @@ set shortmess+=c set tags+=./tags set background=dark set completeopt=menuone,longest +set omnifunc=syntaxcomplete#Complete " " Folding if has('folding') @@ -273,7 +276,7 @@ let g:ale_linters = {'python': ['ruff', 'mypy'], \ 'go': ['gopls', 'golint', 'gofmt'], \} let g:ale_fixers = { -\ 'python': ['ruff', 'isort', 'yapf'], +\ 'python': ['ruff_format', 'isort', 'yapf'], \ 'javascript': ['eslint'], \ 'go': ['gofmt', 'goimports', 'gopls'], \ 'cpp': ['clang-format'], @@ -286,14 +289,14 @@ let g:ale_python_mypy_options = '--config-file mypy.ini' " let g:ale_sign_error = '>>' let g:ale_fix_on_save = 1 let g:ale_linters_explicit = 0 -let g:ale_completion_enabled = 0 +let g:ale_completion_enabled = 1 " Map movement through errors without wrapping. " nmap (ale_previous) " nmap (ale_next) " OR map keys to use wrapping. nmap (ale_previous_wrap) nmap (ale_next_wrap) -set omnifunc=ale#completion#OmniFunc +"set omnifunc=ale#completion#OmniFunc " " :grep use ripgrep if executable('rg') @@ -391,13 +394,13 @@ endif "ayu theme " let ayucolor="light" " for light version of theme -" let ayucolor="mirage" " for mirage version of theme -let ayucolor="dark" " for dark version of theme +let ayucolor="mirage" " for mirage version of theme +"let ayucolor="dark" " for dark version of theme "colorscheme gruber-darker let g:gruvbox_contrast_dark = "hard" -let g:gruvbox_italicize_strings = 1 -let g:gruvbox_improved_strings = 1 +let g:gruvbox_italicize_strings = -1 +let g:gruvbox_improved_strings = 0 let g:gruvbox_improved_warnings = 1 let g:gruvbox_invert_indent_guides = 0 let g:gruvbox_invert_signs = 0 @@ -405,8 +408,8 @@ let g:gruvbox_italic = 0 "colorscheme evening "colorscheme sitruuna -colorscheme ayu -"colorscheme evening +"colorscheme ayu +colorscheme evening "colorscheme gruvbox " " GPG files @@ -474,7 +477,7 @@ nnoremap :GitFZF " augroup end " " Read man pages in vim -runtime! ftplugin/man.vim +"runtime! ftplugin/man.vim " "" YouCompleteMe "" -"" *** STARTING AND ENABLING *** -- cgit v1.2.3