News for hackers. Stuff that matters.
Re:Square open-sources its Vim repo, Maximum Awesome by nilkn on Thursday August 29, 2013 @01:11PM (#6297031)
Great to see some love for tmux. Terminal vim + tmux is a lot more powerful than Gvim or MacVim.

That said, I started using vim with Janus and while it convinced me that vim could be a great modern editor, it left me too confused when I tried to make my own customizations. I ended up ditching it and hand-picking my own plugins. I suspect a completely new vim user would likely experience the same process with Maximum Awesome. Still, that doesn't mean these curated sets of plugins are a bad idea--if anything they can serve as a proof of concept for people who aren't yet convinced on the value of the editor.

Re:Square open-sources its Vim repo, Maximum Awesome by mbesto on Friday August 30, 2013 @03:52AM (#6300684)
Terminal vim + tmux is a lot more powerful than Gvim or MacVim.

Oh God, here we go...

Re:Square open-sources its Vim repo, Maximum Awesome by 59nadir on Saturday August 31, 2013 @03:30AM (#6306105)
You realize you're the only one "going" when you pick just one single phrase out of his whole post and make this kind of remark on it, right? You're not exactly contributing to the discussion...
Re:Square open-sources its Vim repo, Maximum Awesome by eevee on Thursday August 29, 2013 @03:14PM (#6297953)
A vim plugin pack could work very well—I think the problem is with many of the plugins, which were built to scratch the author's itch and inadvertently dig their tendrils into half of vim's functionality. That's sort of tolerable when installing them one at a time (and figuring out how to loosen their grip one at a time), but every time I've installed a plugin pack I've suddenly had a vastly different vim that was both buggy and much slower.

gitgutter, ctrlp, and pretty much anything from tpope are all great in this regard: they do one localized thing and it Just Works. (Downside is when that "one thing" is a shortcut or function, and with no other cues I forget I even have the plugin installed.) On the other hand I've had pretty terrible experiences with SuperTab, which required a lot of fiddling and still breaks my Tab key sometimes, and ctags is such a pain that I've never gotten around to making it actually work. But those are useful enough that they end up in most plugin bundles, so you get a Cartesian product of the interference and brokenness of all of them.

Re:Square open-sources its Vim repo, Maximum Awesome by jh3 on Thursday August 29, 2013 @02:04PM (#6297428)
The only thing I really like about MacVim as opposed to Terminal vim + tmux is how fast the cursor moves can move around.
Re:Square open-sources its Vim repo, Maximum Awesome by barclay on Thursday August 29, 2013 @02:20PM (#6297557)
This. I still do not understand why the OSX terminal is so damned slow.
Re:Square open-sources its Vim repo, Maximum Awesome by jh3 on Thursday August 29, 2013 @02:25PM (#6297594)
Me either. It's really the only thing stopping me from deleting MacVim.
Re:Square open-sources its Vim repo, Maximum Awesome by Moto7451 on Friday August 30, 2013 @12:17AM (#6300238)
Any reason why you can't use iTerm 2. Honestly I can't see any reason to use the built in terminal when iTerm2 is so good.

Also nice is the TMUX integration.

Re:Square open-sources its Vim repo, Maximum Awesome by pedro84 on Thursday August 29, 2013 @03:34PM (#6298086)
Is the Keyboard Repeat Rate or Delay Until Repeat set to low? (System Preferences -> Keyboard)
Re:Square open-sources its Vim repo, Maximum Awesome by jh3 on Thursday August 29, 2013 @10:33PM (#6299918)
Nope, that's something I take care of immediately on OSX. I think Terminal.app is just slow when redrawing the screen while scrolling.
Re:Square open-sources its Vim repo, Maximum Awesome by pimeys on Thursday August 29, 2013 @03:43PM (#6298155)
How is vim + tmux any better than gvim + xmonad + terminals? Just out of curiosity, I may want to test this setup.
Re:Square open-sources its Vim repo, Maximum Awesome by jlgreco on Thursday August 29, 2013 @04:22PM (#6298377)
(I use vim+tmux+urxvt+awesomewm)

Basically, terminal multiplexing solves a different problem than window management solves. Terminal multiplexing gets you detach/reattach (letting you switch computers trivially), per terminal splits (which I frequently use in addition to WM tiling, similar to how I use Vim windows in addition to both of those), and better scrolling/highlighting.

Re:Square open-sources its Vim repo, Maximum Awesome by helloTree on Thursday August 29, 2013 @07:57PM (#6299385)
Can you elaborate on this? I also use XMonad in connections with a simple xterm (although I used screen some years ago, but then I did not know about XMonad) but I do not get the idea of detaching/reattaching. Is the idea to save the state of the session?
Re:Square open-sources its Vim repo, Maximum Awesome by jlgreco on Thursday August 29, 2013 @08:32PM (#6299495)
Sort of.

If you are running tmux locally it would allow you to do things like kill X, log back in, open a new xterm, then pick up where you left off. The session isn't paused or suspended, it continues running the entire time even though the gui terminal emulator died.

If you are running tmux remotely, then it lets you start working at home on your laptop (over ssh), close your laptop, drive across town, turn your laptop back on, ssh back in, and pick up where you left off.

The way I use this at work is I have many long-running tmux sessions running on my desktop (one for each 'project', and one for a few interactive db sessions and the like). I then work over ssh with a fullscreened Putty instance. When I want to switch projects I can just hit C-b s then select the session I want to switch to.

At home I use a laptop with linux (and the Awesome WM (similar to xmonad, though less hardcore I suppose)) but most of my 'work sessions' are on various other machines. I ssh into them and connect to the correct session with tmux. Since Awesome lets me arrange windows with tags I do that a lot for work sessions (like tagging a few terminals and a browser window that has docs opened in it) but I consider those to be more ephemeral. I close them out when I start running low on resources (memory, cpu, battery, etc) but the tmux sessions live on (local or remotely).

(I use to use straight up xterm as well, but switched to urxvt because my new laptop has a high DPI screen that makes urxvt's nicer font rendering support sort of necessary.)

Re:Square open-sources its Vim repo, Maximum Awesome by pimeys on Friday August 30, 2013 @01:30AM (#6300416)
I'm restarting X all the time, so I'd see tmux with my test/log window a huge gain. For vim, I prefer gvim for better and faster rendering over any terminal.

How is urxvt's font rendering support better than xterm's?

Having

  XTerm*faceName: Inconsolata
  XTerm*faceSize: 14
in .Xresources gives me exactly the same result as with urxvt or gnome-terminal.

(P.S. Awesome is not at all less "hardcore", just works differently and is kind of a required taste.)

Re:Square open-sources its Vim repo, Maximum Awesome by saidajigumi on Thursday August 29, 2013 @01:34PM (#6297183)
Agreed. I do still use MacVim quite a bit as it integrates well with environments that allow selection of an OS X app as editor. That said, a tmux + vim setup is a great combination, especially if mouse (well, trackpad) scrolling support is enabled in both.

I've picked up a few new tricks from their setup as well -- e.g. see the "Fix Cursor in TMUX" comment in vimrc.

Re:Square open-sources its Vim repo, Maximum Awesome by johncoltrane on Friday August 30, 2013 @04:22AM (#6300753)
> Great to see some love for tmux.

It's not like tmux didn't get any love these days.

Re:Square open-sources its Vim repo, Maximum Awesome by Ives on Thursday August 29, 2013 @04:50PM (#6298536)
Indeed, it's very unfortunate that tmux doesn't run on windows (under cygwin).
Re:Square open-sources its Vim repo, Maximum Awesome by aikinai on Thursday August 29, 2013 @08:36PM (#6299513)
It used to be very unfortunate, but J Raynor recently posted a working patch and I'm currently running tmux in Cygwin!

http://www.marshut.com/mrnsr/patch-for-tmux-on-cygwin.html

Re:Square open-sources its Vim repo, Maximum Awesome by Ives on Friday August 30, 2013 @09:52AM (#6301701)
Cool! Thanks.