diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-10 19:59:14 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-10 19:59:14 +0100 |
commit | 252d2531b10766bd644514f0f44dc5327e8fe064 (patch) | |
tree | f30ce32116637572fb6db73c0ca5f3968c0f8196 | |
parent | 358f8302ed9938f150c2e57ed87b04923b325837 (diff) |
Some minorish vim changes
-rw-r--r-- | vim/vimrc-sept24 | 25 |
1 files 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 <silent> <leader>CC :Commands<CR> " Open quickfix list in a right vertical split (good for Ngrep results) command! Vlist botright vertical copen | vertical resize 50 nnoremap <leader>v : Vlist<CR> +set pastetoggle=<F3> " 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 <silent> <C-k> <Plug>(ale_previous) " nmap <silent> <C-j> <Plug>(ale_next) " OR map keys to use wrapping. nmap <silent> <C-k> <Plug>(ale_previous_wrap) nmap <silent> <C-j> <Plug>(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 <leader><C-f> :GitFZF<CR> " augroup end " " Read man pages in vim -runtime! ftplugin/man.vim +"runtime! ftplugin/man.vim " "" YouCompleteMe "" -"" *** STARTING AND ENABLING *** |