[TxMt] Re: about cut and paste the whole line

Steve Chu stvchu at gmail.com
Mon Oct 13 06:41:12 UTC 2008


It will be very nice if there is a official shortcut as Fred said
'⌘⌥X'. Because this situation is very common in daily programming.
Thanks, guys.

On Mon, Oct 13, 2008 at 2:34 PM, Fred B <fredb7 at gmail.com> wrote:
>
> On Mon, Oct 13, 2008 at 5:40 AM, Steve Chu <stvchu at gmail.com> wrote:
>> Hi, all,
>>
>> I'v been a Vim user for a long time. There's a shortcut 'dd' in vim
>> command mode to cut a line, then use 'yy' to paste it. I haven't found
>> any corresponding way to make this done in textmate, could anybody
>> here give some advise? Thanks in advance.
>
> There might be others ways to do it, but macros are simple:
>
> - Start Recording a macro (Look in Bundles > Macros)
> - Type ⇧⌘L (Edit > Select > Line)
> - Type ⌘X (cut)
> - Stop Recording macro
> - Save Last Recording (e.g. in YourName's Bundle)
> - Uncheck "Use local clipboard (...)". Important if you want to be
> able to paste it after.
> - Give it an unused key equivalent (the hardest part ;). I use ⌘⌥X.
>
> Now cut lines. ;)
>
> Regards.
>
> --
> FredB
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>



-- 
Steve Chu
http://stvchu.org


More information about the textmate mailing list