Minor highlight problem with blockwise visual selection

2006-11-24 Thread Guopeng Wen

Hi, Folks,

I found that vim could highlight text incorrectly in
blockwise visual selection when the selection in performed
in reversed order.  The problem can be replicated like
this:

1.  Start vim without loading anything (follows Gary's instruction):
   vim -N -u NONE -i NONE --cmd 'set go+=M'

2.  Create a few lines (more than one lines).

3.  'G' to the last line.

4.  Make a blockwise visual selection in reversed order.
   That is, after C-V, start moving cursor backward and
   upward with 'h'/'k'.

5.  After the selection is made, start blockwise
   insert/append using 'I' or 'A'.

Normally, the visual highlight should have been removed by
now.  However, you'll find visual highlight will stay
after the above steps.  The highlight won't be removed
even if you escape to normal mode.  The blockwise
insert/append operation itself does function correctly.

I have verified this on following systems:
- Vim 7.0 (patch 1-168) on Windows XP
- Vim 7.0 (patch 1-168) on Solaris 8
- Vim 7.0 (patch 1-168) on Slackware 11.0
- Vim 7.0 (patch 1-122) on Debian testing

This should be a minor issue, there's no impact on functionality.

Regards!

--
Guopeng Wen


Re: add yanked line to already yanked lines

2006-11-24 Thread Daniel Nogradi

 I often find myself in need of copying (yanking) non-consecutive
 multiple lines so that I can paste them somewhere else in a
 consecutive way. Several lines are scattered around the file and would
 like to collect them kind of.

 At the moment I go to to first line, yank it, go to the destination
 position, paste it, look for the second line, yank it, go to the
 destination position, paste it after the already pasted line, etc.

 Is it possible to yank a line (or character or block of text) and then
 yank something else in a way that the second yanking does not
 overwrite the previously yanked stuff but adds to it? So that a
 subsequent paste would paste both?

in addition to Tony's suggestion you can use the :global command if
those lines match a common pattern:

  :let @a = ''
  :g/pattern/y A

will first clear the content of register a. The :global command then
appends every line that matches the pattern to register a.


Thanks Jurgen, that is even better, exactly the kind of thing I had in mind.


ViM7 spellchecking

2006-11-24 Thread Krzysztof Maj
Hello everybody,
I've found that VIM7 has a feature called spellchecking. Great, because it 
could be very usefull. But my question is how does it works on Mac OSX, how 
to configure it on this platform and choose the language which I wanna 
prefer? Additionally, is it any chance to ommit special characters during 
the spellcheck in LaTeX files for instance?

Thanks in advance for help,
Krzysztof Maj


-- 
  Software is like sex, it's better when it's free
Linux Debian User. www.GUST.org.pl Member. LRU: 138598



Re: ViM7 spellchecking

2006-11-24 Thread Krzysztof Maj
Hugh Sasse [EMAIL PROTECTED] napisał(a):
 On Fri, 24 Nov 2006, Krzysztof Maj wrote:
 
 Hello everybody,
 I've found that VIM7 has a feature called spellchecking. Great, 
 because it 
 could be very usefull. But my question is how does it works on Mac OSX,
  how 
 
 Do you have reason to believe it works differently on Mac OSX compared
 to other platforms?  Or are you just telling us your platform?

Well, my platform at home is currently Mac OSX and I've found that some 
things work diffrent, that's why I asked. I didn't know before, that 
spellcheking engine has been built in VIM. So I started to worry about it 
since Mac OSX doesn't have ispell or aspell by default.

 
 to configure it on this platform and choose the language which I wanna 
 
 
 :he spell
 :he spelllang

OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which I wanna 
use...

 
 should be sufficient to answer this.
 prefer? Additionally, is it any chance to ommit special characters 
 during 
 the spellcheck in LaTeX files for instance?
 :he spell-syntax
 essentially, yes.

Thanks for pointer, I'll read it for sure.

 Krzysztof Maj



-- 
  Software is like sex, it's better when it's free
Linux Debian User. www.GUST.org.pl Member. LRU: 138598



Re: ViM7 spellchecking

2006-11-24 Thread Hugh Sasse
On Fri, 24 Nov 2006, Krzysztof Maj wrote:

 Hugh Sasse [EMAIL PROTECTED] napisa?(a):
  On Fri, 24 Nov 2006, Krzysztof Maj wrote:
  
[...]
  could be very usefull. But my question is how does it works on Mac OSX,
   how 
  
  Do you have reason to believe it works differently on Mac OSX compared
  to other platforms?  Or are you just telling us your platform?
 
 Well, my platform at home is currently Mac OSX and I've found that some 
 things work diffrent, that's why I asked. I didn't know before, that 
 spellcheking engine has been built in VIM. So I started to worry about it 
 since Mac OSX doesn't have ispell or aspell by default.

It is a unix, so it should have some spell checker available.  Maybe
just `spell`?  /usr/dict/words exists?  `man -k spell` might tell
you something if the whatis databases exist.  I don't have access
to Mac OSX to check.
 
  
  to configure it on this platform and choose the language which I wanna 
  
  
  :he spell
  :he spelllang
 
 OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which I wanna 
 use...

Those are just font choices, I think, so the spell checking should be
orthogonal to that.
[...]
  prefer? Additionally, is it any chance to ommit special characters 
  during 
  the spellcheck in LaTeX files for instance?
  :he spell-syntax
  essentially, yes.
 
 Thanks for pointer, I'll read it for sure.

Probably don't need that level of detail, until you encounter a problem.
 
  Krzysztof Maj
 
Hugh

syntax file from different directory

2006-11-24 Thread Muddassirali Mirzani
The GVIM i'm using is compiled by the system admin.
The syntax directory (common to all users)  the GVIM
executable points does not allow me to write.
I have downloaded a new syntax file (vera.vim) and
placed it in my $HOME/.vim/syntax and modified the
filetype.vim (in $HOME/.vim/)appropriate file
extensions recognize this syntax file. (i.e.   au
BufNewFile,BufRead *.vr,*.vri,*.vrh set ft=vera)
I source the filetype.vim and set syntax on in my
.gvimrc
Now when I try to open somefile.vr it doesn't 'syntax
highlight' the file . but if i check with :set
syntax=tab it gives me vera .
(If I source the vera.vim file in .gvimrc it give the
syntax highlighting.)
I tried to set the $VIMRUNTIME to $HOME/.vim but was
of no avail.

How do I get GVIM to read these syntax files ?

:version gives the following output
:version
VIM - Vi IMproved 5.7 (2000 Jun 24, compiled Mar 15
2001 16:09:17)
Compiled by [EMAIL PROTECTED], with (+) or without (-):
+autocmd +browse +builtin_terms +byte_offset +cindent
+cmdline_compl +cmdline_info
+comments +cryptv -cscope +dialog_con_gui +digraphs
-emacs_tags +eval +ex_extra
+extra_search -farsi +file_in_path -osfiletype
+find_in_path +fork() +GUI_Motif
-hangul_input +insert_expand -langmap +linebreak
+lispindent +menu +mksession
+modify_fname +mouse -mouse_dec -mouse_gpm
-mouse_netterm +mouse_xterm -multi_byte
-perl -python +quickfix -rightleft +scrollbind
+smartindent -sniff +statusline +syntax
+tag_binary +tag_old_static -tag_any_white -tcl
+terminfo +textobjects +title
+user_commands +visualextra +viminfo +wildignore
+wildmenu +writebackup +X11 -xfontset
-xim +xterm_clipboard -xterm_save
   system vimrc file: $VIM/vimrc
 user vimrc file: $HOME/.vimrc
  user exrc file: $HOME/.exrc
  system gvimrc file: $VIM/gvimrc
user gvimrc file: $HOME/.gvimrc
system menu file: $VIMRUNTIME/menu.vim
  fall-back for $VIM:
/xxx/xxx/x/pub/vim/vim-5.7/share/vim
Compilation:
cc -c -I. -Iproto -DHAVE_CONFIG_H  -DUSE_GUI_MOTIF 
-I/usr/dt/include  -g
Linking: cc  -o vim -L/lib   -lXext -lXm -lXt  -lXt
-lX11  -lcurses


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


Re: Calendar ?

2006-11-24 Thread striker
I use version 1.4a.  The Calendar.vim file is indeed in the plugin  
directory.  Here are a few usage lines from my Calendar.vim file:


 Usage:
 :Calendar
   show calendar at this year and this month
 :Calendar 8
   show calendar at this year and given month
 :Calendar 2001 8
   show calendar at given year and given month
 :CalendarH ...
   show horizontal calendar ...

 Leaderca
   show calendar in normal mode
 Leaderch
   show horizontal calendar ...
Kevin


On Nov 22, 2006, at 9:46 PM, Meino Christian Cramer wrote:


From: Tom Purl [EMAIL PROTECTED]
Subject: Re: Calendar ?
Date: Wed, 22 Nov 2006 12:15:04 -0600 (CST)

I found the plugin in $HOME/.vim/plugin/.

What version do you use? The header of my calendar.vim consists mainly
of a long history, instructions on how to set some calendar specific
variables in .vimrc and some other stuff for .vimrc.

no usage instructions, no keybindings.

Mine is the version of the 17.Jan 2006 and is named 1.4.

mcc



Check out the source, which should be in one of your plugin  
directories.  For
me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP  
computer. The
header of the file has a ton of commments, including usage  
statements nad

Additional notes.

HTH!

Tom Purl


Hi,

 where can I find instructions on how to use Calendar.vim and its
 keybindings ? I visited vim.org's script pages about  
Calendar.vim but

 didn't found, what I was searching for. Google also gave me
 nothing...

 But may be all this is my fault ?!

 Regards,
 mcc








Re: Calendar ?

2006-11-24 Thread Brian McKee

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

{Top posted 'cause the whole thread was - lotsa snippage}

It's actually mapped to \cal and \caL later in the plugin
The comment is out of date (if you read the change log)
Brian


I'm using version 1.4a.
Staring on line 37 in my version, there are usage statements.  If you
would rather not upgrade, then here's what it says:
 Leaderca
   show calendar in normal mode
 Leaderch
   show horizontal calendar ...


I found the plugin in $HOME/.vim/plugin/.
no usage instructions, no keybindings.

Check out the source, which should be in one of your plugin  
directories.  For
me, it's in $HOME/vimfiles/plugin/calendar.vim on my Win XP  
computer. The
header of the file has a ton of commments, including usage  
statements nad

Additional notes.


 where can I find instructions on how to use Calendar.vim and its
 keybindings ?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFZwvfGnOmb9xIQHQRAsiIAJsHgOTo5v3LwUhKfC1NHElTLpZ+yQCgtJqk
/Lpgzdgtlg8i5TMnwHOR8WQ=
=6qdq
-END PGP SIGNATURE-


Rephrased: debugging errorformat strings.

2006-11-24 Thread Hugh Sasse
I'm resubmitting this, clarifying a few points and fixing a typo in
the process, because I've seen no responses.  Sorry if this
is premature: I know it could be due to people being busy.
Hopefully the parts I've rephrased will be clearer than my 
earlier post.

I have been trying to improve the quickfix facilities 
obtainable from gcc.   The file I have in vim7 is quoted
here for completeness, in case I should be using a later
version:

quote
 Vim compiler file
 Compiler: GNU C Compiler
 Maintainer:   Nikolai Weibull [EMAIL PROTECTED]
 Latest Revision:  2006-04-19

if exists(current_compiler)
  finish
endif
let current_compiler = gcc

let s:cpo_save = cpo
set cpo-=C

setlocal errorformat=
  \%*[^\]\%f\%*\\D%l:\ %m,
  \\%f\%*\\D%l:\ %m,
  \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ 
once,
  \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
  \%f:%l:\ %m,
  \\%f\\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
  \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',
  \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',
  \%DMaking\ %*\\a\ in\ %f

let cpo = s:cpo_save
unlet s:cpo_save
/quote

and I have modified it thusly:

--- /usr/local/share/vim/vim70/compiler/gcc.vim 2006-07-19 18:11:22.117752000 
+0100
+++ /home/hgs/.vim/compiler/gcc.vim 2006-11-22 18:33:39.269332000 +
@@ -16,6 +16,8 @@
   \\%f\%*\\D%l:\ %m,
   \%-G%f:%l:\ %trror:\ (Each\ undeclared\ identifier\ is\ reported\ only\ 
once,
   \%-G%f:%l:\ %trror:\ for\ each\ function\ it\ appears\ in.),
+  \%E%f:%l:\ multiple\ definitions\ of\ %m,
+  \%Z%*\\s:%f:%l:\ first\ defined\ here,
   \%f:%l:\ %m,
   \\%f\\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,
   \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',

This is being picked up correctly (I know because of introducing bugs
in it, which I have fixed).  But when I get results like:

/home/hgs/fsv/rawimage.c:97: multiple definition of `image_check_is_png'
image.o:/home/hgs/fsv/image.c:97: first defined here

vim tries to pickup a file called image.o:/home/hgs/fsv/image.c 
for the second line (:cn) which clearly doesn't exist.

I have tried the following forms of this line in order to modify
what is detected before the %f (which seems to be greedy to its
left[!]):

  \%Z%*\\s:%f:%l:\ first\ defined\ here,
  \%Z%.%#:%f:%l:\ first\ defined\ here,
  \%Z%*[^:]:%f:%l:\ first\ defined\ here,
  \%Z%m:%f:%l:\ first\ defined\ here,
  \%Z%*f:%f:%l:\ first\ defined\ here,

The latter of which complains about 2 %f symbols in the line, despite the
first having a * in it.

%*{conv}any scanf non-assignable conversion

would seem to suggest I could do that.  I suspect now that this
only applies to the \\ based conversions, having looked at the 
C source, which I don't fully understand.

Also I can find no examples in the supplied help or supplied compiler files,
or on the web, how to use 
quote
%s  search text (finds a string)
  [...]
The %s conversion specifies the text to search for to locate the error line.
The text is used as a literal string.  The anchors ^ and $ are added to
the text to locate the error line exactly matching the search text and the
text is prefixed with the \V atom to make it very nomagic.  The %s
conversion can be used to locate lines without a line number in the error
output.  Like the output of the grep shell command.
When the pattern is present the line number will not be used.
/quote

Does the string come after the %s?  Does Vim, or the author of the
errorformat add the ^ and $, and if the latter, are they compulsory
delimiters of the string?  The C source suggests to me that this 
isn't fully implemented yet, and it may just mean one character for 
now, but I don't fully understand the intentions behind that code
from reading it.

Is there any way to get vim to log what happens when errrorformats are 
matched, so one can debug this stuff more easily?

How should I be tackling the access of just the source file I want?

I'd like to understand this better, because I can then contribute
my amended compiler file, and possibly other later.

Thank you
Hugh


Re: formatexpr examples

2006-11-24 Thread Yukihiro Nakadaira

I wrote a plugin that uses formatexpr.  But this is a bit complicated.

http://yukihiro.nakadaira.googlepages.com/autofmt.zip

--
Yukihiro Nakadaira - [EMAIL PROTECTED]


Search and delete

2006-11-24 Thread Krzysztof MaJ

VitaM,
how to search in the file based on some regex and when it's matched  
delete the whole line automatically?


--
Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)





Re: Search and delete

2006-11-24 Thread A.J.Mechelynck

Krzysztof MaJ wrote:

VitaM,
how to search in the file based on some regex and when it's matched 
delete the whole line automatically?


--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)


:1,$g/pattern/d

see
:help :g
:help :d


Best regards,
Tony.


Re: ViM7 spellchecking

2006-11-24 Thread Krzysztof MaJ


On 2006-11-24, at 13:18, Krzysztof Maj wrote:


Hugh Sasse [EMAIL PROTECTED] napisał(a):

On Fri, 24 Nov 2006, Krzysztof Maj wrote:


Hello everybody,
I've found that VIM7 has a feature called spellchecking. Great,
because it
could be very usefull. But my question is how does it works on  
Mac OSX,

 how


Do you have reason to believe it works differently on Mac OSX  
compared

to other platforms?  Or are you just telling us your platform?


Well, my platform at home is currently Mac OSX and I've found that  
some

things work diffrent, that's why I asked. I didn't know before, that
spellcheking engine has been built in VIM. So I started to worry  
about it

since Mac OSX doesn't have ispell or aspell by default.



to configure it on this platform and choose the language which I  
wanna




:he spell
:he spelllang


OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which I  
wanna

use...

I've checked above and seems that VIM7 does not have iso-8859-2 and
cp1250 files included in MacOSX dmg file and also in Windows distro.
I had to download it from the internet and put it manually to spell
directory at both Mac and Windows platforms.
When I did :set spelllang=pl and then :set spell VIM said no file.

So maybe I missed something or Polish support for spelling is not
included in the VIM7 package.



should be sufficient to answer this.

prefer? Additionally, is it any chance to ommit special characters
during
the spellcheck in LaTeX files for instance?

:he spell-syntax
essentially, yes.


Thanks for pointer, I'll read it for sure.


Krzysztof Maj


--
Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)





Re: Search and delete

2006-11-24 Thread A.J.Mechelynck

A.J.Mechelynck wrote:

Krzysztof MaJ wrote:

VitaM,
how to search in the file based on some regex and when it's matched 
delete the whole line automatically?


--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)


:1,$g/pattern/d

see
:help :g
:help :d


Best regards,
Tony.



I get User doesn't want mail from you from Krzysztof (or his ISP). 
Apparently I am on some blacklist.



Best regards,
Tony.


Re: ViM7 spellchecking

2006-11-24 Thread A.J.Mechelynck

Krzysztof MaJ wrote:


On 2006-11-24, at 13:18, Krzysztof Maj wrote:


Hugh Sasse [EMAIL PROTECTED] napisał(a):

On Fri, 24 Nov 2006, Krzysztof Maj wrote:


Hello everybody,
I've found that VIM7 has a feature called spellchecking. Great,
because it
could be very usefull. But my question is how does it works on Mac OSX,
 how


Do you have reason to believe it works differently on Mac OSX compared
to other platforms?  Or are you just telling us your platform?


Well, my platform at home is currently Mac OSX and I've found that some
things work diffrent, that's why I asked. I didn't know before, that
spellcheking engine has been built in VIM. So I started to worry about it
since Mac OSX doesn't have ispell or aspell by default.




to configure it on this platform and choose the language which I wanna



:he spell
:he spelllang


OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which I wanna
use...

I've checked above and seems that VIM7 does not have iso-8859-2 and
cp1250 files included in MacOSX dmg file and also in Windows distro.
I had to download it from the internet and put it manually to spell
directory at both Mac and Windows platforms.
When I did :set spelllang=pl and then :set spell VIM said no file.

So maybe I missed something or Polish support for spelling is not
included in the VIM7 package.



should be sufficient to answer this.

prefer? Additionally, is it any chance to ommit special characters
during
the spellcheck in LaTeX files for instance?

:he spell-syntax
essentially, yes.


Thanks for pointer, I'll read it for sure.


Krzysztof Maj


--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)







I see

pl.cp1250.spl
pl.iso-8859-2.spl
pl.utf-8.spl

in the directory $VIMRUNTIME/spell

These files are (IIUC) cross-platform. Maybe you don't have spelling (or at 
least spelling dictionaries) installed? Did you get Vim from official sources 
or from a third party? If official, did you include the lang (language) sources?



Best regards,
Tony.


Re: ViM7 spellchecking

2006-11-24 Thread Hugh Sasse
On Fri, 24 Nov 2006, Krzysztof MaJ wrote:

 
 On 2006-11-24, at 13:18, Krzysztof Maj wrote:
 
  Hugh Sasse [EMAIL PROTECTED] napisa??(a):
to configure it on this platform and choose the language which I wanna

   
   :he spell
   :he spelllang
  
  OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which I wanna
  use...
 I've checked above and seems that VIM7 does not have iso-8859-2 and
 cp1250 files included in MacOSX dmg file and also in Windows distro.
 I had to download it from the internet and put it manually to spell
 directory at both Mac and Windows platforms.
 When I did :set spelllang=pl and then :set spell VIM said no file.
 
 So maybe I missed something or Polish support for spelling is not
 included in the VIM7 package.

try 
:he spell-load

I see that Polish is specifically mentioned.
What about my distro?  I know zero Polish so didn't do anything special
for that:

ls: No match.

OK...  what else is there?

cleanadd.vim
en.ascii.spl
en.ascii.sug
en.latin1.spl
en.latin1.sug
en.utf-8.spl
en.utf-8.sug
he.vim
yi.vim

So I'd need to download it, and 
:he spellfile.vim 
talks about that.  

HTH
Hugh

Re: ViM7 spellchecking

2006-11-24 Thread Krzysztof MaJ


On 2006-11-24, at 20:22, A.J.Mechelynck wrote:


Krzysztof MaJ wrote:

On 2006-11-24, at 13:18, Krzysztof Maj wrote:

Hugh Sasse [EMAIL PROTECTED] napisał(a):

On Fri, 24 Nov 2006, Krzysztof Maj wrote:


Hello everybody,
I've found that VIM7 has a feature called spellchecking. Great,
because it
could be very usefull. But my question is how does it works on  
Mac OSX,

 how


Do you have reason to believe it works differently on Mac OSX  
compared

to other platforms?  Or are you just telling us your platform?


Well, my platform at home is currently Mac OSX and I've found  
that some

things work diffrent, that's why I asked. I didn't know before, that
spellcheking engine has been built in VIM. So I started to worry  
about it

since Mac OSX doesn't have ispell or aspell by default.



to configure it on this platform and choose the language which  
I wanna




:he spell
:he spelllang


OK, we'll see if VIM has iso-8859-2 or cp1250 or Mac syntax which  
I wanna

use...

I've checked above and seems that VIM7 does not have iso-8859-2 and
cp1250 files included in MacOSX dmg file and also in Windows distro.
I had to download it from the internet and put it manually to spell
directory at both Mac and Windows platforms.
When I did :set spelllang=pl and then :set spell VIM said no file.
So maybe I missed something or Polish support for spelling is not
included in the VIM7 package.


should be sufficient to answer this.

prefer? Additionally, is it any chance to ommit special characters
during
the spellcheck in LaTeX files for instance?

:he spell-syntax
essentially, yes.


Thanks for pointer, I'll read it for sure.


Krzysztof Maj

--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)


I see

pl.cp1250.spl
pl.iso-8859-2.spl
pl.utf-8.spl

in the directory $VIMRUNTIME/spell

These files are (IIUC) cross-platform. Maybe you don't have  
spelling (or at least spelling dictionaries) installed? Did you get  
Vim from official sources or from a third party? If official, did  
you include the lang (language) sources?



Best regards,
Tony.


Well I've get VIM from the vim.org site for windows and from  
macvim.org for Mac platform. But I downloaded only a VIM package  
without any additional sources - lang sources as you said. On Mac  
this is a DMG package, so when I open a content of the package I  
didn't find this file. In the spell directory I have a subdirectory  
pl, but it contained only two files: main.aap and pl_PL.diff :-(


--
Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)





Re: ViM7 spellchecking

2006-11-24 Thread A.J.Mechelynck

Krzysztof MaJ wrote:
[...]
Well I've get VIM from the vim.org site for windows and from macvim.org 
for Mac platform. But I downloaded only a VIM package without any 
additional sources - lang sources as you said. On Mac this is a DMG 
package, so when I open a content of the package I didn't find this 
file. In the spell directory I have a subdirectory pl, but it contained 
only two files: main.aap and pl_PL.diff :-(


--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)


IIUC that would be the unpatched 7.0.000 (at least for Windows; not sure about 
the Mac).


For Windows, an updated version with executable and all runtime files 
(currently 7.0.161 dated Nov.7) can be obtained from 
https://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721


For the Mac, I don't know where to get an updated executable (unless you want 
to compile it yourself); but you can get updated runtime files by downloading 
ftp://ftp.vim.org/pub/vim/runtime/ including all sub- and sub-sub-directories 
except the dos/ subdirectory.


The spell files are in $VIMRUNTIME/spell itself, not in a further subdirectory.


Best regards,
Tony.


Re: ViM7 spellchecking

2006-11-24 Thread Krzysztof MaJ


On 2006-11-24, at 21:05, A.J.Mechelynck wrote:


Krzysztof MaJ wrote:
[...]
Well I've get VIM from the vim.org site for windows and from  
macvim.org for Mac platform. But I downloaded only a VIM package  
without any additional sources - lang sources as you said. On Mac  
this is a DMG package, so when I open a content of the package I  
didn't find this file. In the spell directory I have a  
subdirectory pl, but it contained only two files: main.aap and  
pl_PL.diff :-(

--Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)


IIUC that would be the unpatched 7.0.000 (at least for Windows; not  
sure about the Mac).


For Windows, an updated version with executable and all runtime  
files (currently 7.0.161 dated Nov.7) can be obtained from https:// 
sourceforge.net/project/showfiles.php?group_id=43866package_id=39721


For the Mac, I don't know where to get an updated executable  
(unless you want to compile it yourself); but you can get updated  
runtime files by downloading ftp://ftp.vim.org/pub/vim/runtime/  
including all sub- and sub-sub-directories except the dos/  
subdirectory.


The spell files are in $VIMRUNTIME/spell itself, not in a further  
subdirectory.



Best regards,
Tony.


Thanks a lot Tony, it's good to know that not only for me, but maybe  
for the rest people experienced with the same problem.
My solution was to manually download the missing files and copy them  
to the contents of VIM package, works great so far.

Generally, VIM RULEZ!!!

--
Pozdrawiam - Krzysztof Maj
 I'm a Mac now, are you PC?
Oh, dear... ;-)





Re: Calendar ?

2006-11-24 Thread Bill McCarthy
On Fri 24-Nov-06 9:12am -0600, Brian McKee wrote:

 I'm using version 1.4a.
 Staring on line 37 in my version, there are usage statements.  If you
 would rather not upgrade, then here's what it says:
  Leaderca
show calendar in normal mode
  Leaderch
show horizontal calendar ...

 It's actually mapped to \cal and \caL later in the plugin
 The comment is out of date (if you read the change log)

From calendar.vim (which is in my AsNeeded directory):

if !hasmapto(PlugCalendarV)
  nmap unique Leadercal PlugCalendarV
endif
if !hasmapto(PlugCalendarH)
  nmap unique LeadercaL PlugCalendarH
endif
nmap silent PlugCalendarV :cal Calendar(0)CR
nmap silent PlugCalendarH :cal Calendar(1)CR

Looking at my vimrc file, I have:

nmap silent leadercv :CalendarCR
nmap silent leaderch :CalendarHCR

Although this works fine, type :nmap \c shows maps for

\cv  \ch  \cal  \caL

where \cal behaves like \cv and \caL behaves like \ch.

I thought I could stop this duplication by changing my vimrc
maps to:

nmap unique Leadercv PlugCalendarV
nmap unique Leaderch PlugCalendarH

just like in calendar.vim.  While this eliminates the
duplicate mappings, neither \cv or \ch does anything :-(

Without modifying calendar.vim, does anyone know how to
eliminate the mappings of \cal and \caL from being made?
[Yes, I know I can unmap them.]

-- 
Best regards,
Bill



C++ refactoring tool

2006-11-24 Thread Peng Yu

Hi,

I'm using vim developing C++ programs exclusively. I'm wondering if
there is good refactoring tool available in vim.

Thanks,
Peng