brewで入れたvimの場合自動補完(NeoComplete)が出ますが、
同じ設定ファイルを使用してMacVimで開くと自動補完がでません。
補足 (自動補完が出ないとは)
vimrcで2文字打つと自動で補完候補が出てくる仕様にしており、
brew install vim --with-lua のvim(/usr/local/bin/vim)では2文字打つと候補一覧が自動で出ます。
しかしmacvimでは2文字打っても候補一覧が出てこないため、<C-n>で自分で補完候補を出さなければならない状況です。
MacVimは以下の手順でインストールしています。
brew install --HEAD macvim-dev/macvim/macvim
$ which vim
/usr/local/Cellar/macvim/HEAD/bin/vim
$ vim
:echo has("lua")
1
:messages
Messages maintainer: Bram Moolenaar Bram@vim.org
:version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 4 2016 09:54:04) MacOS X (unix) version Included patches: 1-2149 Compiled by Huge version with MacVim GUI. Features included (+) or not (-): +acl +comments +extra_search +jumplist +mouseshape +odbeditor +scrollbind +textobjects +windows +arabic +conceal +farsi +keymap +mouse_dec +packages +signs +timers +writebackup +autocmd +cryptv +file_in_path +lambda -mouse_gpm +path_extra +smartindent +title -X11 +balloon_eval +cscope +find_in_path +langmap -mouse_jsbterm +perl/dyn +startuptime +toolbar -xfontset +browse +cursorbind +float +libcall +mouse_netterm +persistent_undo +statusline +transparency +xim ++builtin_terms +cursorshape +folding +linebreak +mouse_sgr +postscript -sun_workshop +user_commands -xsmp +byte_offset +dialog_con_gui -footer +lispindent -mouse_sysmouse +printer +syntax +vertsplit -xterm_clipboard +channel +diff +fork() +listcmds +mouse_urxvt +profile +tag_binary +virtualedit -xterm_save +cindent +digraphs +fullscreen +localmap +mouse_xterm +python/dyn +tag_old_static +visual -xpm +clientserver +dnd +gettext +lua/dyn +multi_byte +python3/dyn -tag_any_white +visualextra +clipboard -ebcdic -hangul_input +menu +multi_lang +quickfix -tcl +viminfo +cmdline_compl +emacs_tags +iconv +mksession -mzscheme +reltime +termguicolors +vreplace +cmdline_hist +eval +insert_expand +modify_fname +netbeans_intg +rightleft +terminfo +wildignore +cmdline_info +ex_extra +job +mouse +num64 +ruby/dyn +termresponse +wildmenu system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" defaults file: "$VIMRUNTIME/defaults.vim" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/usr/local/Cellar/macvim/HEAD-a1fea82/MacVim.app/Contents/Resources/vim" Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: clang -L. -L/usr/local/lib -L. -L/usr/local/lib -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurses -liconv -lintl -fr amework Cocoa -fstack-protector -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
.vimrc(NeoComplete周辺)
if has('lua') NeoBundle 'Shougo/neocomplete.vim', { \ 'depends' : 'Shougo/vimproc.vim', \ 'autoload' : { 'insert' : 1,} \ } else let g:neocomplete#enable_at_startup = 1 let g:neocomplete#auto_completion_start_length = 2 let g:neocomplete#enable_smart_case = 1 let g:neocomplete#enable_camel_case_completion = 1 let g:neocomplete#enable_underbar_completion = 1 let g:neocomplete#min_syntax_length = 25 let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' let g:neocomplete#lock_iminsert = 1 let g:neocomplete#enable_quick_match = 1 let g:neocomplete#max_list = 30 let g:neocomplete#enable_auto_select = 1 let g:neocomplete#enable_refresh_always = 1 let g:neocomplete#sources#dictionary#dictionaries = { \ 'default' : '', \ } if !exists('g:neocomplete#keyword_patterns') let g:neocomplete#keyword_patterns = {} endif let g:neocomplete#keyword_patterns._ = '\h\w*'
期待した結果(/usr/local/bin/vim)
実際に起きた結果(/usr/local/Cellar/macvim/HEAD/bin/vim)