Mark Lodato | 1 Mar 22:24 2015
Picon

Bug: cindent does not work with C++11 raw string literals

Recent version of Vim support syntax highlighting for C++11 raw string
literals works great, but indentation still does not work.  Instead,
cindent tries to indent the string like it's code.

For example, try to type the following (tested on 7.4.589):

const char* s = R"(
  test {
    # comment
    field: 123
  }
)";

As you type, vim will annoyingly move `# comment` and `field:` to the
first column because it thinks they are a preprocessor macro and a
label, respectively.

Any chance this could be fixed?

Thanks!
Mark

-- 
--

-- 
You received this message from the "vim_dev" 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_dev" group.
(Continue reading)

xaizek | 28 Feb 22:06 2015

--remote-tab + 'noautocd' = cwd clobbering

Hello,

On running gvim like this

    gvim --remote-tab-silent /some/path

Vim sends the following commands to server instance (this is just a
piece of bigger set of commands):

    cd /current/path
    tab drop /some/path
    if !exists('+acd') || !&acd
        cd -
    endif

`tab drop /some/path` triggers auto-commands, where one might want to
change directory for a new buffer.  *But* if 'autochdir' is not available
or disabled, `cd -` will overwrite that directory change.

I thought about adding a check to execute `cd -` only if we're still in
"/current/path" to implicitly detect directory changes made from
autocommands, like this

    if (!exists('+acd') || !&acd) && getcwd() ==# "/current/path"
        cd -
    endif

I made a sample patch, which seems to work, but there is probably a
better way to handle escaping and I didn't bother looking it up yet as I'm
not sure it's the best way to handle this issue.
(Continue reading)

mattn | 28 Feb 18:18 2015
Picon

About syntax/java.vim

Hi, Bram and all.

I sent e-mail to the author of syntax/java.vim to support of java 8 syntaxes in few month ago.
But I don't get any replies yet. So we (vim-jp) want to be maintainer of syntax/java.vim.
If you are okay, I'll send a patch to support lambda syntax of java 8 at the first.

https://github.com/vim-jp/vim-java/pull/1

Thanks.

- mattn

-- 
--

-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mattn | 28 Feb 18:03 2015
Picon

Updated syntax/c.vim, syntax/cpp.vim

Hi Bram.

We (vim-jp) updated syntax/c.vim, syntax/cpp.vim. Below is a patch to apply changes into upstream.

https://gist.githubusercontent.com/mattn/8e876fa307096f9a7f9b/raw/bed952ad3dc55d054b92ddef2c344bf48a396226/gistfile1.diff

Regards.

BTW, you are updating syntax/cpp.vim without any notifications to us. But we improving it also. And we
merge pull-requests on github. So we solve conflict always. Could you please send me e-mail if you want to
change syntax/cpp.vim, please.

- mattn

-- 
--

-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mattn | 28 Feb 04:28 2015
Picon

cpp-vim renamed as vim-cpp

Hi, list

We (vim-jp) renamed repository of cpp syntax to vim-cpp from cpp-vim 

https://github.com/vim-jp/vim-cpp

best regards.

- mattn

-- 
--

-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ozaki Kiichi | 28 Feb 01:00 2015
Picon

[PATCH] Fix configuration about python/dyn and python3/dyn (on Ubuntu)

Hi.

[Issue]

On Ubuntu, vim isn't able to execute both ':py' and ':py3' at one process.

[Cause]

Configuration process fails checking unnecessity of RTLD_GLOBAL for python.
 ('./configure' with '--pythoninterp=dynamic' and '--python3interp=dynamic')

It prepends '-ldl' to LDFLAGS variable, but Ubuntu's ld linker has '--as-needed' as default option,
so eventually libdl isn't linked due to order of given linker options,
thus fails to resolve dl* symbol (e.g. dlopen).

[Environment]

* Ubuntu
* Vim with +python/dyn and +python3/dyn
* Python2/3 with shared libraries (libpython*.so) installed;
 System default python packages are not applicable since their modules are not compatible with dynamic loading.
 Need our own-built python.

[Solution]

I propose prepending '-ldl' to LIBS variable.
It seems appropriate semantically, too.

https://gist.githubusercontent.com/ichizok/b0be31eaf20864326c3b/raw/781ff4b02d661ac4e74e992a07af4a0fdf315a05/configure.in.patch

(Continue reading)

Bram Moolenaar | 27 Feb 22:12 2015
Picon
Picon

Patch 7.4.648


Patch 7.4.648 (after 7.4.647)
Problem:    Tests broken on MS-Windows.
Solution:   Delete wrong copy line. (Ken Takata)
Files:	    src/testdir/Make_dos.mak

*** ../vim-7.4.647/src/testdir/Make_dos.mak	2015-02-27 21:10:58.183136895 +0100
--- src/testdir/Make_dos.mak	2015-02-27 22:10:38.706116994 +0100
***************
*** 84,90 ****
  $(TEST_OUTFILES): $(DOSTMP)\$(*B).in
  	- <at> if exist test.out DEL test.out
  	move $(*B).in $(*B).in.bak
- 	copy $*.in $(*B).in
  	copy $(DOSTMP)\$(*B).in $(*B).in
  	copy $(*B).ok test.ok
  	$(VIMPROG) -u dos.vim -U NONE --noplugin -s dotest.in $(*B).in
