From 1e0aaf3a7be7cba038acd6f650cce13d82614d97 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 28 Mar 2023 15:43:32 +0100 Subject: removed a bunch of shit from vimrc --- vim/vimrc | 75 +-------------------------------------------------------------- 1 file changed, 1 insertion(+), 74 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 215b5aa..697c0ba 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -22,7 +22,7 @@ noremap ul mmyypVr-`m " " Show the 'list' characters. noremap ls :set list! -" + " Remove double- or single-quotes, or graves wrapped around a string. noremap rdq mmF"xf"x`m noremap rsq mmF'xf'x`m @@ -72,20 +72,12 @@ cnoremap cnoremap cnoremap -" this needs to be here when using vim native package manager: -" https://github.com/dracula/vim/issues/161 -"packadd! dracula | colorscheme dracula - " ignore wrapping. you can move to the visual start of end of a line with `g0` " and `g$`, respectively. noremap j gj noremap k gk " -" These do strange things to centering of text, etc. -"set sidescrolloff=999 -"set scrolloff=999 - set shell=/bin/sh set hi=500 set scrolloff=0 @@ -232,19 +224,6 @@ nmap t :TestSuite nmap :TestLast nmap t :TestVisit -" CoC extensions -"let g:coc_global_extensions = ['coc-tsserver', 'coc-pyright', 'coc-html'] - -" Coc Use `[g` and `]g` to navigate diagnostics -" Coc Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. -" nmap [g (coc-diagnostic-prev) -" nmap ]g (coc-diagnostic-next) - -" " CoC GoTo code navigation. -" nmap gd (coc-definition) -" nmap gy (coc-type-definition) -" nmap gi (coc-implementation) -" " ALE ale config let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' let g:ale_sign_error = '✘' @@ -285,25 +264,6 @@ let g:ale_fix_on_save = 1 let g:ale_linters_explicit = 0 nmap gr (coc-references) -" Use K to show documentation in preview window. -"nnoremap K :call show_documentation() - -" function! s:show_documentation() -" if (index(['vim','help'], &filetype) >= 0) -" execute 'h '.expand('') -" elseif (coc#rpc#ready()) -" call CocActionAsync('doHover') -" else -" execute '!' . &keywordprg . " " . expand('') -" endif -" endfunction -" -"" Quick Editing vimrc -nnoremap ev sjL:e $MYVIMRC - -" Highlight the symbol and its references when holding the cursor. -" autocmd CursorHold * silent call CocActionAsync('highlight') - " clear search highlights nnoremap :noh:call clearmatches() @@ -447,42 +407,9 @@ command! -bang -nargs=* Rg nnoremap a :Rg -" from https://www.youtube.com/watch?v=E_rbfQqrm7g -" easier copy and pasting to and from external in vim! -" this copies to clipboard and primary selection -vn remap "*y let @+=@* -" make sure you are in normal mode for this to work, I think. -"map "+P - "" Quick Editing vimrc nnoremap ev sjL:e $MYVIMRC -" dracula (must be set before colorscheme) -"let g:dracula_colorterm = 0 -"let g:dracula_bold = 1 -"let g:dracula_italic = 0 " this has to be set to 0 to avoid lots of erroneous highlighting (https://github.com/dracula/vim/issues/219) -"let g:dracula_underline = 1 - - -" Colorscheme - -"" this stuff from https://github.com/morhetz/gruvbox/wiki/Terminal-specific -""Use e 24-bit (true-color) mode in Vim/Neovim when outside tmux. -""If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support -""(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) -"if (empty($TMUX)) -" if (has("nvim")) -" "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > -" let $NVIM_TUI_ENABLE_TRUE_COLOR=1 -" endif -" "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > -" "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > -" " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > -" if (has("termguicolors")) -" set termguicolors -" endif -"endif - syntax enable let g:solarized_termcolors=256 -- cgit v1.2.3