aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-09-22 17:24:06 +0100
committerMatthew Lemon <y@yulqen.org>2023-09-22 17:24:06 +0100
commit97c0fe0f7b28de403b12881b6d1df0cf572faa3d (patch)
tree46d3ea0ee6046e370d462a32a5a3cd0c905b501e
parenta5155ad97e18d30306a7947017f5bf8d4afaf159 (diff)
More tidying
-rw-r--r--vim/vimrc70
1 files changed, 40 insertions, 30 deletions
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 <silent> <localleader>h <Plug>(YCMToggleInlayHints)
-nnoremap gd :YcmCompleter GoToDefinition<CR>
-nnoremap <leader>gr :YcmCompleter GoToReferences<CR>
-nnoremap K :YcmCompleter GetDoc<CR>
-" 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 = ['<C-n>', '<Down>']
-let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
-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 <leader>jd :YcmCompleter GoTo<CR>
-imap <silent> <C-l> <Plug>(YCMToggleSignatureHelp)'.
+"let g:ycm_enable_inlay_hints = 1
+"nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints)
+"nnoremap gd :YcmCompleter GoToDefinition<CR>
+"nnoremap <leader>gr :YcmCompleter GoToReferences<CR>
+"nnoremap K :YcmCompleter GetDoc<CR>
+"" 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 = ['<C-n>', '<Down>']
+"let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
+"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 <leader>jd :YcmCompleter GoTo<CR>
+"imap <silent> <C-l> <Plug>(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 <leader><cr>
+inoremap <leader><cr> <esc>yyp<C-a>
+" sudo write
+command! S :w !sudo tee %
+
+nnoremap <Tab> %
+nnoremap
+nnoremap L g_
+" }}}
" FZF {{{
" This is the default extra key bindings
let g:fzf_action = {