public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Stroller <stroller@stellar.eclipse.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Commenting out multiple lines in vim
Date: Sat, 14 Feb 2009 04:38:49 +0000	[thread overview]
Message-ID: <FDB06A76-5956-481E-8879-75EB4475CF34@stellar.eclipse.co.uk> (raw)
In-Reply-To: <3ac129340902132021u704eba0bx76311db6a8f43535@mail.gmail.com>


On 14 Feb 2009, at 04:21, daid kahl wrote:
> You can also enable line numbering, either in command mode using  
> "set nu", or in ~/.vimrc (which I prefer since I always like line  
> numbers, except if I'm copy and pasting...then it's annoying).   
> There is also a macro I made (stole from somewhere and modified) to  
> enter the date on \d entered in both command mode and entry mode,  
> which I find handy for journals or timestamp comments in code.  You  
> can, of course, rearrange and edit how the time appears if you  
> dislike my style.
>
> "Timestamp script for command (normal) mode
> nmap \d :execute "normal i" . strftime("%d %b %Y %H:%M:%S ")<CR>
> "Timestamp script for insert mode
> imap \d <C-R>=strftime("%d %b %Y %H:%M:%S ")<CR>

Thanks for the tips. I don't have immediate need for them, but I will  
bear them in mind.

> Is there any way to access the vim buffers from other than vi?   
> Using Konsole, if I want to copy something from vim I have to  
> highlight with the mouse and right click, which is annoying.  I  
> really just want a better way to copy from Konsole that doesn't  
> involve right click.  At least shift+insert works for pasting from  
> elsewhere...

Do you want to copy without using right-click (i.e. copy upon mouse  
select) or copy without using the mouse at all? I assume the latter,  
but that was not my initial reaction when I read "I really just want a  
better way ... that doesn't involve right click".

Stroller.



  reply	other threads:[~2009-02-14  4:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-14  4:21 [gentoo-user] Re: Commenting out multiple lines in vim daid kahl
2009-02-14  4:38 ` Stroller [this message]
2009-02-14  5:03   ` daid kahl
2009-02-14  6:02     ` Stroller
  -- strict thread matches above, loose matches on Subject: below --
2009-02-12 19:53 [gentoo-user] " Stroller
2009-02-13  0:53 ` Philip Webb
2009-02-13  5:48   ` Stroller
2009-02-13  6:49     ` Eray Aslan
2009-02-13  9:24       ` Joost Roeleveld
2009-02-13 12:37         ` [gentoo-user] " Nicolas Sebrecht
2009-02-13 12:54           ` Joost Roeleveld
2009-02-13 19:58       ` [gentoo-user] " Stroller
2009-02-13 21:45         ` [gentoo-user] " Nicolas Sebrecht
2009-02-14  4:11           ` Stroller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FDB06A76-5956-481E-8879-75EB4475CF34@stellar.eclipse.co.uk \
    --to=stroller@stellar.eclipse.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox