diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 7e0b0cf..ae7bc37 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -700,7 +700,7 @@ "} "AUTOCOMPLETION:{ - if !has('nvim') + if !has('nvim') && has('lua') "neocomplete close popup and save indent inoremap =neocache_cr() function! s:neocache_cr() diff --git a/vimrc b/vimrc index 979fc01..6f783d8 100644 --- a/vimrc +++ b/vimrc @@ -41,14 +41,16 @@ " disable incompatible plugins if has('nvim') call add(pathogen_disabled, 'vim-fixkey') + endif + + if has('nvim') || !has('lua') call add(pathogen_disabled, 'neocomplete.vim') endif + if !has('python') call add(pathogen_disabled, 'MatchTagAlways') endif - if !has('lua') - call add(pathogen_disabled, 'neocomplete.vim') - endif + runtime bundle/vim-pathogen/autoload/pathogen.vim "Load Keymappings: