Making vimdiff work

2006-07-07 Thread J.Hofmann
Hello, I am trying to set up vimdiff, but E97 is thrown. gvim -d tutor.alter tutor.de "tutor.de" [unix] 847L, 31889C "tutor.alter" [unix] 853L, 31953C E97: Cannot create diffs Test diff.exe inside of gvim: :!diff -> opens shell with diff.exe Test of diff itself: C:\TEMP\vimtutor_

Re: Making vimdiff work

2006-07-07 Thread J.Hofmann
> Chip Campbell wrote: > > What is your shell quoting character? (:help 'shq') For Windoze, > generally it should be a double quote ("). Is was empty before, I set it to " without success. shell is C:\WINDOWS\system32\cmd.exe Regards Joachim ### This

seaching for selected multiline expression

2006-07-13 Thread J.Hofmann
Hello, I have a mapping which immediately searches for visually selected items. It achieves this by yanking the selected text and exec[utes] a search for the register content This works so far. vmap / y:execute "/".escape(@",'[]/\.*') Now I tried this first time for multiline selects, but it

Re: seaching for selected multiline expression

2006-07-14 Thread J.Hofmann
> Gary Johnson wrote: > I just recently enhanced it to work with multi-line patterns. > > vmap g/ y/=substitute(escape(@", '\\/.*$^~[]'), '\n', '\\n', 'g') Works, Thank You. concatenating substitute() and escape() seems to be tricky. Joachim ### T

Scrolling relative to cursor

2006-07-19 Thread J.Hofmann
Hi, Given are two loaded buffers. When I switch beween them by :bn/:bp or :n#, the window is redrawn similar to z. z. Redraw, line [count] at center of window (default cursor line). Put cursor at first non-blank in the line. C

global normal command with yanking

2006-07-24 Thread J.Hofmann
Hi, I want to "assemble" a line below a block of text, where the fist word of every line is concatenated. one bla two bla three bla four bla So I tried this, which should for every line yank the first word, Go to the last (empty) line, pastes and appends a little text after. :1,$-g/^/normal

ftplugin mail.vim Leader

2006-08-01 Thread J.Hofmann
Hello, I don't understand the meaning of <(Local)Leader>. When I set filetype to "mail" (ftplugin mail.vim), how can I execute the mapping to "Quote text by inserting "> " ? Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for M

verbose -V

2006-08-07 Thread J.Hofmann
Hi, how can I redirect the call gvim -V to a file? ? I tried gvim -V >>c:\temp\ausgabe but no file is generated. [Windows XP] Joachim ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http:

matchit

2006-08-09 Thread J.Hofmann
At home my matchit works, but not at work. My debugging is so far: :sourcing matchit by hand :set verbose=15 - placing cursor on an If of an If/End If block - pressing % -> calls of Function 4_Match_wrapper are shown by verbose, the last lines are: line 23: return 0 funct

highlight setting overwritten

2006-08-22 Thread J.Hofmann
Hello, in my old gvim62 installation I do a few highlight commands in the $VIM/_gvimrc: highlight Comment guifg=DarkGreen guibg=background ... Now in my new vim70 installation this seems to be overwritten somewhere. The _gvimrc *is* sourced (-> :scriptnames) If I do the highlight command manuall

vim 7 on win xp console slow

2006-08-31 Thread J.Hofmann
Hello, When i press , it takes about one second to finish, i.e. switching from insert into normal mode, or placing the cursor in the buffer window when escaping from the commandline. All other things don't seem to create delays. This does not happen in vim 6.2. Is there something I can try to

cusor movement

2006-09-18 Thread J.Hofmann
Hello, is it possible to tell vim(7) *not* to jump to the next line when using object motion (w,b..) such as vim behaves when using l or h ? Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more inform

Re: cursor movement

2006-09-19 Thread J.Hofmann
> -Ursprüngliche Nachricht- > Von: Yakov Lerner [mailto:[EMAIL PROTECTED] > On 9/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > Does this do what you wanted: > "--- remap w and b to make them line-locked Yes, it works, thank you. By the way, I supposed this behavior could be achiev

break option lines

2007-02-06 Thread j.hofmann
Hello, is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$ VIM\SQLDict\cbsbestenergy.txt,$VIM\SQLD

No Recognition of

2007-02-09 Thread j.hofmann
Hello, if I source the following in a script, the is recognized literally and not as the CR-Key. So if I click the menu, the :source command appears on the bottom line with a literal instead of carrying the command out. (Works normally on other installations.) Why that? silent 11nmenu &statt-w

External command with arguments (WinXP)

2007-02-13 Thread j.hofmann
Hello, at the shell cmd I can run the following to start ms outlook with a new mail window and attachment of a sql file: C:>"C:\Programme\Microsoft Office\Office10\OUTLOOK.EXE" /a "c:\vimtemp\trigger.sql" How can I run this inside of vim to attach the current buffer? Thank You Joachim

Re: External command with arguments (WinXP): cmd /c problem

2007-02-15 Thread j.hofmann
Hm, this is strange, the windows shell cmd (not vim!) has problems with the following: >cmd.exe /c "C:\Programme\Microsoft Office\Office10\OUTLOOK.EXE" /a "c:\Dokumente und Einstellungen\hofjoa41\Eigene Dateien\test.txt" -> "C:\Programme\Microsoft not found" If I use the command above directly a

AW: External command with arguments (WinXP): cmd /c problem workaround

2007-02-15 Thread j.hofmann
> -Ursprüngliche Nachricht- > Von: A.J.Mechelynck [mailto:[EMAIL PROTECTED] > If you replace "Microsoft Office" by its 8.3 equivalent > (MICROS~1 or similar) OK, this works: C:\PROGRA~1\MI1933~1\OFFICE10\outlook.exe /a "%:p" I found this strange short path by calling command.com fro

codepage for vim 7 windows console

2007-02-22 Thread j.hofmann
Hello, I now use vim 7 for DOS batching in WinXP. If I use umlaut (äöüß) in vim 7, it is displayed correctly. But vim 7 saves the buffer using the Windows Codepage, like gvim does! The buffer content is the same when saved by gvim and vim. So I cannot i.e. correctly display (echo) text with umla

splitting buffer content to several files

2007-04-04 Thread j.hofmann
Hello, I have a buffer consisting of many create view ... ... go blocks. How can I write these blocks somehow efficient to different files? Thank You Joachim ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more info

gvim 7: german umlauts not found when :set ic (Windows)

2007-04-20 Thread j.hofmann
I realized this by accident in gvim: Ignorecase works *correct*, except my Umlauts (äöüß). When I search for them in lowercase, these *are* found, when they are lowercase, but *not* when they are UPPERCASE. In my old gvim 6.2 they *are* found. Any Ideas? Probably a bug? Or a wrong codepage or so

AW: "Tear off this menu" in messages-history

2007-05-29 Thread j.hofmann
> Yongwei Wu wrote: > > Incidentally I find a lot of entries of "Tear off this menu" > when I issue :messages. It turns out you may add such > messages to the message history any time you open the menu, > esp. when by using a keyboard shortcut. I am wondering these > kind of messages should