--- 84,89 ----
*** ../vim-7.4.647/src/version.c	2015-02-27 21:10:58.187136835 +0100
--- src/version.c	2015-02-27 22:11:24.169591815 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     648,
  /**/

--

-- 
Facepalm statement #2: "If there is a country without immigrants I'm going to
(Continue reading)

Bram Moolenaar | 27 Feb 21:11 2015
Picon
Picon

Patch 7.4.647


[Note: this may break the tests on MS-Windows, please send me a fix if
you can]

Patch 7.4.647
Problem:    After running the tests on MS-Windows many files differ from their
	    originals as they were checked out.
Solution:   Use a temp directory for executing the tests. (Ken Takata, Taro
	    Muraoka)
Files:	    src/testdir/Make_dos.mak

*** ../vim-7.4.646/src/testdir/Make_dos.mak	2015-02-17 13:43:35.562216149 +0100
--- src/testdir/Make_dos.mak	2015-02-27 21:09:13.380329915 +0100
***************
*** 56,87 ****

  SCRIPTS32 =	test50.out test70.out

! SCRIPTS_GUI = test16.out

  .SUFFIXES: .in .out

! nongui:	fixff $(SCRIPTS16) $(SCRIPTS) report

! small:	report

! gui:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS_GUI) report

! win32:	fixff $(SCRIPTS16) $(SCRIPTS) $(SCRIPTS32) report

(Continue reading)

Bram Moolenaar | 27 Feb 20:33 2015
Picon
Picon

Patch 7.4.646


Patch 7.4.646
Problem:    ":bufdo" may start at a deleted buffer.
Solution:   Find the first not deleted buffer. (Shane Harper)
Files:	    src/ex_cmds2.c, src/testdir/test_command_count.in,
	    src/testdir/test_command_count.ok

*** ../vim-7.4.645/src/ex_cmds2.c	2015-01-07 16:52:53.506792420 +0100
--- src/ex_cmds2.c	2015-02-27 20:30:04.087096679 +0100
***************
*** 2440,2446 ****
      win_T	*wp;
      tabpage_T	*tp;
  #endif
!     buf_T	*buf;
      int		next_fnum = 0;
  #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
      char_u	*save_ei = NULL;
--- 2440,2446 ----
      win_T	*wp;
      tabpage_T	*tp;
  #endif
!     buf_T	*buf = curbuf;
      int		next_fnum = 0;
  #if defined(FEAT_AUTOCMD) && defined(FEAT_SYN_HL)
      char_u	*save_ei = NULL;
***************
*** 2493,2512 ****
  	    case CMD_argdo:
  		i = eap->line1 - 1;
(Continue reading)

Bram Moolenaar | 27 Feb 19:35 2015
Picon
Picon

Patch 7.4.645


Patch 7.4.645
Problem:    When splitting the window in a BufAdd autocommand while still in
	    the first, empty buffer the window count is wrong.
Solution:   Do not reset b_nwindows to zero and don't increment it.
Files:	    src/buffer.c, src/ex_cmds.c

*** ../vim-7.4.644/src/buffer.c	2015-01-27 18:43:42.134535513 +0100
--- src/buffer.c	2015-02-27 19:33:51.325459521 +0100
***************
*** 1794,1800 ****
  	if (aborting())		/* autocmds may abort script processing */
  	    return NULL;
  #endif
- 	/* buf->b_nwindows = 0; why was this here? */
  	free_buffer_stuff(buf, FALSE);	/* delete local variables et al. */

  	/* Init the options. */
--- 1794,1799 ----
***************
*** 1872,1877 ****
--- 1871,1879 ----
  #ifdef FEAT_AUTOCMD
      if (!(flags & BLN_DUMMY))
      {
+ 	/* Tricky: these autocommands may change the buffer list.  They could
+ 	 * also split the window with re-using the one empty buffer. This may
+ 	 * result in unexpectedly losing the empty buffer. */
  	apply_autocmds(EVENT_BUFNEW, NULL, NULL, FALSE, buf);
  	if (!buf_valid(buf))
(Continue reading)

Bram Moolenaar | 27 Feb 18:25 2015
Picon
Picon

Patch 7.4.644


Patch 7.4.644
Problem:    Stratus VOS doesn't have sync().
Solution:   Use fflush(). (Karli Aurelia)
Files:	    src/memfile.c

*** ../vim-7.4.643/src/memfile.c	2014-04-02 14:05:33.999887839 +0200
--- src/memfile.c	2015-02-27 18:23:45.185146030 +0100
***************
*** 639,645 ****
  # endif
  	    /* OpenNT is strictly POSIX (Benzinger) */
  	    /* Tandem/Himalaya NSK-OSS doesn't have sync() */
! # if defined(__OPENNT) || defined(__TANDEM)
  	    fflush(NULL);
  # else
  	    sync();
--- 639,646 ----
  # endif
  	    /* OpenNT is strictly POSIX (Benzinger) */
  	    /* Tandem/Himalaya NSK-OSS doesn't have sync() */
! 	    /* No sync() on Stratus VOS */
! # if defined(__OPENNT) || defined(__TANDEM) || defined(__VOS__)
  	    fflush(NULL);
  # else
  	    sync();
*** ../vim-7.4.643/src/version.c	2015-02-27 17:48:05.553308462 +0100
--- src/version.c	2015-02-27 18:24:38.148547979 +0100
***************
*** 743,744 ****
(Continue reading)


Gmane