From d4f76b623858d8872b0a29077d3e219eea04b059 Mon Sep 17 00:00:00 2001 From: Benjamin Kane Date: Fri, 19 Jun 2020 13:40:15 -0700 Subject: [PATCH] small stuff --- nvim/.config/nvim/init.vim | 7 +++++++ nvim/.config/nvim/plugins.vim | 2 ++ 2 files changed, 9 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 55b7042..78270d5 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -268,6 +268,11 @@ command! ShowFuncName call ShowFuncName() command! -nargs=1 Help vert help +" Open :help in new tab +" https://stackoverflow.com/a/3132202/2958070 +cnoreabbrev h getcmdtype() == ":" && getcmdline() == 'h' ? 'tab help' : 'h' +cnoreabbrev help getcmdtype() == ":" && getcmdline() == 'help' ? 'tab help' : 'help' + function! Open(open_me) let open_me = expand(a:open_me) if has('win32') @@ -310,6 +315,8 @@ endif " https://stackoverflow.com/a/46348040/2958070 " Execute current file " TODO: this should ChmodX too +" TODO: this should execute ./run.sh or ../run.sh if they exist +" function! Run() command! Run :!"%:p" " use zg to add word to word-list diff --git a/nvim/.config/nvim/plugins.vim b/nvim/.config/nvim/plugins.vim index 313264c..12aec34 100644 --- a/nvim/.config/nvim/plugins.vim +++ b/nvim/.config/nvim/plugins.vim @@ -183,6 +183,8 @@ Plug 'sheerun/vim-polyglot' " Autocomplete from buffer, filesystem on Tab Plug 'ajh17/VimCompletesMe' +" So working in Python files doesn't try to invoke autocomplete +let g:vcm_omni_pattern = 'NEVER_MATCH' " colorschemes