News for hackers. Stuff that matters.
Re:Vim after 15 Years by monkmartinez on Wednesday October 18, 2017 @09:09PM (#15504657)
Problems with macOS and iTerm2... that is too bad. I am going to do a 30 day challenge with a Thinkpad from Costco next month. Full linux install with Ubuntu 17.10!

I have wanted to try i3wm for as long as I can remember. Unfortunately, it is a PITA to get working on a VM with the Mac as the key chords don't play nicely intersystem. Super excited to give it a go... what is awesome is that I can have an IDE like Pycharm right next to VIM and my shell in a tiling window manager with Linux. I hope I can ditch macOS...

Re:Vim after 15 Years by p1xelHer0 on Thursday October 19, 2017 @03:00AM (#15505985)
I recently switched from iTerm2 to Alacritty https://github.com/jwilm/alacritty. It does not have scrollback, splits, tabs and other fancy features. But for me, performance and snappiness is the most important feature (besides, I use Tmux for all those things mentioned).

For getting something close to i3 (you wont...?) on macOS I am using chunkwm https://github.com/koekeishiya/chunkwm.

I spent some time during the summer to get to know Linux using i3 (i3-gaps actually) with urxvt on a VirtualBox. I do recommend it!

Re:Vim after 15 Years by sooheon on Thursday October 19, 2017 @10:05AM (#15507951)
An article linked in the OP shows that default Terminal.app is more responsive than Alacritty or iTerm.

[1]: https://danluu.com/term-latency/

Re:Vim after 15 Years by p1xelHer0 on Thursday October 19, 2017 @01:47PM (#15509956)
It also says that both of them are limited by tmux, which I use 100% of the time in the terminal. The real problem is when you run Vim in tmux and start to scroll in a large file that you notice that Terminal.app does not cut it. It lags badly. In Alacritty its silky smooth.

And yes, scrolling with j/k for longer periods may be an anti-pattern in Vim and yada yada... I scroll in Vim, and in Alacritty its smooth, in Terminal.app its sluggish.

Re:Vim after 15 Years by jwilm on Thursday October 19, 2017 @03:09PM (#15510710)
Word of caution when reviewing this report: it doesn't take into account vblank period. If you hit a key just after a monitor refresh, you're not going to see it until the next refresh cycle which is typically up to 16ms later. This study is concerned with how long it takes to update the frame buffer rather than time-to-visible which is difficult to measure.

That said, there are plans[1] to reduce Alacritty's input latency. Though, I personally use it as a daily driver and have never felt that there was a noticeable input lag.

Once that lands, Alacritty will have similar latency to Terminal.app _and also have_ a 60 Hz refresh rate (the "smooth" feeling), low CPU usage, and much higher throughput.

[1]: https://github.com/jwilm/alacritty/issues/673

Re:Vim after 15 Years by soulnothing on Wednesday October 18, 2017 @09:14PM (#15504673)
I've been using i3 for years now. I experienced the same pain. Mac hijacks a lot of the child vm keybindings. I didn't have this problem with windows as the host os. But that doesn't really make sense. Best of luck with the transition. Posting from a thinkpad, with i3, pycharm and vim right now :).
Re:Vim after 15 Years by craftyguy on Wednesday October 18, 2017 @10:59PM (#15505171)
How are you posting on HN from vim?
Re:Vim after 15 Years by jdormit on Wednesday October 18, 2017 @11:55PM (#15505361)
Re:Vim after 15 Years by craftyguy on Thursday October 19, 2017 @12:55AM (#15505565)
I use i3, but i3 != vim. i3 can be configured to use vim bindings.
Re:Vim after 15 Years by soulnothing on Thursday October 19, 2017 @09:25AM (#15507631)
I didn't. Just saying I ran a similar setup as the parent poster.
Re:Vim after 15 Years by asselinpaul on Wednesday October 18, 2017 @09:30PM (#15504754)
What kind of thinkpad? :)
Re:Vim after 15 Years by tbrock on Wednesday October 18, 2017 @09:36PM (#15504786)
T or X. There is no substitute.

The rest, as they say, is garbage.

Re:Vim after 15 Years by jrs95 on Wednesday October 18, 2017 @10:39PM (#15505085)
What about W or P?
Re:Vim after 15 Years by farresito on Wednesday October 18, 2017 @10:49PM (#15505124)
I think those are good too.
Re:Vim after 15 Years by soulnothing on Wednesday October 18, 2017 @10:08PM (#15504959)
T440s, but I was on a T430s earlier for work.
Re:Vim after 15 Years by abhirag on Thursday October 19, 2017 @02:42AM (#15505905)
I also use i3 and customizing it is a lot of fun :D

This(http://abhirag.in/articles/org/i3_setup.html) is my i3 setup with literate dotfiles, hope you find it helpful in switching to i3 :)

Re:Vim after 15 Years by jth0 on Wednesday October 18, 2017 @09:21PM (#15504706)
Hell yeah dude, i3 is incredible. Simple, stable, no distractions, efficient, easy config. It's so perfect
Re:Vim after 15 Years by jingwen on Wednesday October 18, 2017 @10:37PM (#15505080)
Switched to i3 a few weeks back and I absolutely love it. Switching between applications and workspaces is incredibly fast, and the _only_ time I need the mouse is for web browsing. It's amazing.
Re:Vim after 15 Years by craftyguy on Wednesday October 18, 2017 @10:58PM (#15505165)
Use qutebrowser, and you'll never need the mouse again!
Re:Vim after 15 Years by pweissbrod on Thursday October 19, 2017 @09:10AM (#15507534)
+1 liked from a qutebrowser instance :)
Re:Vim after 15 Years by suprfnk on Thursday October 19, 2017 @02:45AM (#15505922)
Firefox? Check out something like VimFX. No need for the mouse on 80% of the webpages.
Re:Vim after 15 Years by majewsky on Thursday October 19, 2017 @07:19AM (#15506937)
Unfortunately, it'll also be obsolete in a few weeks when Firefox 57 comes. I've switched to Saka Key, but it's not yet a viable replacement (esp. because clipboard interactions are broken in FF 56 on my Linux systems).
Re:Vim after 15 Years by yothsoggoth on Thursday October 19, 2017 @06:43AM (#15506815)
Unfortunately it appears all of the most popular (and feature-complete) Vim-style plugins for Firefox are dying with the upcoming Firefox update dropping support for XPCOM/XUL plugins.
Re:Vim after 15 Years by maddyboo on Thursday October 19, 2017 @04:30AM (#15506330)
On Chrom(e|ium), SurfingKeys[1] is an excellent extension.

[1]: https://github.com/brookhong/Surfingkeys

Re:Vim after 15 Years by spapas82 on Monday October 23, 2017 @06:12AM (#15532013)
Also, for chrome there's the vimium plugin.