Hacker Newsnew | past | comments | ask | show | jobs | submit | LauriL's commentslogin

A useful article for at least intermediate VIM users.

Regarding the system clipboard register: in OS X 10.8 the `"+` register no longer works. Has anyone found a way to get it working again?


It works fine for me. Seems like whatever install of Vim you have doesn't support the clipboard. Run "vim --version | grep clipboard" and see if you get a + or - for the clipboard.

If you want a quick fix for getting it working again, make sure /usr/local/bin is early on in your PATH and run "brew install macvim --override-system-vim"


I visually highlight and call pbcopy on OS X and xclip on ubuntu. It has the annoying side effect of deleting the text, but a simple u fixes that.

So, highlight in visual mode, go into command mode, and !pbcopy


If you use Vim within tmux (on Mac OSX) the clipboard can become 'detached'. To get it working again I use Chris Johnsen's excellent little command.

https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

You can install using 'brew install reattach-to-user-namespace'

You need to config tmux:- set-option -g default-command "reattach-to-user-namespace -l zsh"

then set vim to use to use the unnamed clipboard by default.


My version didn't have it builtin so I use fake clip https://github.com/kana/vim-fakeclip


Here is more info on using SBT with IDEA 12: http://blog.jetbrains.com/scala/2012/12/28/a-new-way-to-comp....


A very helpful setting. Thanks!

I've been using the "+ register intensively. Your tip will save me from quite a lot of keystrokes in the future.


Here is how you can paste the word under cursor to the command line:

  C-r-w
Handy for renaming variables with :%s/oldname/newname/g, for example.


Using VIM delights me everyday. However, I also work with Java codebases, and there Java IDEs are still relevant.

I've tried a VIM plugin on IntelliJ IDEA, but it doesn't work well. I'd like to use the VIM keybindings with IDEA for the sake of speed and enjoyment, but it seems that I should first contribute quite a lot of code for the IDEA VIM plugin to get it working properly.

How do you VIM lovers work with Java code bases?


You can give http://eclim.org/ a try.


You could, but setting up Eucalyptus is a lot of work, compared to Fake S3, a Ruby tool.


I have a degree in history. In addition, I've studied a few CS and higher math courses in the university.

The math, algorithm and data structure courses have been useful for my programming career.

I love coding, and I'm self-taught. I believe its possible to be a great programmer even without a formal degree, if you are passionate. The vice versa doesn't hold.

The course that I miss in the CS degree I dropped out is compilers.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: