Re: Simple move/rename command with cursor placement, howto?

2006-06-12 Thread Gerald Lai
On Mon, 12 Jun 2006, A.J.Mechelynck wrote: Benji Fisher wrote: On Sat, Jun 10, 2006 at 03:50:52PM +0200, A.J.Mechelynck wrote: Marc Weber wrote: Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) In Normal mode, D (shift-d

Re: Simple move/rename command with cursor placement, howto?

2006-06-12 Thread A.J.Mechelynck
Benji Fisher wrote: On Sat, Jun 10, 2006 at 03:50:52PM +0200, A.J.Mechelynck wrote: Marc Weber wrote: Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) In Normal mode, D (shift-d) deletes from curs

Re: Simple move/rename command with cursor placement, howto?

2006-06-12 Thread Benji Fisher
On Sat, Jun 10, 2006 at 03:50:52PM +0200, A.J.Mechelynck wrote: > Marc Weber wrote: > >>Yakov > >> > >How would you implement bash Ctrl-k behaviour ? Delete from cursor till > >the end of line? > > > >noremap : q:i > > > >? ;-) > > > In Normal mode, D (shift-d) deletes from cursor to end-of-l

Re: Simple move/rename command with cursor placement, howto?

2006-06-10 Thread A.J.Mechelynck
Marc Weber wrote: Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) Marc In Normal mode, D (shift-d) deletes from cursor to end-of-line (with a count: on lines including the current one). See :help D HTH, Tony.

Re: Simple move/rename command with cursor placement, howto?

2006-06-10 Thread Marc Weber
> Yakov How would you implement bash Ctrl-k behaviour ? Delete from cursor till the end of line? noremap : q:i ? ;-) Marc

Re: Simple move/rename command with cursor placement, howto?

2006-06-10 Thread Marc Weber
> --- > map mv :RenameFile > \=expand('%') > \=Empty(setcmdpos(getcmdpos()-length(expand('%:t' > > function! Empty(...) >return "" > endfun > - When using strlen() yes. ;) Thanks Marc

Re: Simple move/rename command with cursor placement, howto?

2006-06-10 Thread Yakov Lerner
On 6/10/06, Marc Weber <[EMAIL PROTECTED]> wrote: I want to type \mv to be able to move/rename a file the RenameFile command works fine The \mv mapping should enter :RenameFile // So that I can use Ctrl-e/k to delete change whatever I want.. That's why I'm trying to substiute every character of

Simple move/rename command with cursor placement, howto?

2006-06-10 Thread Marc Weber
I want to type \mv to be able to move/rename a file the RenameFile command works fine The \mv mapping should enter :RenameFile // So that I can use Ctrl-e/k to delete change whatever I want.. That's why I'm trying to substiute every character of the filname to to move the cursor. But I don't know