Run `./configure` in the `src/` directory with the flags you want to call I followed instructions for building on a MAC. Is there a better way than typing ‘:w !python’? Being a total novice to python, VIM, unix, etc., I’m not sure if I have VIM installed properly.Īlso, I was wondering the best way to run python from VIM. After I built VIM it appears to be working and using the Anaconda install but :version shows ‘-python3’ (thought it should be ‘+python3’). I built VIM from source so I could be sure VIM uses Anaconda instead of the system python. I would like to use VIM as a Python editor and I’d like to run python directly from the VIM editor. However, when you start flexing with Vim you'll notice huge pay-offs.I’m learning VIM and Python, novice for both. ![]() From a very simple stand-point there are probably no notable differences. Use Vim in a real Terminal emulator I just use Terminal.app, provided with OS X. Do yourself a favor and abandon it for the real thing. On a side note: the prevalence of MacVim suggests that it's the thing that you should use. Everything you care about should have a plus sign next to it e.g.: Vim is in /usr/local/bin/ and it's not built by Apple. override-system-vim was aded because you had it in your example above. with-features=huge basically provides a full-blown install. Next, install Vim vim -override-system-vim -with-features=huge -disable-nls -enable-interp=lua,ruby,perl,python Vim -version | egrep -color 'VIM|Compiled|python|ruby|perl|tcl' You can get a solid starter build with this:Ĭollect some info before you start: which vim I can't comment on all the stuff you're asking about (powerline, etc) but - as a Mac/Vim user (new to Yosemite myself) the install is (or should be) super-simple. For any other unfortunate souls, this is the best I can figure for now. Since this post is months old I assume you've solved this problem on your own. While trying to find a solution to this problem, the thought crossed my mind that I need to have a different Python at the front of my path, but a) this is how my path was before and Powerline still worked, and b) I want Anaconda Python at the front of my path so I can use IPython. amework/Versions/3.4/lib/python3.4:/Library/Frameworks/amework/Versions/Ģ.7/lib/python2.7:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin ![]() Library/Frameworks/amework/Versions/2.7/bin:/Library/Frameworks/ Users/aweeeezy/anaconda/bin:/Library/Frameworks/amework/Versions/3.4/bin: I'm scared to try any more linking/unlinking because, in addition to just having a bunch of junk on my 4 year old computer that I wanted to be rid of, I went through with the recent wipe and clean install because I broke the builtin Python unlinking stuff I shouldn't have.īy the way, here's my path: aweeeezy$ echo $PATH ![]() I tried ln -s /Applications/MacVim.app /usr/local/Cellar/macvim/7.4-73_1/, but it says the file already exists. usr/local/bin/vimdiff -> /usr/local/Cellar/vim/HEAD/bin/vimdiff usr/local/bin/vim -> /usr/local/Cellar/vim/HEAD/bin/vim usr/local/bin/view -> /usr/local/Cellar/vim/HEAD/bin/view Run `brew linkapps macvim` to symlink these to /Applications. configure -with-features=huge -enable-multibyte -with-macarchs=x86_64 -enable-perlinterp -enab Print _config_var("PYTHONFRAMEWORKPREFIX") □ /usr/local/Cellar/python/2.7.9: 4810 files, 78MĪnd here's the output from brew install -override-system-vim macvim: => Downloading Īlready downloaded: /Library/Caches/Homebrew/ => /usr/local/Cellar/python/2.7.9/bin/python -s setup.py -no-user-cfg install -force -verbose -insta usr/local/bin/2to3 -> /Library/Frameworks/amework/Versions/3.4/bin/2to3 ![]() To force the link and overwrite all conflicting files: The formula built, but is not symlinked into /usr/localĪlready exists. Run `brew linkapps python` to symlink these to /Applications.Įrror: The `brew link` step did not complete successfully They will install into the site-package directory => Pouring python-2.7.9.yosemite.bottle.10.tar.gz Here's the output from brew install python: => Downloading Īlready downloaded: /Library/Caches/Homebrew/python-2.7.9.yosemite.bottle.10.tar.gz I have powerline installed properly (it shows up in tmux) but when I open vim, I get: You need vim compiled with Python 2.6, 2.7 or 3.2 and later support forīrew install -override-system-vim macvim I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before.
0 Comments
Leave a Reply. |