Spacerobots:

  • Archive
  • RSS
  • Ask me anything

How to get Mac Vim clipboard copy and paste (Snow Leopard) in the terminal

I’ve been spending more time lately in iterm2 exclusively. The recent split-screen feature is great for me. Running vim in the terminal, I finally accepted this morning how annoying it was that the system clipboard wasn’t integrated.

A quick google and recompile with xterm_clipboard support did the trick.

Here’s the configure command:

 ./configure --with-features=huge \
                    --enable-cscope \
                    --enable-pythoninterp \
                    --enable-rubyinterp \ 
                    --enable-perlinterp \
                    --enable-gui=macvim \
                    --with-mac-arch=intel \
                    --enable-multibyte \
                    --enable-clipboard=yes \
                    --enable-xterm_clipboard=yes


If you are like me you prefer a single line for copy and pasting so here’s the same command in a margin defying format:

 ./configure --with-features=huge --enable-cscope --enable-pythoninterp --enable-rubyinterp --enable-perlinterp --enable-gui=macvim --with-mac-arch=intel --enable-multibyte --enable-clipboard=yes --enable-xterm_clipboard=yes
    • #vim
    • #mac
  • 1 year ago
  • 2
  • Permalink
  • Share
    Tweet

4 bash (bourne again shell) tips

Some quick keyboard commands I use often on the command line

  • Repeat last command: !! and Meta(Alt)+. Not sure about the usefulness of this one, but might keep your fingers a little closer to the home row instead of the land of arrow keys.

  • Begin and end: CTRL+a by itself moves your cursor to the beginning of the line. CTRL+e moves your cursor to the end of the line.

  • Delete a line of text: Probably my most used keystroke: CTRL+a, CTRL+k = nuke the whole line of text. Don’t hit control twice, just hold it and hit “ak”. You can also do CTRL+u for the same effect, but I find myself using CTRL+ak more because of its home row goodness. The secret here is that CTRL+k deletes from the cursor positon to the end of the line. Well, if you are already at the beginning of the line then you’ve got the whole thing nuked.

  • Undo: Whoops, you just nuked a line of text that you want back. Try CTRL+_ That’s an underscore, so you’ll need to press the shift key. Another way of writing it is CTRL+SHIFT+-.

All these commands work great in most Mac text input too (dagger-eyes at Adobe Air).

    • #bash
    • #tip
    • #unix
    • #linux
    • #mac
  • 1 year ago
  • Permalink
  • Share
    Tweet

SPSS Statistics on MAC OS X Snow Leopard

If you are running Snow Leopard and are trying to install SPSS 17, follow these instructions. I had to adjust a few steps personally, so YMMV. Specifically the instructions listed a path as /Library/System, and I’m pretty sure they meant /System/Library because the former wasn’t present on the system I was installing SPSS on.

http://plusrw.wordpress.com/2010/01/14/getting-spss-statistics-17-to-work-with-mac-os-x-snow-leopard/

    • #mac
    • #spss
    • #snowleopard
  • 1 year ago
  • Permalink
  • Share
    Tweet

About






A place for me (Matt Petty aka lodestone) to stream and splay stuff. I'm an entrepreneur and ruby developer with a love of life, great fiction (mostly the science or fantasy variety), and drink.


Follow/Stalk me:
  • Forrst
  • Twitter
  • Facebook
  • Working w/ Rails

Also, I like words

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr