jobs : building making while using vim

2016-10-14 Thread Ni Va
Hi,

I am using jobs to execute some tasks while I am using Vim 8 to edit some files.

I also use historical make command from within Vim to build some code and would 
like to delegate it to a job. Is it possible to redefined it ?

My Last :make command says that :
!mingw32-make  >C:\Users\MARSUP~1\AppData\Local\Temp\VIeCE80.tmp 2>&1

-- 
-- 
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: Weird behaviour with the 'gN' command

2016-10-14 Thread Osman Koçak
Hi,

any update regarding this issue ?

++
Osman

2016-10-09 23:25 GMT+02:00 Osman Koçak :

> Hmmm, I see...
> However, I think it should be possible to fix it since the forward search
> ('/') don't mess up in such cases.
> I also have a "workaround" (in Vimscript) that **seems** to work (I wrote
> and tested it quite quickly, so I'm not sure):
> function! Select_match() abort
>   if  == 'exclusive' && stridx(, 'onemore') == -1
> return ''
>   endif
>   let [l1, c1] = getpos('''<')[1:2]
>   let [l2, c2] = getpos('''>')[1:2]
>   let pos = getpos('.')
>   let l = pos[1] + (l2 - l1)
>   let c = pos[2] + (c2 - c1)
>   if l1 != l2
> let c += strwidth(getline(l1)) - strwidth(getline(pos[1]))
>   endif
>   execute 'normal ' . l . 'G' . c . '|v' . pos[1] . 'G' . pos[2] . '|'
> endfunction
> This function should behave as the 'gN' command...
>
> ++
> Osman
>
> 2016-10-09 18:01 GMT+02:00 Christian Brabandt :
>
>> On So, 09 Okt 2016, Osman Koçak wrote:
>>
>> > OK, can you please let me know when the patch eventually gets into Vim.
>> > Thanks again!
>>
>> Hm, that is a tricky one and I am not sure how to solve that one.
>>
>> If you take this text (here with line numbers:)
>> 1 test test test test
>> 2 test test test test
>> 3 test test test test
>> 4 test
>> 5 test test test
>>
>> The basic logic for the gN motion is, (1st) move to the next match and
>> from there (2nd) move to the end of the previous match, then (3rd) mark
>> everything until the beginning of the now current match.
>>
>> However the search pattern "test\ntest" adds some uncertainty, where the
>> next and previous match starts. Consider your cursor on the first
>> character of the word test in line 3. The motion gN will first move it
>> to the next match, which is at the beginning of the next line (line 4),
>> however, at the same time, it is still part of the current match.
>> Therefore, jumping back to the previous match will move the cursor to
>> line 2 end of the first word test.
>>
>> To fix that, we would need to make sure, that at step one, we have to
>> move over everything which is part of the current match and I really
>> don't know if this is possible.
>>
>> I am uncertain whether this is a bug or should be documented, that gN
>> might not work well for overlapping multiline patterns.
>>
>> Best,
>> Christian
>>
>> --
>> --
>> 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.
>>
>
>

-- 
-- 
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: Trying to download spellchecking file and getting error "Sorry, download failed"

2016-10-14 Thread Igor Forca
Typo...
instead of: C:\Users\[user]\spell\sl.cp1250.spl
should be:  C:\Users\[user]\vimfiles\spell\sl.cp1250.spl

-- 
-- 
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: Trying to download spellchecking file and getting error "Sorry, download failed"

2016-10-14 Thread Igor Forca
I have solved the problem.

Vim spellcheckers are saved at:
http://ftp.vim.org/vim/runtime/spell/

For my need Windows-1250 code page I needed to download:
http://ftp.vim.org/vim/runtime/spell/sl.cp1250.spl

Then there are two options:
a) system wide for all users
b) per particular user

Ad a) Find out where is system directory in Vim by entering command:
:echo $VIMRUNTIME
It displays like: C:\Programs\Vim\vim80 (this is vim install directory).
Copy sl.cp1250.spl into "spell" sub-directory, so final path should be:
C:\Programs\Vim\vim80\spell\sl.cp1250.spl

Ad b) Find out where is vim profile in Vim by entering command:
:echo $USERPROFILE
It displays: C:\Users\[user]
Copy sl.cp1250.spl into "spell" sub-directory, so final path should be:
C:\Users\[user]\spell\sl.cp1250.spl

I restarted Vim to make sure it recognized new settings.

To turn on Slovenian spellcheck in Vim for current buffer by entering command:
:setlocal spell spelllang=si

To change spell to English:
:setlocal spell spelllang=en

To turn off spell:
:setlocal nospell

Note: I have also created keyboard shortcuts for above.



-- 
-- 
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: How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?

2016-10-14 Thread A. S. Budden
On 14 October 2016 at 13:43, Igor Forca  wrote:
> Hi,
> I have a text file with a lot of Vim substitution and global commands like:
> :%s/\(one\) \(two\)/\1\r\2/gie
> :g/(something\c/normal v%2>
> and several more commands in file named myfile.vim.
>
> Then in the current buffer when I need to execute this kind of find/replace 
> substitution I just execute:
> :source myfile.vim
> and changes are performed without a problem.
>
> What I don't like is that Vim in status bar displays:
> 3 substitutions on 330 lines
> 4 lines >ed 2 times
> 
> Press ENTER or type command to continue
>
> How to source vim file without this annoying information in status bar and 
> without need to press and Enter?

Prefix the commands with silent:

:silent %s/\(one\) \(two\)/\1\r\2/gie

:help :silent

You can probably also do ":silent source myfile.vim" rather than
changing each line.

Hope that helps,

Al

-- 
-- 
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.


How to omit the "3 substitions on 330 lines" from being displayed in Vim status bar after substition or global command is executed?

2016-10-14 Thread Igor Forca
Hi,
I have a text file with a lot of Vim substitution and global commands like:
:%s/\(one\) \(two\)/\1\r\2/gie
:g/(something\c/normal v%2>
and several more commands in file named myfile.vim.

Then in the current buffer when I need to execute this kind of find/replace 
substitution I just execute:
:source myfile.vim
and changes are performed without a problem.

What I don't like is that Vim in status bar displays:
3 substitutions on 330 lines
4 lines >ed 2 times

Press ENTER or type command to continue

How to source vim file without this annoying information in status bar and 
without need to press and Enter?
Regards,
Igor

-- 
-- 
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: Repeated symbols with Cscope

2016-10-14 Thread Erik Falor
On Fri, Oct 14, 2016 at 07:56:53AM -0700, Hugo Gagnon wrote:
> Hi Erik,
> 
> Thank you for your reply.
> 
> My problem is now seemingly gone. Even more strange is that I can't reproduce 
> it; all I did was to reboot my machine and build another Cscope database.

Those are the very best sort of problems!

> The command that I use is:
> 
> cscope -b -q -v -i cscope.files
> 
> I use Vim 7.4.52 with Cscope 15.8a.
> 
> I am sorry but I cannot share my source code. If I can reproduce the problem 
> I will try to create a minimal example and share it with you.

Here's hoping that it doesn't come to that ;)

-- 
Erik Falor
Registered Linux User #445632http://unnovative.net

-- 
-- 
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.


signature.asc
Description: PGP signature


Re: Repeated symbols with Cscope

2016-10-14 Thread Hugo Gagnon
On Friday, October 14, 2016 at 4:57:20 PM UTC+2, Christian Brabandt wrote:
> On Do, 13 Okt 2016, Hugo Gagnon wrote:
> 
> > Hello,
> > 
> > For some reason when I do a symbol search with Cscope in Vim I get repeated 
> > symbols, e.g.:
> > 
> > :cs find s setID
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > 
> > I noticed that the symbols always gets repeated exactly 4 times.
> > 
> > I have the following Cscope related settings in my .vimrc:
> > 
> > if has("cscope") && filereadable("cscope.out")
> >   cscope kill -1
> >   set nocscopeverbose
> >   cscope add cscope.out
> >   set cscopeverbose
> > endif
> > 
> > Anybody has any idea what is going on?
> 
> Does it happen, if you use cscope interactively?
> 
> 
> Best,
> Christian
> -- 
> Das Leben beginnt in einer Zelle
> und bei Strolchen endet's auch in einer solchen.
>   -- Heinz Erhardt

Christian,

No it doesn't, at least not until it started working again. Unfortunately I 
forgot to test that before rebooting my machine...

Hugo

-- 
-- 
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: Different colors on -t vs :ta

2016-10-14 Thread Saurabh T
> 
> Saurabh wrote:
> 
> > If there are multiple matches to a tag, vim shows a menu where "# pri
> > kind tag file" are printed. 
> > 
> > If I do vim -t tag, the colors of the above menu title and the tag are
> > magenta/purple while the filename is in dark blue. Since my background
> > is a dark blue, this looks terrible/invisible.
> > 
> > On doing a :ta tag in vim, the colors are fine. It's a very light
> > magenta/pink for the menu title and tag, and light cyan for the
> > filename. This looks proper on my dark blue background.
> > 
> > I have syntax on, colo default and bg=dark in my vimrc. My tags file
> > is set in vimrc also, so I know -t is reading the vimrc before it
> > processes the tag, but somehow the syntax highlighting colors are
> > wrong. Any ideas? Thank you. 
> 
> This most likely happens because the terminal isn't fully initialized
> yet.  Specifically, may_req_termresponse() is called later, which
> figures out details about the terminal.
> 
> You can try setting t_Co in your vimrc, e.g.:
> 
>   :set t_Co=256
> 
>  /// 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///
> 

Hmm, my vimrc already had that setting. I tried playing with different numbers, 
even removing it, but it did not help.

saurabh
  

-- 
-- 
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: Repeated symbols with Cscope

2016-10-14 Thread Hugo Gagnon
On Friday, October 14, 2016 at 4:39:18 PM UTC+2, ewfalor wrote:
> On Thu, Oct 13, 2016 at 10:03:29AM -0700, Hugo Gagnon wrote:
> > Hello,
> > 
> > For some reason when I do a symbol search with Cscope in Vim I get repeated 
> > symbols, e.g.:
> > 
> > :cs find s setID
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > e.H|188| <> void setID (int ID) { _ID = ID; }
> > 
> > I noticed that the symbols always gets repeated exactly 4 times.
> > 
> > I have the following Cscope related settings in my .vimrc:
> > 
> > if has("cscope") && filereadable("cscope.out")
> >   cscope kill -1
> >   set nocscopeverbose
> >   cscope add cscope.out
> >   set cscopeverbose
> > endif
> > 
> > Anybody has any idea what is going on?
> 
> Given the lack of replies on the mailing list it would appear that
> no one has any ideas. Perhaps if you can share some more information
> we can help you find your solution.
> 
> Which versions of Vim and Cscope are you running?
> 
> How are you generating your cscope.out?
> 
> Are you able to share the source code and cscope.out you are working
> on in your example? I could at least find out whether the problem is
> unique to your computer.
> 
> -- 
> Erik Falor
> Registered Linux User #445632http://unnovative.net

Hi Erik,

Thank you for your reply.

My problem is now seemingly gone. Even more strange is that I can't reproduce 
it; all I did was to reboot my machine and build another Cscope database. The 
command that I use is:

cscope -b -q -v -i cscope.files

I use Vim 7.4.52 with Cscope 15.8a.

I am sorry but I cannot share my source code. If I can reproduce the problem I 
will try to create a minimal example and share it with you.

This is all very strange.

Best,

Hugo

-- 
-- 
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: Repeated symbols with Cscope

2016-10-14 Thread Christian Brabandt
On Do, 13 Okt 2016, Hugo Gagnon wrote:

> Hello,
> 
> For some reason when I do a symbol search with Cscope in Vim I get repeated 
> symbols, e.g.:
> 
> :cs find s setID
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> 
> I noticed that the symbols always gets repeated exactly 4 times.
> 
> I have the following Cscope related settings in my .vimrc:
> 
> if has("cscope") && filereadable("cscope.out")
>   cscope kill -1
>   set nocscopeverbose
>   cscope add cscope.out
>   set cscopeverbose
> endif
> 
> Anybody has any idea what is going on?

Does it happen, if you use cscope interactively?


Best,
Christian
-- 
Das Leben beginnt in einer Zelle
und bei Strolchen endet's auch in einer solchen.
-- Heinz Erhardt

-- 
-- 
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: Repeated symbols with Cscope

2016-10-14 Thread Erik Falor
On Thu, Oct 13, 2016 at 10:03:29AM -0700, Hugo Gagnon wrote:
> Hello,
> 
> For some reason when I do a symbol search with Cscope in Vim I get repeated 
> symbols, e.g.:
> 
> :cs find s setID
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> e.H|188| <> void setID (int ID) { _ID = ID; }
> 
> I noticed that the symbols always gets repeated exactly 4 times.
> 
> I have the following Cscope related settings in my .vimrc:
> 
> if has("cscope") && filereadable("cscope.out")
>   cscope kill -1
>   set nocscopeverbose
>   cscope add cscope.out
>   set cscopeverbose
> endif
> 
> Anybody has any idea what is going on?

Given the lack of replies on the mailing list it would appear that
no one has any ideas. Perhaps if you can share some more information
we can help you find your solution.

Which versions of Vim and Cscope are you running?

How are you generating your cscope.out?

Are you able to share the source code and cscope.out you are working
on in your example? I could at least find out whether the problem is
unique to your computer.

-- 
Erik Falor
Registered Linux User #445632http://unnovative.net

-- 
-- 
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.


signature.asc
Description: PGP signature


Re: Repeated symbols with Cscope

2016-10-14 Thread arocker

>
> No it doesn't, at least not until it started working again. Unfortunately
> I forgot to test that before rebooting my machine...
>

Is this a Heisenbug (disappears when you search for it) or a
Schrodingerbug, (appears at random when the box is opened)? :-)*

-- 
-- 
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: Inconsistent behavior at end of .vim script

2016-10-14 Thread porphyry5
On Thursday, October 13, 2016 at 10:38:34 AM UTC-7, Frank Shute wrote:
> Hi Graham,
> 
> What you might want to do is use echom rather than plain echo.
> 
> The former sticks it's output into the message buffer and you can then
> read it with:
> 
> :mes
> 
> HTH.
> 
snip
> 
> Frank

Thank you Frank, that does indeed do the job, but even better, it got me to 
read :h :echom, which led to 'echo-redraw', to force any pending redraw before 
issuing an :echo.  This is preferable as it gets the definition alone, without 
all the other messages.  You can't take anything for granted in vim, I never 
thought to look in the help for :echo, what could possibly be more 
straightforward.

-- 
-- 
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.