Hi Balasz, *,

On 01/18/2015 09:54 PM, Balazs Kezes wrote:
> On 2015-01-18 01:50 +0100, Thomas Egerer wrote:
>> the changes introduced in git-commit
>>    00ac1af Copy newline when at EOL in vi(1) mode, from Balazs Kezes.
>> have been driving me up and down the wall during the last couple of
>> days. I often use the 'copy-line' command to copy command line
>> statements. When such a buffer is then pasted the statement is
>> immediately executed. This is very unpleasant.
> 
> Hey! Sorry about that. The idea was to make the vi mode just as vim
> which does copy the newlines if you yank at the end of line. You could
> go back a character (press 'h') before copying. Would that work?
Unfortunately the copy-line mode does not give this option. It
preselects the whole line from start to end (including \n in vi mode)
and copies it to a buffer.
> Or
> maybe using the emacs mode would fit your use case better? It's the
> mode-keys option, I believe and that won't copy the last character just
> like emacs (but you might need to rebind some keys to get back to the
> same state).
Never mind, I think your patch is fine. So I'm a bit in a predicament
here, I can understand Nicholas as well as you. However in my opinion
copy-line is still broken. I'm not very confident Nicholas will consent
to exclude it from the 'copy-newline-at-EOL' policy. When worse comes to
worse I will somehow manage to maintain a local patch on top of my most
recent tmux build. Git makes these things rather easy.
> 
> Thanks!
> 
Cheers,
Thomas

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to