Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bbkane/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bbkane committed Jul 5, 2020
2 parents 2c0f6d5 + d4f76b6 commit ff5d01c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nvim/.config/nvim/init.vim
Expand Up @@ -268,6 +268,11 @@ command! ShowFuncName call ShowFuncName()

command! -nargs=1 Help vert help <args>

" Open :help in new tab
" https://stackoverflow.com/a/3132202/2958070
cnoreabbrev <expr> h getcmdtype() == ":" && getcmdline() == 'h' ? 'tab help' : 'h'
cnoreabbrev <expr> help getcmdtype() == ":" && getcmdline() == 'help' ? 'tab help' : 'help'

function! Open(open_me)
let open_me = expand(a:open_me)
if has('win32')
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions nvim/.config/nvim/plugins.vim
Expand Up @@ -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

Expand Down

0 comments on commit ff5d01c

Please sign in to comment.