Re: Different syntax behavior in vim 7.4

2017-04-05 Thread Chandrasekaran Venkatraman
Yes, I could get the expected syntax display with vim 8.0 . Thanks. On Wed, Apr 5, 2017 at 3:43 PM, Dominique Pellé wrote: > Chandra wrote: > > > Hello, > > I see a syntax behavior change between vim 7.4 and earlier > > version. (We are

Re: RFE: enable gvim to open a buffer or tab in a new window

2017-04-05 Thread L. A. Walsh
Paul wrote: On Tuesday, 28 March, 2017 at 13:08:03 BST, L A Walsh wrote: Just the other day, I had two files open in tabs (.cc and .h: a C++ source & header). Instead of window switching, I wanted to change my visual layout for 1 pair of files to see them side-by-side (and when I was done,

Re: Different syntax behavior in vim 7.4

2017-04-05 Thread Dominique Pellé
Chandra wrote: > Hello, > I see a syntax behavior change between vim 7.4 and earlier > version. (We are yet to update VIM version to 8.0+ in our company.) > > I use different syntax for lines that begin with "//" (Comments) and > lines that begin with "//:" (embedded

Different syntax behavior in vim 7.4

2017-04-05 Thread Chandra
Hello, I see a syntax behavior change between vim 7.4 and earlier version. (We are yet to update VIM version to 8.0+ in our company.) I use different syntax for lines that begin with "//" (Comments) and lines that begin with "//:" (embedded Perl Code). I was able to achieve this with

Re: execute sub command without moving cursor

2017-04-05 Thread Nikolay Aleksandrovich Pavlov
2017-04-05 22:21 GMT+03:00 Ni Va : > Hi, > > > I use this kind of command but it moves my cursor pos. > > > silent! exe '?^BEGIN?,/^END/s/^NETWORK.*$/\="NETWORK".s:inc()." \/\/In > ".s[0]." : ".s[1]/e' > > > Can I avoid to move cursor when I replace executing sub command ? >

single shot mapping insert mode backwards line move

2017-04-05 Thread Sylvain Viart
Hi, I'm trying to build a function for solving some completion hacking. I mean, I would like to quickly move my cursor in insertmod backward in the current line and cycle though the positions. My idea is to define 2 key bindings: imap which will detect some char in the current line [=/] imap

execute sub command without moving cursor

2017-04-05 Thread Ni Va
Hi, I use this kind of command but it moves my cursor pos. silent! exe '?^BEGIN?,/^END/s/^NETWORK.*$/\="NETWORK".s:inc()." \/\/In ".s[0]." : ".s[1]/e' Can I avoid to move cursor when I replace executing sub command ? Thanks niva -- -- You received this message from the "vim_use"

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
After a few tries I found something that looks a little bit strange to me: the Insert mode meta keymapping actually works, *only if* you set at least one mapping with the leading . Previously I tried my best to avoid mapping the leading keys, although it works, because it would introduce

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
> > What does ":verbose set timeoutlen" answer? > > I recommend someting like the following settings: > > if exists('+timeout') > " should a timeout be applied to keys and mappings? > " 'timeout' true=yes false=no > " 'ttimeout' (not used if 'timeout' is true) time out on key codes > "

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Tony Mechelynck
On Wed, Apr 5, 2017 at 3:48 PM, Jacky Liu wrote: > My Vim version is 8.0.540 if it helps What does ":verbose set timeoutlen" answer? I recommend someting like the following settings: if exists('+timeout') " should a timeout be applied to keys and mappings? " 'timeout'

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
My Vim version is 8.0.540 if it helps -- -- 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

Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
I am switching back to console Vim because it solved the No.1 problem of Gvim: it doesn't allow another thread to start a X based graphical UI, as it will clash with the one of its own. Also it now supports true color and is much faster in responding user ops. Unfortunately I bumped into the

Re: Trouble building Huge Vim8 on CentOS 7

2017-04-05 Thread Tony Mechelynck
On Wed, Apr 5, 2017 at 4:18 AM, Mun wrote: > Hi, > > On Tue, Mar 21, 2017 at 07:13 PM PDT, L A Walsh wrote: > LAW> Mun wrote: > LAW> >I tried to find a yum package that provides SMlib.h, but my system said: > LAW> >"No matches found". Sigh. > LAW> > LAW>I found I had