From 97c0fe0f7b28de403b12881b6d1df0cf572faa3d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 22 Sep 2023 17:24:06 +0100 Subject: More tidying --- vim/vimrc | 70 ++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 30 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 81a8c10..3dad014 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -168,37 +168,37 @@ autocmd BufEnter *.html,*.slim if s:is_tailwind() | \ setlocal omnifunc=tailwind#Complete | \ endif " }}} -" YCM {{{ -" *** STARTING AND ENABLING *** -" Don't start on start - or use show_diagnostics below -"let g:loaded_youcompleteme = 1 -" -" with this set to 0, YCM doesn't load/start -let g:ycm_show_diagnostics_ui = 1 -" ****************************** +"" YCM {{{ +"" *** STARTING AND ENABLING *** +"" Don't start on start - or use show_diagnostics below +""let g:loaded_youcompleteme = 1 +"" +"" with this set to 0, YCM doesn't load/start +"let g:ycm_show_diagnostics_ui = 1 +"" ****************************** -let g:ycm_enable_inlay_hints = 1 -nnoremap h (YCMToggleInlayHints) -nnoremap gd :YcmCompleter GoToDefinition -nnoremap gr :YcmCompleter GoToReferences -nnoremap K :YcmCompleter GetDoc -" this will disable tab, allowing it to be used for ultisnips -" let g:ycm_key_list_select_completion=[] -" let g:ycm_key_list_previous_completion=[] -let g:ycm_key_list_select_completion = ['', ''] -let g:ycm_key_list_previous_completion = ['', ''] -let g:ycm_python_interpreter_path = '.venv/bin/python3' -let g:ycm_auto_trigger = 1 -let g:ycm_python_sys_path = [] -let g:ycm_extra_conf_vim_data = [ - \ 'g:ycm_python_interpreter_path', - \ 'g:ycm_python_sys_path' - \] -"let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' -nnoremap jd :YcmCompleter GoTo -imap (YCMToggleSignatureHelp)'. +"let g:ycm_enable_inlay_hints = 1 +"nnoremap h (YCMToggleInlayHints) +"nnoremap gd :YcmCompleter GoToDefinition +"nnoremap gr :YcmCompleter GoToReferences +"nnoremap K :YcmCompleter GetDoc +"" this will disable tab, allowing it to be used for ultisnips +"" let g:ycm_key_list_select_completion=[] +"" let g:ycm_key_list_previous_completion=[] +"let g:ycm_key_list_select_completion = ['', ''] +"let g:ycm_key_list_previous_completion = ['', ''] +"let g:ycm_python_interpreter_path = '.venv/bin/python3' +"let g:ycm_auto_trigger = 1 +"let g:ycm_python_sys_path = [] +"let g:ycm_extra_conf_vim_data = [ +" \ 'g:ycm_python_interpreter_path', +" \ 'g:ycm_python_sys_path' +" \] +""let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' +"nnoremap jd :YcmCompleter GoTo +"imap (YCMToggleSignatureHelp)'. -let g:ycm_enable_inlay_hints = 0 +"let g:ycm_enable_inlay_hints = 0 " }}} " ALE {{{ let g:ale_enabled = 1 @@ -241,7 +241,7 @@ 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 -set omnifunc=ale#completion#OmniFunc +" set omnifunc=ale#completion#OmniFunc " }}} " :grep use ripgrep {{{ if executable('rg') @@ -277,6 +277,16 @@ let test#python#pytest#options = '-q -s' let test#python#runner = 'pytest' let test#vimterminal#term_position = "belowright" " }}} +" Titbits {{{ +" Increment an ordered (numbered) list with +inoremap yyp +" sudo write +command! S :w !sudo tee % + +nnoremap % +nnoremap +nnoremap L g_ +" }}} " FZF {{{ " This is the default extra key bindings let g:fzf_action = { -- cgit v1.2.3