corrupted lines

2006-06-10 Thread Hari Krishna Dara
While modifying one of my plugins, I had to add a new variable, and so copy pasted some existing code and modified the name of the variable, so it looked like this: exists('g:lookupfile_LookupNotifyFunc') " The function that should be notified when a file is selected. let g:lookupfile_LookupN

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 >> >> C

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 yo

Re: navigation using f or F

2006-06-10 Thread A.J.Mechelynck
Marc Weber wrote: [...] It is ... Try typing f] f} and ]] I think the first one is more general and easier to type because you can move your small finger above []{} while typing f ;) I prefer Ctrl-h over backspace for the same reason. Perhaps we should ask Bram to change this behaviour? Would any

Re: navigation using f or F

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.

Re: navigation using f or F

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 f or F

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 f :call OneCharSearch(1) > noremap F :call OneCharSearch(0) > noremap ; n > noremap , N > function! OneCharSearch(forwa

***SPAM*** Explore or Sexplore doesn't show the files with chinese file names

2006-06-10 Thread Cesar Romani
I use vim 7.0 compiled with MS Visual C and it has multibyte. The files with Chinese file names and perhaps with other languages don't show in Explore. Many thanks in advance, Andalou

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

2006-06-10 Thread A.J.Mechelynck
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: >> >>> If I have a file with

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

2006-06-10 Thread Cesar Romani
> -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: > > If I have a file with a chinese file name, f.e. 感情包袱.txt > >

Re: navigation using f or F

2006-06-10 Thread Yakov Lerner
On 6/10/06, Marc Weber <[EMAIL PROTECTED]> wrote: Can you do 3f{ this way ? Here is fixed version that handles counter properly. Regarding f{, yes, it finds it properly. (That why \V and check for (c=='\' is there) " remap f,F to be multi-line. Supports counter before f,F. " finds special ch

Re: navigation using f or F

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

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 f or F

2006-06-10 Thread Marc Weber
> Ofcourse I can use the search, /, but it needs more > keystrokes. Any advice? Thanks in advance. Why not use something like this? function DoMappings() let chars=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] let chars+=['A','B','

Re: navigation using f or F

2006-06-10 Thread Yakov Lerner
On 6/10/06, o1792 <[EMAIL PROTECTED]> wrote: Hi, I'm trying to get better navigating within vim. I tend work with screens not lines so I use w or b alot because they don't stop at line ends. What I dislike about f and F is that they do stop at line ends, which I myself don't find so suitable. Ofc

navigation using f or F

2006-06-10 Thread o1792
Hi, I'm trying to get better navigating within vim. I tend work with screens not lines so I use w or b alot because they don't stop at line ends. What I dislike about f and F is that they do stop at line ends, which I myself don't find so suitable. Ofcourse I can use the search, /, but it needs mor

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: comment out block for perl program

2006-06-10 Thread Robert Hicks
Ken Perl wrote: hi, how to comment out or uncomment out a block for perl program file? There is a file on the Vim site call "perl-support" it adds a bunch of Perl related stuff (as a menu and key combos). It is very good. :Robert

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: W16 warning message ("mode of file...has changed") - can this be turned off?

2006-06-10 Thread Yakov Lerner
On 6/9/06, Ken Guest <[EMAIL PROTECTED]> wrote: Is it possible to stop vim from telling me that the mode of a file has changed? For example when I do a chmod +x ? Yes silent! "!chmod +x %" Yakov

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