Two spaces after punctuation and SpellCap issues

2018-04-15 Thread Tim Chase
To reproduce:

  $ vim -u NONE
  :syntax on
  :set spell cpo+=J

to let vim know I always put two spaces after a sentence.  However,
if I enter text like

  Call Bob re. the faucet.

or

  Take Main St. the whole way down.

vim's syntax highlighting flags "the" in SpellCap as if it's
expecting the "." to mark the end of the sentence and require "the"
to be capitalized (as "z=" provides as its top suggestion).

My understanding is that the cpo+=J should require two spaces for it
to be considered a sentence, but it looks like it's ignoring this
flag when engaging the SpellCap group (which seems to think it's at
the end of a sentence).

Am I missing something or is this possibly a bug?

Thanks,

-tim



-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


help for Vim binding development (Freeplane) wanted

2018-04-15 Thread Nnako
Hi,

my name is Nnako and I am natively a C and Python programmer. I use Vim every 
day and have learned to just smile when yet another new graphical code 
development environment appears (e.g. VS Code and JupyterLab)...

For some years now, I have been structuring my work and private life using a 
tool called FREEPLANE [https://www.freeplane.org]. It is a very flexible 
mindmap editor. As I love both, Freeplane and Vim, I am looking for ways to 
combine these two exceptional technologies. At least a subset of Vim's 
functionalities could be used to facilitate NODE NAVIGATION and TEXT EDITING, 
and later maybe TEXT SEARCH, COMMANDS,...

There are already some bindings for Vim in applications out there, like for 
browsers (Chrome, Firefox, ... ), development environments (Eclipse, Netbeans, 
...) and web applications (Jupyter Notebook, Code Mirror, ). I was thinking 
to invest some time into the development of a Vim binding for Freeplane 
(developed in JAVA). But I don't know where to start.

Are there some people here, who have already developed Vim-Bindings for 
applications, using parts of the original vim source? Or people who know people 
who have already successfully done such a thing?

Thanks.
Nnako

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is ANSI C support still needed?

2018-04-15 Thread Shlomi Fish
Hi Bram and all,

On Sun, 15 Apr 2018 12:43:23 +0200
Bram Moolenaar  wrote:

> Hello Vimmers,
> 
> For a long time Vim code was made to be compiled with ANSI C (also known
> as C89 and ISO C90).  This means it can also be compiled on very old
> systems.  And since it wasn't too much work to support it, that was the
> choice.
> 
> Now that we are adding checks for C89 compliance, it turns out that we
> already are using some C99 features, such as the "long long" type.
> Also, many libraries produce warnings when enforcing C89.  That means
> using C89 is starting to become a hassle.  So, the question comes up: is
> it still worth it?
> 
> If you CANNOT build Vim with a C99 compiler, please speak up!
> If I don't hear about such cases, I think we are better off using C99 as
> the standard.
> 
> Note that if we go with C99, we still need to decide what features we
> will actually use, since C99 compliance was lacking for quite a while
> (esp. in MS-Visual C).  That's not going to make this easier.
> 

+1 for C99 from me, but I am using recent Linux systems mostly.

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Chuck Norris/etc. Facts - http://www.shlomifish.org/humour/bits/facts/

He who reinvents the wheel will likely design a square wheel and spend a year
trying to figure out why it doesn’t work properly.
— Nadav Har’El, http://www.shlomifish.org/humour.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is ANSI C support still needed?

2018-04-15 Thread Bram Moolenaar

Hello Vimmers,

For a long time Vim code was made to be compiled with ANSI C (also known
as C89 and ISO C90).  This means it can also be compiled on very old
systems.  And since it wasn't too much work to support it, that was the
choice.

Now that we are adding checks for C89 compliance, it turns out that we
already are using some C99 features, such as the "long long" type.
Also, many libraries produce warnings when enforcing C89.  That means
using C89 is starting to become a hassle.  So, the question comes up: is
it still worth it?

If you CANNOT build Vim with a C99 compiler, please speak up!
If I don't hear about such cases, I think we are better off using C99 as
the standard.

Note that if we go with C99, we still need to decide what features we
will actually use, since C99 compliance was lacking for quite a while
(esp. in MS-Visual C).  That's not going to make this easier.

-- 
hundred-and-one symptoms of being an internet addict:
179. You wonder why your household garbage can doesn't have an
 "empty recycle bin" button.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.