cmd-o, cmd-s and so on Just Work in macvim too.
cmd-c is "*yy in vim. Just yy writes to vim's internal clipboard, not to the system clipboard.
cmd-c is "*yy in vim. Just yy writes to vim's internal clipboard, not to the system clipboard.
set clipboard=unnamed
Being able to yank and then paste in other software (or vice versa) is pretty handy.vimrc:
" copy to clipboard
map <leader>y "+yy
" paste from clipboard
map <leader>p "+pIn addition, I found this:
vmap <C-c> "+yI'd have liked only yanked stuff going onto the clipboard, not deleted stuff.
"_
is the "blackhole" register.Add these lines to your ~/.vimrc:
nnoremap <leader>d "_d
vnoremap <leader>d "_d
and enjoy "real" deletion. set clipboard=unnamed
breaks a few register operations. You should use set clipboard+=unnamed
instead.