Live data from Hacker News

YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

val.markovic.io

81–90 of 119 posts

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#81
post #57

Earlier quoted context omitted.

An alias will only work with things that are using your shell with your configuration sourced. Things that merely use your PATH won't pick that up.

For the typical use of Vim, it's perfect: $ vim filename

It breaks down when you use it in other common ways, like from your git configuration.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#83
post #81

Earlier quoted context omitted.

For the typical use of Vim, it's perfect: $ vim filename

It breaks down when you use it in other common ways, like from your git configuration.

You can't use

    vim
anyway in git: you must give it the full path.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#84
post #69

Wow, I can't use this in Ubuntu because it requires Vim 7.3.584 and Ubuntu comes with 7.3.547...

You can, just follow these simple, but detailed instructions for Ubuntu users for upgrading vim: https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-... To not mess with system-installed vim: remove --prefix option and VIMRUNTIMEDIR, then build and install with sudo make install, which will put the files in /usr/local.

Why must Vim 7.3.584+?

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#85

Just a note, you don't need Vundle to install this. I have pathogen installed, which does basically the same thing as Vundle. Just clone the git repo to your ~/.vim/bundle directory and continue compiling as instructed.

True, but I try to recommend a best practice (I never said Vundle was required, in fact the full Installation Guide mentions Pathogen as an option).

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#86
I ran into a couple of issues while building vim with python support (which I haven't needed until now). I have arch linux and python3 was symlinked to /usr/bin/python, the build script cached this and once I fixed the symlink to point to /usr/bin/python2 it was still giving an error. I manually fixed the check in the build script, compiled, but then the plugin didn't recognize +python/dyn so I had to rebuild without python3 support. It seems to be working now and I'm compiling ycm_core. Also, if you're going to be building vim anyway, --enable-rubyinterp and check out the command-t plugin.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#87
Does anyone know of something similar but for all text on an OS? I.e. I find my self repeatedly typing in the same strings in a variety of applications (browser, editor, etc) - would love for an autocomplete app that is OS wide and learns from what I type.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#88

Does anyone know of something similar but for all text on an OS? I.e. I find my self repeatedly typing in the same strings in a variety of applications (browser, editor, etc) - would love for an autocomplete app that is OS wide and learns from what I type.

What I want is an OS-level autocorrect like vim's abbreviations. I'm getting used to not having to care about making typos because they get fixed automatically.

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#89
post #69

Earlier quoted context omitted.

You can, just follow these simple, but detailed instructions for Ubuntu users for upgrading vim: https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-... To not mess with system-installed vim: remove --prefix option and VIMRUNTIMEDIR, then build and install with sudo make install, which will put the files in /usr/local.

Why must Vim 7.3.584+?

Here's the FAQ straight from the docs:

Why does YCM demand such a recent version of Vim? ~

During YCM's development several show-stopper bugs where encountered in Vim. Those needed to be fixed upstream (and were). A few months after those bugs were fixed, Vim trunk landed the 'pyeval()' function which improved YCM performance even more since less time was spent serializing and deserializing data between Vim and the embedded Python interpreter. A few critical bugfixes for 'pyeval()' landed in Vim 7.3.584 (and a few commits before that).

Re: YouCompleteMe, a Fast, As-You-Type, Fuzzy-Search Code Completion Engine for Vim

#90

I want to see developers who are experts in IDea, emacs, vim, etc. face off to code a variety of projects in several languages/frameworks side by side in each editor/IDE so we talk about the empirical differences. vim is a lot faster for many things, but I wonder how well it compares when you need to debug Java remotely (in a container on another server), for example.

"I want to see developers who are experts in IDea, emacs, vim, etc. face off..."

What makes you think they're mutually exclusive? For years I've ran Emacs and IntelliJ IDEA both configured to "synch files on change (on disk)" so that I could be synched between Emacs and IDEA. Both were (and still are) always open simultaneously.

Now in Eclipse you can use eclim which either turns Eclipse in server-mode or which allos to use vim as the text editor right in the middle of Eclipse.

There's also emacs-eclim: it's not as advanced but it has the merit to show that there's hope and light at the end of the tunnel.

Thing is: anyone efficient enough with vim/Emacs shall never find the "text editor" part of any idea to come anywhere close to vim/Emacs.

I need to remotely debug code? One shortcut and I'm under IntelliJ IDEA.

I need to efficiently edit files containting text, like source code files, one shortcut and I'm under Emacs...

I hope one day people writing IDEs will realize that no-one has ever written an IDE with a "text editor" that could match vim/Emacs and hence decide, from the start, to make the text editor pluggable.

Post reply on HN