Coming home to Vim
weblog.jamisbuck.org
weblog.jamisbuck.org
"zt, zb and zz are commands that I use pretty frequently. They keep the cursor on the current line, but re-position the cursor at the top, bottom or middle of the screen."
Priceless! Was wondering how to do this a couple of days ago. Thanks David Frey.
" Mappings to keep the cursor in the middle of the screen most the time {{{
nmap n nmzz.`z
nmap N Nmzz.`z
nmap * *mzz.`z
nmap # #mzz.`z
nmap g* g*mzz.`z
nmap g# g#mzz.`z
"}}} nmap <silent> <C-t> :call fuf#givenfile#launch('', 0, '> ', split(glob('./**/*'), "\n"))<CR>FuzzyFinder works for things other than just files. It also works on tags, buffers, etc. Also, with updated versions of FuzzyFinder, you no longer need fuzzy-finder-textmate, just that line I posted above.
That said, if all you want is command-T, yeah...FuzzyFinder might be overkill.
Unless Command-t can implement the ordering right, it's pretty useless.
I keep hearing good things about the PeepOpen plugin though.
It seems to me like a lot of people have similar requirements, but choose to use a Mac. What am I missing out on? Is it a perception that Linux is inconvenient, or is there something I'm not understanding here?
* better looking/feeling hardware
* more "it just works"
On the second point, what I mean is that using Linux often involves some 2-3-hour stints getting some weird driver problem sorted or installing the latest version of KDE or what not. I'm not saying that's a killer problem, but it is inconvenient and wastes time. This type of stuff doesn't happen very often on Mac OS.
If I couldn't afford a Mac, I would be using Linux too.
Anyway, great to hear things are getting better. I guess 2011 will be the year of Linux on the desktop then...
PHP is still a bit annoying, as the default PHP that comes with OS X kind of sucks, as does compiling PHP, but I'm used to it by now. And there's probably eight million tutorials on doing it if you aren't familiar :-)
The 2-3 hours stints to get a new version of KDE are long gone, you should give it a try sometime, you might be surprised.
For me it was mostly about Gnome more than Linux per se. I can't stand GConf. I dislike how NetworkManager is in a constant state of flux. Gnome Do has had some hilarious 99% CPU usage bugs. (And KDE is simply a non-starter for me.)
Like the others say, the Linux situation is constantly improving, and I'm not averse to moving back at some point.
There are things I miss, and there are things that aren't perfect on the Mac too, but if something is annoying me to the point where I don't want to use it, not using it always seems like more of an option on the Mac than it ever did on Gnome/Linux.
There are a lot of neat tricks that aren't essentially part of the standard Mac OS X setup that are very nice. My favorite recent one is the ability to add custom keybindings for many emacsish editing commands to all standard text fields with a very simple configuration file.
1. When I close the macbook, then later open it, I am confident that resuming from a sleep state will just work. No other laptop ever (including modern linuxes and modern windows) has given me that confidence. Since I move my laptop around a lot, this is a vital feature for me.
2. Awesome simple networking. As in, who needs the full power of iproute2 on a laptop very often? VPN, wireless, connection sharing, etc just work right and powerfully enough that I never have to think about it. But I have a full suite of tools for liberating Internet connectivity at conventions that was not to hard to port from linux.
3. Good support for presentations. I can plug in a monitor and just go, presentations are a breeze. Unless things have changed in the last few months, linux still just doesn't play nice with this.
Now, Mac isn't perfect: things I still miss from linux land:
* Total keyboard control over window placement. Seriously, this is something that Mac people don't seem to get.
* Apt (ports, fink, and homebrew are attempts at this, but none very good and have poorly maintained repos)
* Highlight-to-copy mouse semantics (Now the counter argument is in the mac everything copy/pastes the same where as on a linux system there can be couple competing clipboards glares at kde.. this is of course a strawman the semantics are nice and have nothing to do with n clipboards).
HTH
I recommend Divvy or SizeUp
Package management is indeed lacking considerably.
Highlight to copy can be enabled in terminal and there are Firefox plugins to do the same (I run Firefox fullscreen on one monitor and terminal fullscreen on the other, so it works for me. YMMV.)
What I miss the most isn't a particular feature.. but to be able to control exactly where I want to go next instead of relying on (right,right,right,right,right) or things like that.
i.e. To select the word contained between quotes, bct" instead of like "back back", alt+shift+right + shift+left+left (to remove unnecessary selected stuff).
I know there is a textmate plugin which let you use vim inside.. but it didn't quite worked for me. I might give it another try.
map <D-t> <Leader>p
imap <D-t> <Esc><Leader>p
Awesome and increasingly faster.