News for hackers. Stuff that matters.
Re:Show HN: vim-airline by Legion on Sunday July 07, 2013 @01:47PM (#6002712)
The delay in leaving insert mode used to drive me nuts in vim-powerline. I posted an issue and the author pointed me to this helpful Vim config snippet as a workaround (original link gone as the vim-powerline issue tracker has been removed, so reposting as a gist): https://gist.github.com/brendonrapp/5944296

I imagine the delay that the README for this project is referring to might be the same thing, so hopefully it can be alleviated with this same trick.

EDIT: Looks like the official Powerline docs share this little trick now: https://powerline.readthedocs.org/en/latest/tipstricks.html

Re:Show HN: vim-airline by jlgreco on Sunday July 07, 2013 @07:54PM (#6004171)
Oh brilliant, I didn't even realize it was powerline that was giving me this issue. They should probably consider making this trick more prominent.
Re:Show HN: vim-airline by daturkel on Sunday July 07, 2013 @03:54PM (#6003174)
I happen to really like this. I used a few lines in vimrc to make mine a little more practical for me:

  "" airline settings
  " remove separators
  let g:airline_left_sep=''
  let g:airline_right_sep=''
  " remove unused modes
  let g:airline_enable_fugitive=0
  let g:airline_enable_syntastic=0
  " set second section to filename
  let g:airline_section_b="%f"
  " empty third and fourth sections
  let g:airline_section_c=""
  let g:airline_section_x=""
  " put filetype in fifth section
  let g:airline_section_y="%Y"
curious to see how other people have theirs configured.

my full vim config is on github [1].

[1]: https://github.com/daturkel/vim-config

Re:Show HN: vim-airline by hoov on Sunday July 07, 2013 @02:25PM (#6002874)
> the old version still works well, but since it's deprecated new features won't get added

While it's deprecated, the author is actively working on this: https://github.com/Lokaltog/powerline, which works well and has even more functionality.

Re:Show HN: vim-airline by nerdklers on Sunday July 07, 2013 @06:13PM (#6003789)
I've spent hours trying to get powerline to work with the patched fonts on OSX and Macvim without any results. This is lightweight, simple and just worked out of the box. Also the light theme is amazing. THANK YOU!
Re:Show HN: vim-airline by spupy on Monday July 08, 2013 @04:58AM (#6005828)
You can use Powerline without a patched font. Set the separator accordingly it won't use fancy symbols.
Re:Show HN: vim-airline by hyperbling on Sunday July 07, 2013 @08:46PM (#6004374)
you're welcome! i had a lot of fun writing this.
Re:Show HN: vim-airline by wahnfrieden on Sunday July 07, 2013 @05:30PM (#6003602)
Is there a nice status line plugin that isn't full of color / visual noise? This would be by far the loudest and most animated part of my vim screen. I've tried powerline too and found it little but a distraction.

I basically don't need to know which mode I'm in, either - if I somehow forget, or come back to vim after a while, I can just hit escape to reset its state.

Re:Show HN: vim-airline by daturkel on Sunday July 07, 2013 @09:06PM (#6004450)
What are you looking for in a status line plugin then? You can customize it a lot in your vimrc without a plugin.
Re:Show HN: vim-airline by reaperhulk on Sunday July 07, 2013 @04:11PM (#6003238)
This is slick. Anyone with more vim-fu than me have a good way to add mixed tabs/spaces warnings to airline?
Re:Show HN: vim-airline by tvon on Sunday July 07, 2013 @05:28PM (#6003580)
You can accomplish something similar with listchars and list:

  set list
  set listchars=tab:»·,trail:·
It will not give you a file-wide warning but it will make tabs stand out (along with trailing whitespace).

Not much help if you actually want tabs, granted.

Re:Show HN: vim-airline by reaperhulk on Sunday July 07, 2013 @07:36PM (#6004100)
Oddly enough I added listchars data to my vimrc today without even thinking it would be helpful for detecting mixed. This ought to be good enough for now, thanks!
Re:Show HN: vim-airline by hyperbling on Sunday July 07, 2013 @08:49PM (#6004391)
here's a blog post i found that does what you need (http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-...)

and then you can replace one of the airline sections with it.

Re:Show HN: vim-airline by nilkn on Sunday July 07, 2013 @11:28PM (#6005002)
I like this a lot, and it's particularly relevant to me since I occasionally find myself running an older version of vim. Therefore I always like seeing plugins written in pure vimscript.
Re:Show HN: vim-airline by da02 on Sunday July 07, 2013 @04:21PM (#6003284)
He also has some cool blog vim-related posts: http://bling.github.io/
Re:Show HN: vim-airline by spupy on Monday July 08, 2013 @08:42AM (#6006428)
Sadly this is incredibly slow on my netbook. Takes ages to return to normal mode. Back to powerline, or maybe vanilla.
Re:Show HN: vim-airline by hyperbling on Monday July 08, 2013 @10:29AM (#6006922)
hi. is this the same problem that `set ttimeoutlen=10` addresses or something else?
Re:Show HN: vim-airline by da02 on Sunday July 07, 2013 @04:19PM (#6003280)
How long was the flight?

Also: thanks for publishing this!

Re:Show HN: vim-airline by hyperbling on Sunday July 07, 2013 @08:47PM (#6004382)
8 hour flight, written over international waters!
Re:Show HN: vim-airline by lsiebert on Sunday July 07, 2013 @06:41PM (#6003894)
Yeah, I have been using this for a few days, and it is very nice.
Re:Show HN: vim-airline by jpterry on Monday July 08, 2013 @03:07AM (#6005537)
Very cool. Much easier to get working than powerline, imho.
Re:Show HN: vim-airline by ninetax on Sunday July 07, 2013 @01:48PM (#6002714)
Will it install with pathogen?

Looks great btw!

Re:Show HN: vim-airline by quantumpotato_ on Sunday July 07, 2013 @02:09PM (#6002797)
Pathogen is mentioned in the README
Re:Show HN: vim-airline by wahnfrieden on Sunday July 07, 2013 @05:31PM (#6003604)
Check out vundle as an alternative to pathogen. I haven't looked back.
Re:Show HN: vim-airline by reledi on Sunday July 07, 2013 @07:32PM (#6004078)
I also recommend Vundle [1]. It can install any plugin that can be installed with Pathogen.

[1] https://github.com/gmarik/vundle

Re:Show HN: vim-airline by nilkn on Sunday July 07, 2013 @11:28PM (#6005004)
I installed it with Pathogen and haven't had any issues.
Re:Show HN: vim-airline by sebslomski on Sunday July 07, 2013 @02:30PM (#6002892)
Great job, I love it!