On Friday, February 1, 2013 5:14:56 AM UTC-6, Juanmi wrote:
> Hello all,
> I would like to know what are the better/fastest way to swap portions of text. In this case ip address. Imagine I have a dhcp config and want to change a mac address by another:
> host printer {
> option host-name "epl5900.red-local.net";
> hardware ethernet 00:24:2B:65:54:84;
> fixed-address 172.16.1.59;
> }
> host computer {
> option host-name "fancylaptop.red-local.net";
> hardware ethernet 00:24:2B:65:54:85;
> fixed-address 172.16.1.19;
> }
> What can I do to swap both macs on example?
>
> Thanks.
What do you mean by "swap"?
If I were entering a new MAC address by manual edit, I'd just place the cursor on the address, press R, and type it in.
If I already have the new MAC address in some other application, I'd copy it, place the cursor on the beginning, press ct; (change text until just before the ';' character) and then CTRL+R followed by + to paste it in.
As you can see the action I'd take depends on the situation.
So please explain your situation more fully.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, February 1, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment