Thursday, March 25, 2010

Re: saving/writing with ",,"

* Sven Guckes <guckes@guckes.net> [2010-03-26 03:05]:
> " 2007-05-09
> " a quick way to save:
> map :w<cr>
> imap <c-o>:w<cr>
>
> enjoy :)

i did a copy&paste without the "set paste" -
so the commas were interpreted by my mapping. dang!
(thanks to Antony Scriven for pointing this out!)

so.. here are the correct versions of those mappings:

map ,, :w<cr>
imap ,, <c-o>:w<cr>

by the way, i got used to using the
double-comma for saving in a blink.
cant live without these one now. :)

i might use CTRL-J for saving the buffer -
but it's already been mapped to formatting
the current paragraph for years.. ;)

nmap <C-J> gqap
vmap <C-J> gq

enjoy! :)

Sven

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: