Re: How to wrap sentences?

2007-05-19 Thread Georg Dahn

Hi!

I frequently copy and paste text from web pages and would like to break 
lines at (say) 72 without splitting words.


It sounds strange, but I use to do the following:

:set noai nosi tw=72 fo

Then I copy the text of the web page to the clibboard, enter
Insert mode, and do C-R* to paste the content of the clipboard.
In my experience this works best for my purposes.

I apply above settings, because with my default settings C-R*
does not do what I want it to do in this case.

Best wishes,
Georg








Re: search vs closed folds

2007-04-23 Thread Georg Dahn

When I search and I have closed folds, vim will automatically open
the closed fold if next match is in the closed fold.
Is there setting to disable this auto-opening ? Not to open the closed
fold when searching ?


You may want to add

set foldopen-=search

to your vimrc file. Just read

:h 'foldopen'

Best wishes,
Georg



Re: invoking yanked register into colon command

2007-04-02 Thread Georg Dahn

Hi!

There is an error: The function


function MakeSearchString(str)
return substitute(escape(@, '\\/.*$^~[]'), '\n', '\\n', 'g')
endfunction


should be

function MakeSearchString(str)
return substitute(escape(a:str, '\\/.*$^~[]'), '\n', '\\n', 'g')
endfunction

I have not seen this error before, because the function did the expected 
things even with this error.


Best regards,
Georg







Re: invoking yanked register into colon command

2007-03-31 Thread Georg Dahn

Hi!


For example, I do often want to
replace a name in the text with another. What I used to do is
selecting it with mouse and type
:%s/ctrl-ins/newname/gc
Is there a way to do this with the mouse (and without retyping the name) ?
What I want is maybe something like 'invoking a yanked register in my
colon command'


I have the following in my vimrc file:

function MakeSearchString(str)
return substitute(escape(@, '\\/.*$^~[]'), '\n', '\\n', 'g')
endfunction

function! SIDVisualSearch(direction)
if a:direction == '#'
let l:rhs = y?
else
let l:rhs = y/
endif
let l:rhs = l:rhs . \C-R=MakeSearchString(@\)\CR\CRgV
return l:rhs
endfunction

vnoremap expr * SIDVisualSearch('*')
vnoremap expr # SIDVisualSearch('#')

vnoremap F3 y/C-R=MakeSearchString(@)CR
vnoremap S-F3 y?C-R=MakeSearchString(@)CR
vnoremap M-F3 y:%s/C-R=MakeSearchString(@)CR/

With this just select a text and by typing F3 you can search for the 
selected text and by typing M-F3 you can replace it easily. '*' 
searches forward and '#' backwards like '*' and '#' do for the word 
under the cursor in normal mode.


Best regards,
Georg







Re: Mapping to the numerical - and + and *

2007-02-28 Thread Georg Dahn

--- Jean-Rene David [EMAIL PROTECTED] wrote:
 In vim, delete always saves the deleted data
 somewhere.

Don't forget the black hole register _

Thus, just do _x on the visual selection and
the selected text is deleted to nirvana.

Best wishes,
Georg








___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html


Re: VimTips - Google Wiki Usefulness

2007-02-27 Thread Georg Dahn
Hi!

--- Bram Moolenaar [EMAIL PROTECTED] wrote:
 Using wikibooks.org sounds attractive, but I don't see any protection
 against spamming.  And that is exactly what happens to the Vim tips.
 It's just a matter of time before this happens on wikibooks.org too.

WikiMedia, which is the software of WikiPedia and WikiBooks and one of
the most flexible and most feature-rich software for wikis, offers the
following protection against spamming:

http://meta.wikimedia.org/wiki/Wiki_Spam
http://meta.wikimedia.org/wiki/Anti-spam_Features
http://meta.wikimedia.org/wiki/Spam_Filter

Or just see the contents of the whole category:

http://meta.wikimedia.org/wiki/Category:Anti_Spam

Hope, that helps.

Best wishes,
Georg







___ 
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html


Re: Grab visual selection

2007-02-11 Thread Georg Dahn

Jonas Persson wrote:

I'm lookning for the eqvivalent of C-RC-W (grab word under cursor)
for grabbing the current visual selection into the command line.
Any suggestions?


Well, I would yank the current visual selection with y, and in the 
command line I would do C-R (where  is the unnamed register).


Best regards,
Georg


___ 
Does your mail provider give you FREE antivirus protection? 
Get Yahoo! Mail http://uk.mail.yahoo.com


Re: searching for a string that has many '/' characters

2007-02-11 Thread Georg Dahn

I have a string that has lots of forward slashes. I need to search it
and delete it (e.g. unix path name).  I could use a backslash for
everything forward slash and find it in vim. Is there a way I need not
do that? For now, I use 'grep -n' to get the line number and then delete
it. I don't actually type the string, I just use cut-and-paste!


You could use an other separator, let's say : instead of /

BTW, I have the following in my vimrc file, which may help you, if you 
already have one occurrence, since you can search for the selection 
easily by the following mappings:


 Search in Visual and Selection modes with '*' and '#'
function MakeSearchString(str)
return substitute(escape(@, '\\/.*$^~[]'), '\n', '\\n', 'g')
endfunction

function! SIDVisualSearch(direction)
if a:direction == '#'
let l:rhs = y?
else
let l:rhs = y/
endif
let l:rhs = l:rhs . \C-R=MakeSearchString(@\)\CR\CRgV
return l:rhs
endfunction

vnoremap expr * SIDVisualSearch('*')
vnoremap expr # SIDVisualSearch('#')

 Search for word under cursor
inoremap F3 C-O*
nnoremap F3 *
onoremap F3 C-C*

 Search backwards for word under cursor
inoremap S-F3 C-O#
nnoremap S-F3 #
onoremap S-F3 C-C#

 Search for/Substitution of selection
vnoremap F3 y/C-R=MakeSearchString(@)CR
vnoremap S-F3 y?C-R=MakeSearchString(@)CR
vnoremap M-F3 y:%s/C-R=MakeSearchString(@)CR/

Best regards,
Georg






___ 
Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com


Re: re-map up and down key behaviour

2007-02-10 Thread Georg Dahn

Hi!

There is a much easier way to to that: Just read

:h v_b_I
:h v_b_I_example

Best regards,
Georg

Eric Leenman wrote:

Hi,

Is it possible to remap the up and down key to behave a bit different.
For example I have text like below

  : b123
  : d456
 : g789

And then I want everything after the : starting with xx_
When I then move the b, press i and type xx_ then it looks like xx_b123
When I then press the down-key its position to insert a character 
between 5 and 6.
Is it possible to remap so that it goes to the postion between the 
space and the d?
And when that looks like xx_d456 and I press the down-key it goes to the 
postion between the space and the g?


Rgds,
Eric

_
Turn searches into helpful donations. Make your search count. 
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donationFORM=WLMTAG 







___ 
Web email has come of age. Don't settle for less than the All New Yahoo! Mail http://uk.docs.yahoo.com/nowyoucan.html


Re: re-map up and down key behaviour

2007-02-10 Thread Georg Dahn

and using i instead of c didn't work. Maybe someone has a better
solution.


Just use I instead of i.

Best wishes,
Georg


___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine

http://uk.docs.yahoo.com/nowyoucan.html


Re: Mapping j - gj in insert mode.

2006-11-03 Thread Georg Dahn

Hi!


To get a more intuitive behaviour of movement through wrapped lines, I
added the following mapping:

   inoremap down c-ogj
[...]



The bar stays for the cursor here.


Just try the following mappings:

 Make cursor keys ignore wrapping
inoremap Down C-R=pumvisible() ? \ltDown : \ltC-OgjCR
inoremap Up C-R=pumvisible() ? \ltUp : \ltC-OgkCR

You can find them in evim.vim.

Best wishes,
Georg






___ 
Win tickets to the 2006 FIFA World Cup Germany with Yahoo! Messenger. http://advision.webevents.yahoo.com/fifaworldcup_uk/


Re: svn updates

2006-10-18 Thread Georg Dahn

Hi!

Mark Guzman wrote:

I hate to report problems w/o having solutions, but the svn repos is
currently only up to patch 132. I'm wondering if whatever update script
was maintaining it is broken... Hopefully someone with access can take a
look at it.


As far as I know, the SVN repository is kept up to date manually (I
forgot the name of the person who does this). Maybe this person is
on holidays or cannot update the repository for some other reason.

Best wishes,
Georg



Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Colorschemes Need Updating

2006-10-02 Thread Georg Dahn
Hi!

--- Bill McCarthy [EMAIL PROTECTED] wrote:
 Motivated by the stunningly poor readability of highlighting
 group Pmenu (white on magenta or light-magenta),

You are right, the defaults of this is awful. The same holds
for the highlights of Constant and Title. These color schemes
nearly hurt physically.

 I found no way to change Gvim's default highlighting for
 these groups.  What I found is a mapping of the groups to
 group names in the setting 'highlight'.

Just create a color scheme (e.g. mydefault.vim) and change
the highlights you want to change.

 From my 161 colorschemes in vimfiles\colors (obtained at Vim
 Online):

What do you do with so many color schemes? Some of them have
been updated already, just fetch the new versions. For example,
ps_color has been updated and, since I am the maintainer,
I know, that not only moria and freya have been updated,
but also sienna.

I have created a simple color scheme which corrects some
of the default colorscheme's highlights I dislike. I have
added it as an attachment. Just put

set background=light
colo mydefault

in your vimrc file (you can set the background to dark
if you want the default dark scheme.

Best wishes,
Georg







___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

mydefault.vim
Description: 3928285385-mydefault.vim


Re: Searching for selected text

2006-09-30 Thread Georg Dahn

Hi!

Bram Moolenaar wrote:

/  search for the Visually selected text forward
?  same, backward

Is there a good alternative?


I think, this is ok. For the moment I have the following lines
in my vimrc file (I found the original code in a vim tip):

--- 8 ---
 Search in Visual and Selection modes with '*' and '#'
function MakeSearchString(str)
return substitute(escape(@, '\\/.*$^~[]'), '\n', '\\n', 'g')
endfunction

function! SIDVisualSearch(direction)
if a:direction == '#'
let l:rhs = y?
else
let l:rhs = y/
endif
let l:rhs = l:rhs . ^RMakeSearchString(@\)^M^MgV
return l:rhs
endfunction

vnoremap expr * SIDVisualSearch('*')
vnoremap expr # SIDVisualSearch('#')
--- 8 ---

(The ^R and ^M are special chars)

This does the job for me and I think, that these mappings
are rather consistent with the rest of Vim, since they
just expand the behavior of * and #.

What exactly do you plan? Which new features shall we expect?

Best wishes,
Georg





___ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy and free. http://uk.docs.yahoo.com/trueswitch2.html


Re: Autmagically adding new lines when text gets too long

2006-09-29 Thread Georg Dahn
Hi!

--- Jeremy Conlin [EMAIL PROTECTED] wrote:

 I have set textwidth=80 and would like Vim to automatically break a
 line (between words) when the line gets too big.  However, this isn't
 working, Vim doesn't seem to be doing anything different.  Is there
 some other option I need to set?

Just do

:set linebreak

Where the lines are wrapped is determined by the option 'linebreak'.
The default value should be ok.

Best wishes,
Georg








___ 
Yahoo! Photos – NEW, now offering a quality print service from just 7p a photo 
http://uk.photos.yahoo.com


Re: Re: Autmagically adding new lines when text gets too long

2006-09-29 Thread Georg Dahn
Hi!

--- Jeremy Conlin [EMAIL PROTECTED] wrote:
 No, linebreak just *displays* a broken line, I want a *real* broken
 line.  I want Vim to insert EOLs for me.  I thought that is what
 textwidth would do.

Of course, you still have to set 'textwidth', too.

:set textwidth=80
:set linebreak

will do, what you want. The option 'linebreak' does not do any wrapping, but
just determines where Vim will wrap long lines. These breaks can be soft (if
the option 'wrap' is set) or hard (if 'textwidth' or 'wrapmargin' is set).

Just read

:h linebreak
:h textwidth
:h wrapmargin
:h wrap
:h breakat

Best wishes,
Georg







___ 
Yahoo! Photos – NEW, now offering a quality print service from just 7p a photo 
http://uk.photos.yahoo.com


Re: Strange behavior of d_

2006-09-15 Thread Georg Dahn

Stefan Karlsson wrote:
I was expectig the normal mode command d_ (without count) to delete from the 
cursor position to the beginning of the line, but it seems to delete the 
entire line, i.e. even words /after/ the cursor.


d0 in Normal mode does what you want to do.


Is this really the correct behavior?


yes, just read

:h _

The motion _ is linewise. Thus, if you do d_ in Normal mode,
the whole line is deleted.

Best wishes,
Georg




___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Re: Cannot build console Vim on Windows XP (Vim 7.0.106)

2006-09-14 Thread Georg Dahn

Hi!

I forgot to mention, that my last build was version 7.0.101.
It is probably patch 7.0.104 which introduced this problem.

Best wishes,
Georg Dahn

Georg Dahn wrote:

Hi!

I have updated the sources of Vim from CVS (7.0.106) and tried
to compile Vim. The GUI version can be built, but I get the
following errors when I build the console version:

fileio.obj : error LNK2019: unresolved external symbol _prof_child_exit 
referenced in function _apply_autocmds_group
fileio.obj : error LNK2019: unresolved external symbol _prof_child_enter 
referenced in function _apply_autocmds_group

fileio.obj : error LNK2001: unresolved external symbol _do_profiling
vim.exe : fatal error LNK1120: 3 unresolved externals

I build Vim with HUGE feature-set and use MS Visual C++ Toolkit 2003.

Best wishes,
Georg Dahn




   
___ Copy 
addresses and emails from any email account to Yahoo! Mail - quick, easy 
and free. http://uk.docs.yahoo.com/trueswitch2.html







___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Georg Dahn

Nikolai Weibull wrote:

This stream of thought mode you're using is more suited for IRC, see
http://www.vim.org/community.php.


Yes.

BTW, this is the list for development of Vim. Many of these Emails
don't belong to the development list. General questions about Vim
should be asked in the other list (vim@vim.org) if they aren't much
more suited for IRC anyway.

Best wishes,
Georg Dahn






___ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


Re: Binary, Octal, Decimal, Hex!

2006-09-11 Thread Georg Dahn

Hi!

Sorry, new to the list and I was told not to just send replies privately 
but to post them publicly.  (Damned if you do - damned if you don't!)


No, you are not damned, it is just confusing if each of your replies
starts a new thread. I have realized very late - after my previous
mail -, that most of your numerous mails, which look like IRC postings
each having a return receipt request, seem to be only one thread or so.

Best wishes,
Georg Dahn





___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com


Re: Bug in insert mode completion when completeopts has 'menu,longest'

2006-08-09 Thread Georg Dahn

Hi!


Sometimes the completed text gets erased after hitting enter.

To reproduce:

1. vim -u NONE +'set nocp cot=menu,longest'
2. ifoobar;CRfoC-P;
3. the two lines should be the same now.  press CR and the second
line then becomes fo.


I can reproduce this with gVim 7.0.50.

Best wishes,
Georg




___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html


Re: Copy a line of text without the LF

2006-08-08 Thread Georg Dahn
Hi!

  But why I do need a specialised command ?

That's no specialised command, but the syntax of y. You type y and then a
motion. $ moves to the end of the line.

  Why does 
 
y/$

y/[pattern] moves to the first occurance of the pattern. The cursor is
positioned on the first character of the pattern, but this character is never
yanked (which is exactly what one expects normally).

 (despite the settings of the selection option)

The selection option is not relevant here, because you don't select anything
here.

 Why do I have to leave / off and have to use 
 
  y$

The syntax of y in Normal mode is y followed by a motion.

  And  why does 
 
  yany other character
 
  does not work?

If any other character is no motion, then this must not work.

  Is this inconsistency needed?

This is no inconsistency.

Just read:

:h motion.txt
:h copy-move

BTW, my suggestion has the advantage of using Visual mode. Sometimes you have
to type one character more, but this has the big advantage, that you can see,
what you are going to yank.

Best wishes,
Georg









___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease 
of use. - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Re: Formatting a paragraph in insert mode

2006-08-02 Thread Georg Dahn

--- A.J.Mechelynck [EMAIL PROTECTED] wrote:
 Formatting the paragraph without moving the cursor relative 
 to the text is possible but trickier: mark your place, format,
 then go back:
 
:imap F5 C-Om'C-OgqapC-O``
 
 or
 
:imap F5 Escm'gqap``a

If one accepts, that 'formatprg' and 'formatexpr' are not used,
one can use 'gwap' in Normal mode (without '), too:

imap F5 C-Ogwap

Best wishes,
Georg








___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease 
of use. - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Re: Visible Spaces

2006-07-20 Thread Georg Dahn

Hi!


Or you might want to use

:1,$s/ /./

to replace all spaces by dots, then (immediately after)

u

for undo.


To replace _all_ spaces by dots, you should better use

:%s/ /./g

because your command replaces the first space character of each
line only. With 'g' at the end, all space characters are replaced.

Best wishes,
Georg








___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html


Re: How to distinguish [L]esen (Readonly) f rom (L)öschen (Delete) ?

2006-07-17 Thread Georg Dahn
Hi!

--- Andre Massing [EMAIL PROTECTED] wrote:
 probably a rather stupid question, but using german language makes it
 impossible for me to choose  (L)öschen (Delete) instead of [L]esen (Readonly)
 by typing just l if there exists a swap-file from a chrashed session.

This is an error of the german translation, which unfortunately has been
noticed only after the release of Vim 7.0. Since I am the maintainer of the
German translation for some months now, I am very sorry for this inconvenience.

There is a newer file on the FTP server of Vim:

http://ftp.vim.org/editors/vim/messages/de.po

Just compile this and replace the distributed version with the compiled version
of the latest messages. If you cannot compile it yourself, be free to ask me
for my compiled version (I have compiled it under MS Windows, thus I am not
sure, if it will work on Linux, too).

Best wishes,
Georg






___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html


Re: MatchParen unreadable on dark backgrounds

2006-06-03 Thread Georg Dahn

I don't think any single colorscheme defines MatchParen.
I haven't seen any single colorscheme that define MatchParen.
Do they ?


Of the color schemes, which are in the distribution, only koehler
defines it. Of the others at vim.org, at least inkpot, xterm16,
and my own color scheme (moria) define MatchParen.  Since
MatchParen is new in Vim 7, all color schemes which have not
been updated yet don't define it.

Best wishes,
Georg




___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html


Re: MatchParen unreadable on dark backgrounds

2006-06-02 Thread Georg Dahn

I use dark backgrounds (and therefore a light coloured foreground colour).
As a consequence the new MatchParen highlight that is enabled
by default in vim 7 is unreadable/annoying.
I need to put the following in my ~/.vimrc to fix it:

highlight MatchParen ctermbg=blue guibg=blue

Shouldn't the above be done automatically when one does set bg=dark ?


This depends on the color scheme you are using. If the maintainer
does not update his color scheme, a default value is chosen. If the
background is darkcyan, the highlight is not visible, of course,
if the background is blue, then your value is a bad choice.

Best wishes,
Georg







___ 
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Re: put (paste) from windows clipboard into vim

2006-06-01 Thread Georg Dahn

Hi!

There is another possibility:

Shift-Ins = paste
Ctrl-Ins = copy
Shift-Del = cut

These shortcuts work even without sourcing mswin.vim (BTW, I don't
recommend sourcing mswin.vim) and have the advantage that they work in
all Windows applications.

Best wishes,
Georg



Evan H. Carmi wrote:

hey all,

i am wondering how to copy through windows and than paste into vim with
a keyboard command.

for example: i am running FF and i copy some text, when i go into vim I
don't know how to put (paste) that text without right clicking and
selecting paste. the

:p

command doesn't work and seems to be put what is in the vim clipboard (i
don't think clipboard is the correct term for the place where vim has
yanked data. what is it?)

peace, Evan




___ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html


Re: right-to-left text selection

2006-05-17 Thread Georg Dahn
Hi!

 So, my question:  is it somehow possible to be able to select the
last
 character of a line when selecting from right-to-left while using
 selection=exclusive?

This can be done by doing

:set virtualedit=onemore

which allows the cursor to move just past the end of the line. This
makes exclusive selection much more consistent, but is not compatible
to
Vi. It may break some plugins, so use it with care!

Of course, doing

:set virtualedit=all

helps, too, but this is something, which many people don't like. I
don't
like it and set 'virtualedit' to 'block'. BTW, starting the right-to-
left selection in Insert mode selects the last character, too.

Best wishes,

Georg









Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Georg Dahn

Hi!

My guess is: notepad breaks at column 1024. In notepad the first two
lines of your file have exact 1024 characters. This could be a
notepad limitation.

Best wishes,
Georg



Baha-Eddine MOKADEM wrote:

Hi all,


I have a file which behaves differently whether edited with win32
Notepad and gVim.
When opened in notepad I got several lines, which is the most
convenient layout for me, but when opened in gVim I got the file in
only one line.

I tried to set ff to dos but it does not have any effect.

Does any one have a clue ?
How can I do to have the file edited in several lines ?
What have I missed ?

Thank you.

Eddine.

Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Cannot build vim with Perl support

2006-05-13 Thread Georg Dahn

Hi!


I'm wondering if there were any error messages prior to the ones you
included, especially ones complaining about not finding perl
directories or .h files.  It looks like it might be failing in the
pass where it runs perl on if_perl.xs.  It seems to be most concerned
about finding ExtUtils in this pass.  I'd look in the makefile, and
see if the $PERL is set correctly, and it looks like all the paths are
correct  for your system.


I have checked that (even before writing the report and now again) and 
the path seems to be ok, there is no error before that. If I change the 
path, I get the error, that EXTERN.h is not found.


I set the path to C:\Perl as in this example of the make file:

# Example: To build the non-debug, GUI version with Perl interface:
#   nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl

To be precise, I set the following:

set PERL=C:\Perl
set DYNAMIC_PERL=yes
set PERL_VER=58

In the make file I can see, that this should really be the correct path. 
All paths, which are constructed there, do exist with this setting. I 
made a full install of ActivePerl, thus, if the distribution of 
ActivePerl contains everything, there should not miss anything.


Best wishes,
Georg





Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Patching Vim 7

2006-05-10 Thread Georg Dahn
Hi!

--- Bram Moolenaar [EMAIL PROTECTED] wrote:
 Subversion is already working, Edward Fox takes care of that.

Yes, of course, I am getting the sources from there and it works very
fine.

I might be wrong, but as I understood it, Subversion is just a mirror
of CVS. That is, the developement of Vim still runs with CVS, while
Subversion, which gets updated daily at night, is just a second
possibility to get the sources. The reason, why you did not switch to
Subversion for developement, was the near release of Vim 7. Maybe this
has changed in the meantime, but that's my state of knowledge.

Best wishes,
Georg








___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. 
http://uk.mail.yahoo.com


Re: QuickFix like line highlighting

2006-05-09 Thread Georg Dahn
Hi!

--- Salman Khilji [EMAIL PROTECTED] wrote:
 How do I highlight the entire line without these two
 flaws?  Basically I want, in a normal code-editing
 window, the kind of highlighting that is used in the
 quickfix mode.

Just upgrade to Vim 7.0 and do the following in commandline:

:set cursorline

The same for the column:

:set cursorcolumn

Best wishes,
Georg








Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Vim uninstaller missing some new directories

2006-05-08 Thread Georg Dahn

Bram Moolenaar wrote:

David Fishburn wrote:

When you run the Vim uninstaller the following directories are missed during
the cleanup:
vim70g\autoload
vim70g\spell


Well, that's one of the why didn't anybody notice this before the
release problems...  It's easy to fix.


Well, this is also one of the vim 7 is so great, that nobody
has uninstalled it until now problems...

Best wishes,
Georg





___ 
NEW - Yahoo! 360 – Your one place to blog, create, publish and share! http://uk.360.yahoo.com


Re: Bug: CursorLine highlighting is wrong after search

2006-05-05 Thread Georg Dahn
Hi!

 I tried several versions, starting with gvim -u NONE -N
 and still don't see the problem.  I have no idea what
 could make it appear.

It would be interesting, what is common between Mikolaj Machowski and
me, since we both can see the problem. I am working on two computers
and this problem appears on both. As soon as the search pattern
contains '\n' I can see the problem. I can reproduce it using all
compilers I have and with the official builds, too.

What can I do to help you? What could interfere?

Fortunately, this is no functional limitation...

Best wishes,
Georg






___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. 
http://uk.mail.yahoo.com


Re: autoformat behaves like textwidth were 80 while textwidth is 0

2006-05-05 Thread Georg Dahn
Hi!

--- Bram Moolenaar [EMAIL PROTECTED] wrote:
 It's mentioned at gq.  Any other place it should be mentioned?

I would say, here:

:h fo-table

just scroll down to

-
With 't' and 'c' you can specify when Vim performs auto-wrapping:
value   action  ~
  no automatic formatting (you can use gq for manual formatting)
t automatic formatting of text, but not comments
c automatic formatting for comments, but not text (good for C code)
tcautomatic formatting for text and comments

Note that when 'textwidth' is 0, Vim does no formatting anyway (but
does
insert comment leaders according to the 'comments' option).
-

to me, this is wrong, because if autoformatting wraps at 80, if
textwidth is zero, then it is wrong to say, that Vim does no formatting
in this case. I think, that a remark is really missing here.

It may be senseful at the following places, too, although I don't
consider it as important as in the above case:

:help textwidth
:ins-textwidth

a remark could be fine, too. Especially here: ins-textwidth

-
If you set 'textwidth' to 0, this feature is disabled.
-

If autoformatting 'a' and the 't' flag of the formatoptions are
enabled, this is not true.

Note, that I really searched the help files before I wrote to the
mailing list. What I expected after reading the help files, was a
wrapping at the right border of the window.

Best wishes,
Georg









___ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars 
online! http://uk.cars.yahoo.com/


Re: Bug: CursorLine highlighting is wrong after search

2006-05-04 Thread Georg Dahn

Hi!

 I tried, also on Windows XP, but I don't see the problem.  I have no
 idea why it happens for you.  Must be something obscure.  What
 compiler did you use?  Does it also show in the distributed Vim 7.0g?

That's interesting. I use the same compiler as you (at least that's what
I think), that is Microsoft Visual C++ Toolkit 2003. I add my batch file
below.

With both executables (OLE and non-OLE) of gVim in the distributed Vim
7.0g, which can be downloaded from ftp.vim.org, I see the problem, too.

I have built gVim with MinGW now and I see this problem, too.

Best wishes,
Georg

The batch file for MS Visual C++ Toolkit 2003:

@echo off

set PATH=%SystemRoot%\Microsoft.NET\Framework\v1.1.4322;%PATH%
call %VCToolkitInstallDir%vcvars32.bat
set MSVCVer=7.1
call %ProgramFiles%\Microsoft Platform SDK\SetEnv.Cmd
set LIB=%ProgramFiles%\Microsoft Visual Studio .NET 2003\Vc7\lib;%LIB%

del c:\Source\build\*.* /Q
cd C:\Source\vim-7.0g02\src

set GUI=yes
set OLE=yes
set DEBUG=no
set NBDEBUG=no
set MAP=no
set FEATURES=HUGE

set PYTHON=C:\Python24
set DYNAMIC_PYTHON=yes
set PYTHON_VER=24

set LANGUAGE=de
set GETTEXT_PATH=c:/Programme/gnu/

nmake -f Make_mvc.mak clean

nmake -f Make_mvc.mak all
nmake -f Make_mvc.mak vim.exe GUI=no

copy *.exe C:\Source\build
copy *.dll C:\Source\build
copy xxd\*.exe C:\Source\build
copy GvimExt\*.dll C:\Source\build
copy VisVim\*.dll C:\Source\build

cd C:\Source







___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com


Re: Getting mappings working again on Linux machine

2006-05-04 Thread Georg Dahn
Hi!

--- Eric Leenman [EMAIL PROTECTED] wrote:
 On my WinXP machine in gvim 6.3.0 my mapping works
 On my Linux machine it partly works.
 
 One of the things that doesn't work is the windows behaviour.
 Like CTRL-C, CTRL-V , CTRL-X, ect

Just add

source $VIMRUNTIME/mswin.vim

Best wishes,
Georg










___ 
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for 
FREE! http://uk.mail.yahoo.com


Re: Insert mode: C-R does not paste the whole register

2006-04-28 Thread Georg Dahn
Hi!

 Where do you find this vimtips.txt with 4 lines?  I
 only found one with 3543 lines.

http://www.vim.org/tips/tip_download.php?download=download

It contains a lot of empty lines, has a sice of a little
more then 1,2 MB, and has 40243 lines at the moment.

 I tried another file but it worked fine. 

With other files I had no problems, too, but most times
these were smaller files.

 Perhaps you run out of memory?

I have 2 GB and had only Outlook and Vim open. Memory should
not be a problem.

 Also note that text gets formatted if you put it like
 this.  If you have 'autoformat' set the number of lines
 will change.

That's the reason for doing that. With 'gqap' for example,
the formating is different to what I want when I do C-R.
However, the number of lines should increase, but it seems
just to stop somewhere. BTW, there is no error message.

I am working with Vim 7.0f03 on Windows XP.

Best wishes,
Georg







Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: some problem with vim7f Beta

2006-04-25 Thread Georg Dahn

This behavior of C-N and C-P is not new, it was the same befor, too,
not only in Vim 7. It is not wise to change it and BTW, it is a good
behavior for most people.

 My main point is: I don't want to select entry in the completion menu
 by pressing CTRL-N or CTRL-P, instead, I want to input enough
 characters to make correct entry  become the first entry and it is
 highlighted, then I can use CTRL-Y(yes, I have mapped Enter to
 CTRL-Y since I am tempted to use Enter) to confirm the completion.

If you don't want your typed characters to be replaced by the first
completion, just add a mapping like this:

inoremap C-Space C-NC-P

and it won't be replaced. If you type, then the list of possible
completions gets smaller. You still have to select the correct entry by
yourself, but if I understand you correctly, this might be very near to
that, which you seem to want.

Best wishes,
Georg








___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com


Re: Guitab: font size

2006-04-24 Thread Georg Dahn

Hi!

 What system font size are you using? Right-click on a blank spot on
 your desktop, Properties, Appearance, Font size. Do you have similar
 problems with the tabbar on other Windows apps, such as the
 aforementioned Display Properties dialog?

Because of the high resolution of my laptop display: 11. There are no
similar problems with other applications as far as I have seen until
now.

 The Win32 tabbar is just using built-in common controls.

Yes, as far as I know, it takes the font size of the menu. Normally this
is no problem at all, but if the height is fixed as Bram wrote, using a
larger font than 10 results in cutting something away from the text.
Taking the system value is a very good idea, but it would be even
better, if the height were flexible.

Best wishes,
Georg




Send instant messages to your online friends http://uk.messenger.yahoo.com 


Guitab: font size

2006-04-23 Thread Georg Dahn

Hi!

Since I am working on a laptop with a 1400x1050 display, the fonts I am
using are rather large. That is, the menu font has a size of 11 pixel.
The problem is, that on inactive Guitabs, which use the size of the menu
as its text size, the text gets cut a little bit. The largest font size
seems to be 10 pixel.

I have not found an option to configure this. Is there a possibility
other than changing the code or the menu font?

Best wishes,
Georg






Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: Guitab: font size

2006-04-23 Thread Georg Dahn


Hi!

I am using Windows XP. I want to add, that this is more an esthetical 
Problem than a functional. It is still readable, but the lower parts of 
letters like g, p, j and braces are cut.


Best wishes,
Georg

Bram Moolenaar schrieb:

Georg Dahn wrote:


Since I am working on a laptop with a 1400x1050 display, the fonts I am
using are rather large. That is, the menu font has a size of 11 pixel.
The problem is, that on inactive Guitabs, which use the size of the menu
as its text size, the text gets cut a little bit. The largest font size
seems to be 10 pixel.

I have not found an option to configure this. Is there a possibility
other than changing the code or the menu font?


What system are you using?






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com


Re: a[M:N]

2006-04-22 Thread Georg Dahn

Hi!

 a[M:N] should _never_ produce errors because returning an empty (or
 truncated) list for a[M:N] unambiguously conveys to the programmer
 that M  len(a) (or N  len(a)).

In my opinion one has done something wrong if one wants to get a sublist
whith wrong bounds. That's why an error has to be produced. Returning an
empty list looks like everything is ok where it is not. It takes some
time to find an error if no error message is produced in such cases.

 The most common use-case for the slice operation I can think of is:

 for item in somelist[M:N]
  do something
 endfor

This is a good example. M and N are not further described here. But M
and N must come from somewhere. If they are out of bounds, then in many
or even most cases the programmer has done something wrong. Even if
there may be some cases where this could make sense, it will be better
to add an if. An error is no intrusion as you call it, but a very
helpful signal that there is something wrong.

 Having a[M:N] never be an error makes the above work flawlessly.

What does 'flawlessly' mean here? Not to get an error is not good if
there is one. What may result in more harm: an additional if or writing
a good code, where your examples doesn't exist, or not producing an
error where something goes completely wrong? Therefore,

  IMPORTANT
 Can you think of a use-case when returning an empty list will cause
 the programmer to do the wrong thing?
 /

is the wrong question. It is up to you to show, that not producing an
error message here won't cause the wrong thing to happen. I cannot see
that this is the case.

 Note that this and all succeeding examples are for cases when somelist
 is created dynamically, so we do not have an apriori idea of how long
 somelist is.

But somewhere you have assigned some values to M and N. That will be
done dynamically, too. If they are out of bounds, a highly probable
reason for that is, that you have done something wrong.

 IMHO python does exactly the right thing by not producing errors when
 returning a value can unambiguously convey the same information to the
 user.

And the programmers may search many hours and sometimes several days to
find errors which are covered by that. Less restricting programming
languages seem to be nice because you don't get so many error messages.
But these languages have in common, that it is very hard to find some
types of errors, which can be avoided in more restricting languages.

Best wishes,
Georg






___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com


Re: numbers

2006-04-22 Thread Georg Dahn

Hi!


if columns=128
set number
endif


if columns=128
set number
endif

should work


And else I want to map a key to switch this ooption manualy:
What can I do to make it work?


map F2 :set invnumberCR

Best wishes,
Georg





___ 
NEW - Yahoo! 360 – Your one place to blog, create, publish and share! http://uk.360.yahoo.com


Re: 7.0e: Problem with vertical splits on windows xp

2006-04-21 Thread Georg Dahn
Hi!

Well, this problem is older, since Vim 6.4 behaved like that, too. If a
vertical split is created and guioptions contain L, a scrollbar is
added which makes the windows wider by the amount of the scrollbar. I
have removed the L from the guioptions and don't miss it.

Best wishes,
Georg


--- Cory Echols [EMAIL PROTECTED] wrote:

 On a windows xp multimonitor system, if I do the following:
 
 1. Ensure 'guioptions' contains 'L'.
 2. Postion the gvim window such that it is at least partly drawn on
 the secondary monitor.
 3. Create a vertical split or close a vertical split.
 
 The gvim window will move horizontally such that the gvim window's
 right edge is on the right most edge of my primary monitor.  (My
 primary monitor is on the left, my secondary is on the right.)  Also,
 (and this is a very minor nit) the whole gvim window will widen by an
 amount equal to the thickness of the vertical scrollbar.
 
 In addition, if the windows taskbar is at the top of the primary
 monitor, the gvim window will also move downward by an amount equal
 to
 the thickness of the taskbar.
 




___ 
Introducing the new Yahoo! Answers Beta – A new place to get answers to your 
questions – Try it http://uk.answers.yahoo.com


Re: vim70e bug -- visual mode, pink on pink is not seen

2006-04-21 Thread Georg Dahn
Hi!

What's your operating system?
Do you use GUI or console Vim?
Which version of vim?
Which color scheme?

Best wishes,
Georg



--- Milan Berta [EMAIL PROTECTED] wrote:

 Hello,
 
 I want to report a behavior that is pretty strange for me.
 
 When there is a syntax highlighting on and VISUAL mode is used, then
 the
 pink color disappear where the VISUAL block extends. I know, if there
 would be a VISUAL mode in another color than the same happens
 somewhere
 else. Is it a normal behavior or is this a bug? Can it be set (or
 suppressed) that the underlaying (in this case) pink writing will
 have
 a different color then (in this case) the pink VISUAL block?
 
 I just report it as a bug.
 
 I wanted to report a simple example as a JPEG (as I've seen it as an
 E-mail while forwarding), but it was sent back as non-deliverable :(
 
 Regards,
 Milan
 
 -- 
 * Milan Berta
 * Institute of Physics
 * Academy of Sciences of the Czech Republic
 * Na Slovance 2
 * CZ-182 21 Prague 8
 * Czech Republic
 * 
 * mailto: [EMAIL PROTECTED]
 * phone:  +420 266 052 650, +420 266 052 748
 * fax:+420 286 890 416
 * URL:http://www.fzu.cz/
 




___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com


Re: a[M:N]

2006-04-21 Thread Georg Dahn

Hi!

 I think trying to get items from an empty list should produce an error
 message.

IMHO it would be a serious error if no error were produced in this case.

Best wishes,
Georg







___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com


Re: a[M:N]

2006-04-21 Thread Georg Dahn

Hi!

 Handling N  len(a) except when a happens to be 0 seems a bit
 counterintuitive.

No: Let's assume, that you have an empty list a. Then M in a[M:N] is
always out of bounds, which should produce an error. Analogously, if a
is not empty, but M  len(a), an error should be produced, too. (BTW, is
an error produced in this case at the moment?)

And my opinion is, that an error should be produced, too, if N  len(a)
and a is not 0. A programmer should take care of the bounds. If an index
is out of bounds, I consider it as wrong not to produce an error. But
this is, as I have said already, just my humble opinion.

The following situation would be different: If M were the starting point
and N the number of items, one could say, that a[M:N] should return at
most N items starting with the M'th item.

Just my 2 cents.

Best wishes,
Georg







___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com


Re: vim/win32 built with mingw/cygwin ?

2006-04-18 Thread Georg Dahn

Hi!

 I wonder if anybody tried to build win32 native gvim
 with mingw or/and cygwin (the native win32 gui vim).

Before I switched to the free MS compiler (I follow George Reilly's
instructions) I had built gVim and Vim with native MinGW. I have never
had any problems. IMHO building Vim with MinGW is much easier than
building it with the MS compiler, because it takes some time to install
the MS compiler and everything which is needed for building Vim.
Installing MinGW with its installer is not only much easier, the amount
of downloaded bytes is significantly smaller, too.

Best wishes,
Georg





Send instant messages to your online friends http://uk.messenger.yahoo.com 


default cursorline/cursorcolumn with dark background

2006-04-16 Thread Georg Dahn

Hi!

Vim choses the default colors of the syntax highlighting for gVim 
depending of the value of background. If I add the lines


set background=dark
hi Normal guifg=#e0e0e0 guibg=#202020

I get the defaults for dark backgrounds. Unfortunately, the background 
colors of cursorline and cursorcolumns are the same as in the light 
default color scheme, that is Grey90. The problem with this is, that the 
text gets unreadable. This affects all dark color schemes which don't 
have the CursorLine and CursorColumn highlights defined. I think, a 
better color of guibg would be Grey40 or something like that. Older 
color schemes would work again, if the default were better.


Best wishes and happy Easter!
Georg







___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com


Re: Strange behavior with highlights defined in gvimrc

2006-04-16 Thread Georg Dahn

Hi!


 What does

:verbose hi Constant guifg=Maroon

show?


Nothing. But the Constants are Maroon afterwards.


 In addition to the above sort of debugging, you can add a line like

let g:foo = 2006 April 16 background= . background

to your color scheme file.  The date stamp is to avoid confusion the
*next* time you add debugging comments.


:eval g:foo

shows, that the value of 'background' is 'dark'. Shouldn't it be light 
(docu: When starting the GUI, the default value for 'background' will be 
light)?


Best wishes,
Georg




___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com


Re: default cursorline/cursorcolumn with dark background

2006-04-16 Thread Georg Dahn

Hi!

In the meantime I found another one: Could you please set MatchParen 
differently, because with a dark background a light foreground and Cyan 
don't fit. I suggest setting guifg to bg or Black.


How about using guibg=DarkCyan?


Looks OK to me, it is much better!

Best wishes,
Georg


Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: invisible bar in help tags

2006-04-13 Thread Georg Dahn

Hi!


In vim 7.0d02 I'm unable to see the '|' which usually surround tag in
vim's help file (e.g. around 'usr_01.txt' in the first help page opened
by ':helpCR').


This is not a bug, but a feature. The name of the highlight is 'Ignore'. 
The foreground color highlight 'Ignore' is set to the value of the 
background color in nearly all color schemes, which is exactly the 
purpose of the highlight 'Ignore'. That is, the bars are not to be seen.


IMHO this looks much nicer than before.

Best wishes,
Georg







___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com


Re: invisible bar in help tags

2006-04-13 Thread Georg Dahn
Sorry, but to be totally lost is something completely different, the 
user just has to move the cursor. There are not many invisible 
characters anyway.


Not that easy: if you are in the main help page you can have plenty of
invisible characters on the same column and then only moving right will
reveal where the cursor is, moving the other three directions wont.


What you call 'totally lost' is only a minor problem compared to that, 
what 'totally lost' means in reality. Are you sure that you know, what 
it means to be totally lost?



It's my belief that the cursor should always be visible on the screen.


Then feel free to change your terminal settings and/or your cursor 
settings such that you can see your cursor everywhere. Other people 
don't seem to have that problem, so it might be a problem of your 
configuration and not a general one.


Best wishes,
Georg







___ 
Yahoo! For Good - Sponsor a London Marathon runner - http://uk.promotions.yahoo.com/charity/london-marathon


Re: Vim Job board?

2006-04-09 Thread Georg Dahn

Hi!


my boss says that his editor is as least as good as mine and
he wants me to give up using Vim.


Which editor does he use? Emacs?


Sorry, I'm really bored of working together with developpers
who don't even know about regular expressions.


Oh, at least developers should know about regular expressions.

Best wishes,
Georg


___ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com