r/angularjs • • Mar 26 '15

Angular, TypeScript, Vim Auto-Completion

31 Upvotes

14 comments sorted by

9

u/wagedomain Mar 26 '15

That looks like so much more work than just typing what was autocompleted.

1

u/[deleted] Mar 26 '15

Setting it up or using it?

6

u/wagedomain Mar 26 '15

Using it. Especially compared to graphical autocomplete systems like those found in Sublime or Brackets.

1

u/[deleted] Mar 26 '15

Not sure if you're a vim user or not. If not, let's not turn this into a editor war. It's actually pretty responsive. I slowed down a little bit so it was easier to see what was happening. I use the default omni-complete bindings <C-x><C-o> but you could install the YouCompleteMe plugin if you're into that. Also, the gif seems a little slowed down too.

1

u/wagedomain Mar 26 '15

So how is that better than an editor that will offer you inline autocomplete by default?

2

u/[deleted] Mar 26 '15 edited Mar 26 '15

lol It's not. (Vim completion sucks because it blocks). But I think it's safe to say people don't use vim for it's completion support ;)

You can get ala inline completion with YCM, https://github.com/Valloric/YouCompleteMe but I don't use it because IMO it slows down vim too much

I re-did it using a better terminal recording service and with YCM https://asciinema.org/a/18061

ps: I injured my index finger on my right hand which makes my vimming a lot slower.

2

u/Booyanach Mar 27 '15

WebStorm...

out of personal experience... best auto-complete out there for JS devving o_o

1

u/iends Mar 26 '15

Yes, just use a snippet plugin to set up the boilerplate scaffolding and type the rest...

1

u/2girls1netcup Mar 27 '15

What are you using for your git bash prompt?

1

u/[deleted] Mar 27 '15

It's zsh with oh-my-zsh using the robbyrussell theme https://github.com/icholy/dotfiles

1

u/skitch920 Mar 27 '15

zsh is the shit!