News for hackers. Stuff that matters.
Re:OS X Command Line Utilities by massysett on Thursday May 15, 2014 @10:41AM (#7749662)
Look into getting Emacs in one of its native OS X incarnations rather than using it in the terminal. Emacs is going to have a lot more options for colors (font locking is the Emacs-speak, I think) in its own app than when it's boxed into a terminal. You also get support for multiple "frames" (windows); Vim can't do this at all and I still miss that from Emacs. I use Linux rather than OS X but if you are parked in Emacs for a long time there's no reason to do it in a terminal. I always used the GTK or the Athena version.
Re:OS X Command Line Utilities by cozmorado on Thursday May 15, 2014 @11:16AM (#7749899)
Vim can absolutely do multiple "frames". They're called splits.
Re:OS X Command Line Utilities by massysett on Thursday May 15, 2014 @01:57PM (#7751074)
No, it cannot. An Emacs "frame" is a separate editor window, managed by the window manager. Different Emacs frames running the same Emacs session talk to each other--they share the buffer list, etc. Within the Emacs "frame" you can have split "windows".

One Vim session can live only in one window that is managed by the system window manager. You cannot have multiple windows that talk to each other. You can split a single window manager window using ":split" and the like. Vim calls these "windows". You can have multiple tab pages, each of which holding multiple Vim windows, but all these tab pages must reside in a single system window-manager window.

Vim has a help file somewhere saying that Bram Moolenaar knows this is a problem and it's on the todo list.

Re:OS X Command Line Utilities by yangyang on Thursday May 15, 2014 @04:11PM (#7751926)
You can also run Emacs as a daemon, and connect to it from both graphical and tty sessions. So you could ssh into your desktop and (with emacsclient), work with the same instance running on your X desktop.
Re:OS X Command Line Utilities by dunham on Thursday May 15, 2014 @09:42PM (#7753315)
I did this back in college with XEmacs (90's). I'd leave gnus running at school and open a new frame from home to check mail and news. (You can use this to have two people editing at once too, but you have to avoid avoid opening a minibuffer.)
Re:OS X Command Line Utilities by YAYERKA on Thursday May 15, 2014 @03:37PM (#7751715)
Although it is not exactly the same, what you can do is start a `screen' session (which can be split with ^a S), and then split your `vi' instances.
Re:OS X Command Line Utilities by yangyang on Thursday May 15, 2014 @11:18AM (#7749920)
A frame in Emacs terminology is actually a top-level window.
Re:OS X Command Line Utilities by nesyt on Thursday May 15, 2014 @12:34PM (#7750505)
So MacVim does have this functionality then, yes? You can have multiple top-level windows, each having multiple tabs, each having multiple splits.
Re:OS X Command Line Utilities by splawn on Thursday May 15, 2014 @03:35PM (#7751697)
I was curious so i just tested this to see if it did. It does not. Yes you can have multiple tabs and splits, but in emacs each frame shares the same buffer list as well.
Re:OS X Command Line Utilities by cityhall on Thursday May 15, 2014 @03:44PM (#7751759)
They don't share anything. Different buffers, registers, and I think even different extensions loaded.
Re:OS X Command Line Utilities by DigitalJack on Thursday May 15, 2014 @11:51AM (#7750140)
unless you are remote, then the terminal emacs + tmux are a good combo.
Re:OS X Command Line Utilities by jfb on Thursday May 15, 2014 @03:30PM (#7751652)
emacs in daemon mode can manage both tty and window manager sessions, and lately, it's started working on OS X! I build git HEAD every week or so and this feature is fantastic. I can ssh into my main work machine and be right back in ENSIME where I was when I left off.