On 20/04/09 00:18, Ben Fritz wrote:
>
>
>
> On Apr 19, 4:33 pm, Noah<[email protected]> wrote:
>> Is it possible to open a window with all
>> the registers value listed and editable?
>> Or is it possible to open a window that shows
>> just one given register that I want to edit?
>> I'm thinking of a special 'buftype' window
>> like *cmdline-window except that when
>> I run :wq the contents will be saved back
>> into the register. This would be very handy
>> for editing macros stored in registers.
>>
>
> I don't know of such a thing...there may be a plugin though.
>
>> Currently I have to paste the register to a
>> new line; edit the text; do a visual select;
>> then delete the selected text back into the
>> original register. Not hard, but tedious.
>> It seems like I should be able to do
>> something like this:
>>
>
> You can actually set a register value in two more ways that may be
> easier in some situations.
>
> 1. Use the "let" command.
>
> Example, :let @q='aThis is a test^['
>
> 2. Use the setreg() function.
>
> Example, :call setreg(q, 'aThis is a test^[')
>
> Either of these methods can be used to modify an existing register by
> recalling the current register contents.
>
> For example, for method 1, type:
>
> :let @q='
>
> Then type CTRL-R CTRL-R q to get the literal contents of the register
> on the command line.
>
> Then enter a closing ' and hit enter.
Note that with this method, if you want single quotes (or apostophes) as
part of the value, you'll have to double them. For instance:
"'Let's go!', he said.", when entered into a register as a single-quoted
string, becomes
:let @x = '''Let''s go!'', he said.'
Best regards,
Tony.
--
A lot of people I know believe in positive thinking, and so do I. I
believe everything positively stinks.
-- Lew Col
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---