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 /path/cursorfilename So that I can use Ctrl-e/k to delete change whatever I want.. That's why I'm trying to substiute

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 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 count lines including the current one). See :help D HTH,

Did you know vim can multitask? Nearly.. ;)

2006-06-10 Thread Marc Weber
Hi. I've written another little script.. But by now you need sh and a client-server version. Perhaps you like it? just run gvim --servername MYSERVERNAME and run a backgroundtask, eg takealotoftime.sh = #!/bin/sh sleep 2 echo I'm ready soon sleep 3 echo I will take long sleep 1

Re: navigation using fchar or Fchar

2006-06-10 Thread Marc Weber
Is this what you want ?: remap f,F to be multi-line noremap silentf :call OneCharSearch(1)CR noremap silentF :call OneCharSearch(0)cr noremap ; n noremap , N function! OneCharSearch(forward) op is '/' or '?' let x= getchar() let c=nr2char(x) echo 'c='.c if x == 27 |

Re: navigation using fchar or Fchar

2006-06-10 Thread Marc Weber
On Sat, Jun 10, 2006 at 09:27:50PM +0200, Yakov Lerner wrote: remap f,F to be multi-line. Supports counter before f,F. finds special chars properly. Yakov Lerner noremap silentf :call OneCharSearch(1)CR noremap silentF :call OneCharSearch(0)cr noremap ; n noremap , N function!

Re: navigation using fchar or Fchar

2006-06-10 Thread Thor Andreassen
On Sat, Jun 10, 2006 at 10:51:24PM +0200, Marc Weber wrote: [...] Can you do 3f{ this way ? Don't know if this is relevant, but you can do similar movements with ]} and [{, which jump to enclosing } or { respectively. -- with kind regards Thor Andreassen

Re: navigation using fchar or Fchar

2006-06-10 Thread Marc Weber
On Sat, Jun 10, 2006 at 11:13:02PM +0200, Thor Andreassen wrote: On Sat, Jun 10, 2006 at 10:51:24PM +0200, Marc Weber wrote: [...] Can you do 3f{ this way ? Don't know if this is relevant, but you can do similar movements with ]} and [{, which jump to enclosing } or { respectively. It is

colseb_a.vim script, closign tags for vim /java.?

2006-06-10 Thread Marc Weber
I want the script to automatically close function with endfunction while with endwhile for with endfor Using it with java I could imagine to complete try { with } catch () { } or } finally () { } But I don't know exactly what to put in here? This is my attempt which didn't work yet. Can

Re: R: Vim doesn't open files with chinese file names

2006-06-10 Thread Wu Yongwei
On 6/11/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Cesar Romani wrote: -Messaggio originale- Da: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Inviato: venerdì 9 giugno 2006 23.34 A: Cesar Romani Cc: Vim Oggetto: Re: Vim doesn't open files with chinese file names Cesar Romani wrote: