Closed benmezger closed 11 years ago
This is not neocomplcache problem. You should post it in other forum like reddit.
Not a neocomplcache problem? I am asking how can I change the directory where neocomplcache reads the modules from. Since my Python installation is somewhere else.
OK. I get it.
neocomplcache searches modules by python
or python3
commands from $PATH
.
But you can change the paths by g:neocomplcache_include_paths
.
If you install vimproc, neocomplcache use vimproc to search commands.
But vimproc cannot know virtualenv environment.
Thanks for the reply,
Funny thing is, if I run, which python
I get /usr/local/bin/python
as output. since now /usr/local/bin/python is my default Python, that's why I don't understand how is neocomplcache still using /usr/bin/python
I am using the default vim installed with homebrew.
~ ❯❯❯ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 14 2013 02:00:06)
MacOS X (unix) version
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent -gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop
+farsi +mouse_netterm +syntax
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: /usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/clang -L. -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa -framework Python -lruby -lobjc
Ok, I managed to fix it, silly me, I forgot I installed Vim before I installed Python with homebrew, so vim was probably configured for python in /usr/bin/python, re-installed vim and everything seems to be working fine.
Thanks.
I am using Vim + Neocomplcache in a Mac OS X 10.8, thing is, I am not using the default Mac OS X Python, I currently installed Python using Brew to the /usr/local/bin/python, and packages are located in /usr/local/lib/python2.7/site-packages/
When using Vim to write Python scripts, neocomplcache is searching in /usr/bin/python for my modules, which is not there, how can I change the location that is searching for? I tried to do a
grep "/usr/bin/python" *
in neocomplcache folder, but it seems that there isn't anything like it.Also something I run this on a virtualenv, it seems that it doesn't find the modules I have it installed, it keeps reading the /usr/bin/python.
Thanks.