Monday, September 30, 2019

Re: Vim crashes when executing system()

https://github.com/vim/vim/pull/5005/files

I sent patch to fix this.

On Tuesday, October 1, 2019 at 10:14:03 AM UTC+9, Salman Halim wrote:
It didn't matter. I tried "ls", "diff", "svn", etc. 

--

Salman

On Mon, Sep 30, 2019, 21:03 Yasuhiro Matsumoto <mat...@gmail.com> wrote:
Could you please find out what command string is passed to system()?

On Monday, September 30, 2019 at 10:57:49 PM UTC+9, Salman Halim wrote:
Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c1c46e07-97b2-410d-83b1-cf6987d3241f%40googlegroups.com.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/d5cbb110-cdee-4879-890e-ba92f5751c85%40googlegroups.com.

Re: Vim crashes when executing system()

Probably, I figure out this bug. Could you pleaes try this? (if possible)

diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 9d58ab41a..2db573a4f 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1791,8 +1791,11 @@ make_filter_cmd(
      if (p != NULL)
  *p = NUL;
  }
- STRCAT(buf, " <"); /* " < " causes problems on Amiga */
- STRCAT(buf, itmp);
+ if (itmp != NULL)
+ {
+     STRCAT(buf, " <"); /* " < " causes problems on Amiga */
+     STRCAT(buf, itmp);
+ }
  if (*p_shq == NUL)
  {
      p = find_pipe(cmd);


On Tuesday, October 1, 2019 at 10:14:03 AM UTC+9, Salman Halim wrote:
It didn't matter. I tried "ls", "diff", "svn", etc. 

--

Salman

On Mon, Sep 30, 2019, 21:03 Yasuhiro Matsumoto <mat...@gmail.com> wrote:
Could you please find out what command string is passed to system()?

On Monday, September 30, 2019 at 10:57:49 PM UTC+9, Salman Halim wrote:
Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c1c46e07-97b2-410d-83b1-cf6987d3241f%40googlegroups.com.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/a3b8d785-f7ca-475e-95cf-95ce629eb713%40googlegroups.com.

Re: Vim crashes when executing system()

It didn't matter. I tried "ls", "diff", "svn", etc. 

--

Salman

On Mon, Sep 30, 2019, 21:03 Yasuhiro Matsumoto <mattn.jp@gmail.com> wrote:
Could you please find out what command string is passed to system()?

On Monday, September 30, 2019 at 10:57:49 PM UTC+9, Salman Halim wrote:
Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c1c46e07-97b2-410d-83b1-cf6987d3241f%40googlegroups.com.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEcvXX-64zS-6PXZoqTRV_TxF3efbf8hhMB4Lo5Y8w8_bg%40mail.gmail.com.

Re: Vim crashes when executing system()

Could you please find out what command string is passed to system()?

On Monday, September 30, 2019 at 10:57:49 PM UTC+9, Salman Halim wrote:
Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c1c46e07-97b2-410d-83b1-cf6987d3241f%40googlegroups.com.

Re: Set filetype for specific file?

On Mon, Sep 30, 2019 at 7:44 PM Ven Tadipatri <vtadipatri@gmail.com> wrote:
>
> Is there a way to set the file type permanently for a specific file
> (not based on extension)?
> For example, if I have a file ~/dir/myfile.properties, I'd like to
> always set the filetype to be sql, without having to run :set
> filetype=sql every time I open the file.
>
> Thanks,
> Ven

See :help modeline

For instance, add near the top or bottom of the file a line with either

-- vim: ft=sql
(modeline form 1, which goes to the end of the line)

or

/* vim: set ft=sql :*/
(modeline form 2, which can be followed by a colon and then anything,
such as a comment terminator)

as an SQL comment, and optionally with additional options to be set
for that file as with :setlocal. Anything is allowed before the "
vim:" modeline leader; usually a comment leader for the current
language is placed there.

Best regards,
Tony.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXuZEhZhDUkJF4hnahdge8g9Amzy6DDf19M_MwH37kU3rg%40mail.gmail.com.

Re: Vim crashes when executing system()

Salman wrote:

> I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call
> to system() crashed Vim. The command line just says,"Segmentation Fault"
> with no other details.
>
> This is new and happens even when started with -u NONE -U NONE.

What was the version when it was still working?

What is 'shell' set to? And other related options:
set shell?
set shellpipe?
set shellcmdflag?
set shellquote?
set shellredir?
set shellslash?
set shelltemp?
set shellxescape?
set shellxquote?

--
ARTHUR: I command you as King of the Britons to stand aside!
BLACK KNIGHT: I move for no man.
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Bram@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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/201909301940.x8UJengC030856%40masaka.moolenaar.net.

Re: Set filetype for specific file?

On 2019-09-30, Ven Tadipatri wrote:
> Is there a way to set the file type permanently for a specific file
> (not based on extension)?
> For example, if I have a file ~/dir/myfile.properties, I'd like to
> always set the filetype to be sql, without having to run :set
> filetype=sql every time I open the file.

The easiest way is to create a file in your ~/.vim/ftdetect
directory. I don't think the name matters except perhaps for ending
in .vim. Put this line in that file.

au BufRead,BufNewFile ~/dir/myfile.properties set filetype=sql

For more on this, see:

:help new-filetype

Regards,
Gary

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190930175920.GA14172%40phoenix.

Re: Set filetype for specific file?

Have you tried something like the following?

`autocmd BufNewFile,BufRead ~/foo.bar set filetype=myfiletype`

On Monday, September 30, 2019 at 1:44:31 PM UTC-4, vtadipatri wrote:
Is there a way to set the file type permanently for a specific file
(not based on extension)?
For example, if I have a file ~/dir/myfile.properties, I'd like to
always set the filetype to be sql, without having to run :set
filetype=sql every time I open the file.

Thanks,
Ven

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/07a31824-fbf0-42e1-b618-46911408125b%40googlegroups.com.

Set filetype for specific file?

Is there a way to set the file type permanently for a specific file
(not based on extension)?
For example, if I have a file ~/dir/myfile.properties, I'd like to
always set the filetype to be sql, without having to run :set
filetype=sql every time I open the file.

Thanks,
Ven

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEodY67RXO-HtYx9VekN-Z8cYzKt6FN%3DzEfmRX13ratWrApByg%40mail.gmail.com.

Vim crashes when executing system()

Hello,

I upgraded my GVim on Windows 10 to 8.1-2102 yesterday and now every call to system() crashed Vim. The command line just says,"Segmentation Fault" with no other details. 

This is new and happens even when started with -u NONE -U NONE.

Thank you in advance and best regards,

--

Salman

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEezC6VzCZ_pg7O8Sz1qUm4izghXbLwx0JOqFPUfZNbVtA%40mail.gmail.com.

Friday, September 27, 2019

Re: Quickfix list populated when using :make but not with !cmake



On Fri, Sep 27, 2019 at 1:24 PM Christian Brabandt <cblists@256bit.org> wrote:

On Fr, 27 Sep 2019, Uday Reddy B wrote:

> Hello,
>
> I notice that the quickfix list and cycling through errors does not work when using ':!cmake ...' but works when using exactly the same command by setting 'let &makeprg="cmake ...' and then ':make'. 
>
> Would there be a way to get the former working as is? Thanks!

No that is not possible. The :! command, always starts an external
command from your shell. Vim does not parse the output (and doesn't even
know what kind of command is started). That's why Vim has introduced the
:make command.

Thanks very much - makes sense. On this note, I notice that the :make command does not yield any colors in its output (for eg. the compiler errors that appear in red) while the same command via "!cmake ...' yields colors the same way it does on the shell. This was one reason I was trying to see if the quickfix list could work through an external command. 

- Uday

 

Best,
Christian
--
Durch Abwesenheit seine Hochschätzung oder Verehrung befördern: Wie
die Gegenwart den Ruhm vermindert, so vermehrt ihn die Abwesenheit.
                -- Baltasar Gracián y Morales (Handorakel und Kunst der Weltklugheit)

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190927075405.GC5154%40256bit.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALA1MBJCw032iUfhVFEPd6fZ3sKMy7v53xnaYHNGZ_Y3J7wjyw%40mail.gmail.com.

Re: Best way to launch a URL from within VIM

On 9/27/19 12:14 PM, Ni Va wrote:
> Sorry just call it like this, it works well:
> nnoremap wb :call helper#openurl()<cr>
>
>
> Le vendredi 27 septembre 2019 18:00:11 UTC+2, Ni Va a écrit :
>>
>> I use this :
>>

my way is faster

https://krollermuller.nl/vacatures
https://krollermuller.nl/vacatures
https://krollermuller.nl/vacatures
https://krollermuller.nl/vacatures


>> " Url
>>> function! helper#job_out_cb(self, data) abort "{{{
>>> let g:idx += 1
>>> let g:data .= string(g:idx)
>>> let g:data .= a:data
>>> let self = a:self
>>> try
>>> let data = remove(self.lines, -1) . a:data
>>> catch /.*/
>>> echomsg 'begin'.string(a:data).'end'
>>> endtry
>>> let lines = split(a:data, "\n", 1)
>>> " echomsg string(lines)
>>> call extend(self.lines, lines)
>>> endfunction "}}}
>>> function! helper#job_exit_cb(self, data) abort "{{{
>>> let a:self.running = 0
>>> let a:self.error = a:data != 0
>>> let self = a:self
>>> let g:self = self
>>> endfunction "}}}
>>> function! helper#job_cb(fn, job, ch, data) "{{{
>>> call call(a:fn, [a:job, a:data])
>>> endfunction "}}}
>>> fun! helper#openurl(...) "{{{
>>> let cmd_browse = 'rundll32 url.dll,FileProtocolHandler '
>>> let url_pat = '\w\+:\/\{2}[^ ''()]\+'
>>> let url = matchstr(getline(line('.')), url_pat)
>>> if url != ''
>>> let g:job = job_start(cmd_browse.url, {
>>> \ 'out_cb' : function('helper#job_cb', ['helper#job_out_cb' , {} ]),
>>> \ 'exit_cb' : function('helper#job_cb', ['helper#job_exit_cb', {} ]),
>>> \ 'out_mode': 'raw'
>>> \})
>>> else
>>> echomsg 'sorry, no url found on this cursor''line'
>>> endif
>>> endfunction "}}}
>>
>>
>>
>> Le vendredi 27 septembre 2019 17:53:15 UTC+2, J S a écrit :
>>>
>>>>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s)
>>> way.
>>>
>>>
>>>> Isn't that what netrw's normal command `gx` provides?
>>>
>>> Bingo! We have a winner! gx does exactly what I want. Thanks.
>>>
>>> Note: All other commentary on this thread has been pretty much n/a.
>>>
>>
>


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e14857d0-77b3-04a2-0082-0035c953329e%40my.liu.edu.

Re: Best way to launch a URL from within VIM

Sorry just call it like this, it works well:
nnoremap wb              :call helper#openurl()<cr>


Le vendredi 27 septembre 2019 18:00:11 UTC+2, Ni Va a écrit :
I use this :

" Url
function! helper#job_out_cb(self, data) abort "{{{
let g:idx  += 1
let g:data .= string(g:idx)
let g:data .= a:data
let self  = a:self
try
let data  = remove(self.lines, -1) . a:data
catch /.*/
echomsg 'begin'.string(a:data).'end'
endtry
let lines = split(a:data, "\n", 1)
" echomsg string(lines)
call extend(self.lines, lines)
endfunction  "}}}
function! helper#job_exit_cb(self, data) abort   "{{{
let a:self.running = 0
let a:self.error   = a:data != 0
let self   = a:self
let g:self = self
endfunction  "}}}
function! helper#job_cb(fn, job, ch, data)  "{{{
call call(a:fn, [a:job, a:data])
endfunction  "}}}
fun! helper#openurl(...) "{{{
  let cmd_browse = 'rundll32 url.dll,FileProtocolHandler '
  let url_pat = '\w\+:\/\{2}[^ ''()]\+'
  let url     = matchstr(getline(line('.')), url_pat)
  if url != ''
let g:job = job_start(cmd_browse.url, {
\ 'out_cb'  : function('helper#job_cb', ['helper#job_out_cb' , {} ]),
\ 'exit_cb' : function('helper#job_cb', ['helper#job_exit_cb', {} ]),
\ 'out_mode': 'raw'
\})
  else
echomsg 'sorry, no url found on this cursor''line'
  endif
endfunction "}}}


Le vendredi 27 septembre 2019 17:53:15 UTC+2, J S a écrit :
>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.


> Isn't that what netrw's normal command `gx` provides?

Bingo! We have a winner! gx does exactly what I want. Thanks.

Note: All other commentary on this thread has been pretty much n/a.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ee125aed-3380-4edc-9a24-b0e8d19f750b%40googlegroups.com.

Re: Best way to launch a URL from within VIM

cut and past works.

cut and past works...again
cut and past works...again
cut and past works...again
cut and past works...again

On 9/27/19 12:00 PM, Ni Va wrote:
> I use this :
>
> " Url
>> function! helper#job_out_cb(self, data) abort "{{{
>> let g:idx += 1
>> let g:data .= string(g:idx)
>> let g:data .= a:data
>> let self = a:self
>> try
>> let data = remove(self.lines, -1) . a:data
>> catch /.*/
>> echomsg 'begin'.string(a:data).'end'
>> endtry
>> let lines = split(a:data, "\n", 1)
>> " echomsg string(lines)
>> call extend(self.lines, lines)
>> endfunction "}}}
>> function! helper#job_exit_cb(self, data) abort "{{{
>> let a:self.running = 0
>> let a:self.error = a:data != 0
>> let self = a:self
>> let g:self = self
>> endfunction "}}}
>> function! helper#job_cb(fn, job, ch, data) "{{{
>> call call(a:fn, [a:job, a:data])
>> endfunction "}}}
>> fun! helper#openurl(...) "{{{
>> let cmd_browse = 'rundll32 url.dll,FileProtocolHandler '
>> let url_pat = '\w\+:\/\{2}[^ ''()]\+'
>> let url = matchstr(getline(line('.')), url_pat)
>> if url != ''
>> let g:job = job_start(cmd_browse.url, {
>> \ 'out_cb' : function('helper#job_cb', ['helper#job_out_cb' , {} ]),
>> \ 'exit_cb' : function('helper#job_cb', ['helper#job_exit_cb', {} ]),
>> \ 'out_mode': 'raw'
>> \})
>> else
>> echomsg 'sorry, no url found on this cursor''line'
>> endif
>> endfunction "}}}
>
>
>
> Le vendredi 27 septembre 2019 17:53:15 UTC+2, J S a écrit :
>>
>>>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.
>>
>>
>>> Isn't that what netrw's normal command `gx` provides?
>>
>> Bingo! We have a winner! gx does exactly what I want. Thanks.
>>
>> Note: All other commentary on this thread has been pretty much n/a.
>>
>


--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com

DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com

Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/fb16df53-3a75-d646-816b-2f38eb7369d3%40my.liu.edu.

Re: Best way to launch a URL from within VIM

I use this :

" Url
function! helper#job_out_cb(self, data) abort "{{{
let g:idx  += 1
let g:data .= string(g:idx)
let g:data .= a:data
let self  = a:self
try
let data  = remove(self.lines, -1) . a:data
catch /.*/
echomsg 'begin'.string(a:data).'end'
endtry
let lines = split(a:data, "\n", 1)
" echomsg string(lines)
call extend(self.lines, lines)
endfunction  "}}}
function! helper#job_exit_cb(self, data) abort   "{{{
let a:self.running = 0
let a:self.error   = a:data != 0
let self   = a:self
let g:self = self
endfunction  "}}}
function! helper#job_cb(fn, job, ch, data)  "{{{
call call(a:fn, [a:job, a:data])
endfunction  "}}}
fun! helper#openurl(...) "{{{
  let cmd_browse = 'rundll32 url.dll,FileProtocolHandler '
  let url_pat = '\w\+:\/\{2}[^ ''()]\+'
  let url     = matchstr(getline(line('.')), url_pat)
  if url != ''
let g:job = job_start(cmd_browse.url, {
\ 'out_cb'  : function('helper#job_cb', ['helper#job_out_cb' , {} ]),
\ 'exit_cb' : function('helper#job_cb', ['helper#job_exit_cb', {} ]),
\ 'out_mode': 'raw'
\})
  else
echomsg 'sorry, no url found on this cursor''line'
  endif
endfunction "}}}


Le vendredi 27 septembre 2019 17:53:15 UTC+2, J S a écrit :
>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.


> Isn't that what netrw's normal command `gx` provides?

Bingo! We have a winner! gx does exactly what I want. Thanks.

Note: All other commentary on this thread has been pretty much n/a.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9497560d-4e85-46a1-971b-6b184f65ddce%40googlegroups.com.

How to let previous opened fold open reentering vim buffer.

Hi,


I try this in _vimrc in order to let a previous opened fold, opened when I re enter buffer.

in _vimrc:
if has("autocmd")
silent autocmd! BufEnter *.vim norm za
endif

example of vim buffer :

function! sequencerutil#echomsg(startreltime,str) abort  " timestamp stolen from codi sorry :){{{
let seconds_and_microseconds = reltimestr(reltime(a:startreltime))
let decimal_i = stridx(seconds_and_microseconds, '.')
let seconds = seconds_and_microseconds[:decimal_i - 1]
let microseconds = seconds_and_microseconds[decimal_i + 1:]
let timestamp = strftime("%T.".microseconds, seconds)
echomsg strftime('%Y/%m/%d %T.').printf("%.3s",microseconds).printf(" %.3s secs %s", seconds, a:str)
endfunc "}}}
" vim: set ft=vim ff=dos fdm=marker ts=4 :expandtab:



It seems to not doing what I attempt but why ?

Thanks in advance.
NiVa

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/045cb37a-8f90-447d-b652-125f54c922bb%40googlegroups.com.

Re: Best way to launch a URL from within VIM

>> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.


> Isn't that what netrw's normal command `gx` provides?

Bingo! We have a winner! gx does exactly what I want. Thanks.

Note: All other commentary on this thread has been pretty much n/a.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1341358286.400991.1569599579090%40mail.yahoo.com.

Detecting changes to the quickfix list

Hello everyone,

I'm writing a script that needs to trigger an action when the quickfix list changes.
After reading the docs, I tried using something like this:

autocmd QuickFixCmdPost * call MyFunction()

This works for most quickfix manipulation commands, like `cexpr`, but fails for `setqflist`. Indeed, the docs don't mention `setqflist` as one of the functions that trigger this event.

Is there any way I can detect every change to the quickfix, no matter which function was used to do it?

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b94b58fe-3e9a-416f-b731-4ae70c2becb4%40googlegroups.com.

Re: Best way to launch a URL from within VIM

Am 27.09.2019 um 08:06 schrieb 'J S' via vim_use:
> Vim 7.something under (MS) Windows 7.
>
> I want to do the equivalent of:
>
> :!start http://something
>
> But that doesn't work.

You need to put a space after `!':
:! start http://something

Non-blocking:
:sil ! start http://something

If you put double quotes around the argument, these will be used for the title:
:sil ! start "http://something"
(opens a console) thus you will want to use
:sil ! start "title" "http://something"
then.

As probably mentioned already, there is more info under
:h :!start

> This *does* work, but it is ugly (and opens lots of command prompt windows and requries a few "press any key to continues"s. Also, it seems to run CMD twice - i.e., you end up running:
>
> cmd /c cmd /c start ...
>
> :!cmd /c start http://something
>
> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.

See above :-)

--
Andy

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5D8E1C01.1010109%40yahoo.de.

Re: Quickfix list populated when using :make but not with !cmake

On Fr, 27 Sep 2019, Uday Reddy B wrote:

> Hello,
>
> I notice that the quickfix list and cycling through errors does not work when using ':!cmake ...' but works when using exactly the same command by setting 'let &makeprg="cmake ...' and then ':make'. 
>
> Would there be a way to get the former working as is? Thanks!

No that is not possible. The :! command, always starts an external
command from your shell. Vim does not parse the output (and doesn't even
know what kind of command is started). That's why Vim has introduced the
:make command.

Best,
Christian
--
Durch Abwesenheit seine Hochschätzung oder Verehrung befördern: Wie
die Gegenwart den Ruhm vermindert, so vermehrt ihn die Abwesenheit.
-- Baltasar Gracián y Morales (Handorakel und Kunst der Weltklugheit)

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190927075405.GC5154%40256bit.org.

Re: Best way to launch a URL from within VIM

On Fr, 27 Sep 2019, 'J S' via vim_use wrote:

> Vim 7.something under (MS) Windows 7.
>
> I want to do the equivalent of:
>
> :!start http://something
>
> But that doesn't work.
>
> This *does* work, but it is ugly (and opens lots of command prompt windows and requries a few "press any key to continues"s. Also, it seems to run CMD twice - i.e., you end up running:
>
> cmd /c cmd /c start ...
>
> :!cmd /c start http://something
>
> I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.

Isn't that what netrw's normal command `gx` provides?

Best,
Christian
--
Das Gesetz macht alle auf erhabene Weise gleich: Es verbietet allen
Menschen unter Brücken zu schlafen und Brot zu stehlen - den Armen
ebenso wie den Reichen.
-- Anatole France

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190927075247.GB5154%40256bit.org.

Re: Best way to launch a URL from within VIM

Hi,

2019/9/27 Fri 15:08:27 UTC+9 J S wrote:
Vim 7.something under (MS) Windows 7.

I want to do the equivalent of:

:!start http://something

But that doesn't work.
 
This should work as described in ":help :!start".
Which version of Vim do you use? Win32 version or Cygwin (MSYS2) version?

Regards,
Ken Takata

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1757cdcd-d4fb-4771-a475-c29b71e12b23%40googlegroups.com.

Thursday, September 26, 2019

Re: Best way to launch a URL from within VIM

On Fri, Sep 27, 2019 at 06:06:10AM +0000, 'J S' via vim_use wrote:
> Vim 7.something under (MS) Windows 7.
>
> I want to do the equivalent of:
>
> :!start http://something

maybe this works when you specify the right program to launch the URL,
eg. with ':!lynx http://something', provided you installed lynx or any
other browser.

vim has a feature that resembles this: by hitting 'gf' over a filename,
vim opens the file under the cursor.

but...

since vim is a _text editor_, browsing websites isn't a feature I
would expect. the better way IMHO is to launch a second terminal or
window and use a browser to open the URL there, copy content there and
get back to vim. certainly there are other environments that provide the
functionality you describe...

//meine

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190927063850.GA11466%40trackstand.

Best way to launch a URL from within VIM

Vim 7.something under (MS) Windows 7.

I want to do the equivalent of:

:!start http://something

But that doesn't work.

This *does* work, but it is ugly (and opens lots of command prompt windows and requries a few "press any key to continues"s. Also, it seems to run CMD twice - i.e., you end up running:

cmd /c cmd /c start ...

:!cmd /c start http://something

I seek a simpler and, ideally, seamless (i.e., no "press any key"s) way.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/925364617.196519.1569564370585%40mail.yahoo.com.

Quickfix list populated when using :make but not with !cmake

Hello,

I notice that the quickfix list and cycling through errors does not work when using ':!cmake ...' but works when using exactly the same command by setting 'let &makeprg="cmake ...' and then ':make'. 

Would there be a way to get the former working as is? Thanks!


--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CALA1MB%2BMBb5E5CFeo8sszpprveFi3ohGxMPAE8S%3D01S8CsdM0Q%40mail.gmail.com.

Re: Change /colors/ & /syntax/ paths or source colors & syntax from shared directory?

On Do, 26 Sep 2019, Tony Mechelynck wrote:

> In addition, the :packadd command may add additional directories, each
> specific to one package. For instance, $VIMRUNTIME/vimrc_example.vim
> includes the following at is very end:

Note that Vim 7.4 does not have the `:pack` command and also not the
`packpath` option setting.

Best,
Christian
--
Die meisten Meinungen kommen zustande, indem man vergißt, wo man sie
gehört oder gelesen hat.
-- Moritz Heimann

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190926081021.GA5154%40256bit.org.

:wq in JShell

Hi all:

I started using JShell for teaching purposes. My default editor is Vim.

JShell's "/edit" command permits me to edit code snippets in Vim directly. After save & quit the updated snippet then returns to JShell.

However, I experience a strange behavior:

:w
:q
Updates the code in JShell (as expected)

:wq
Does *not* update the code in JShell

Is there any guess why :wq does not behave like :w :q?

I'm running Vim 8.0 and Java 11 on Ubuntu Linux.

Best,
Claus

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/DC2BE40D-31E0-4543-AE57-E214518A3AB0%40freenet.de.

Wednesday, September 25, 2019

Re: Change /colors/ & /syntax/ paths or source colors & syntax from shared directory?

On Wed, Sep 25, 2019 at 7:01 PM nakore <nakore@gmail.com> wrote:
>
> All,
>
> Is there a way to use a /colors/ or /syntax/ file out of some directory other than $VIMRUNTIME?

Yes. Under :help 'runtimepath' you will see that Vim looks for its
runtime files in several directories. For instance, on Unix-like
systems, the following directories aree checked in the following
order:

~/.vim (under your home directory) for your own scripts
$VIM/vimfiles (a non-version-dependent location) for the sysadmin's
system-wide scripts
$VIMRUNTIME — ONLY for scripts distributed with Vim, any Vim update
may silently replace any of them
$VIM/vimfiles/after — for the sysadmin's "after" snippets, to override
any of the above
~/.vim/after — for your own "after" snippets, to override any of the above.

As you can see, you have the first and last word about any aspect of
Vim's runtime configuration.

In addition, the :packadd command may add additional directories, each
specific to one package. For instance, $VIMRUNTIME/vimrc_example.vim
includes the following at is very end:

" Add optional packages.
"
" The matchit plugin makes the % command work better, but it is not backwards
" compatible.
" The ! means the package won't be loaded right away but when plugins are
" loaded during initialization.
if has('syntax') && has('eval')
packadd! matchit
endif

This adds $VIMRUNTIME/pack/dist/opt/matchit to the 'runtimepath'
option to enable the matchit plugin.

>
> At work, I work on a plethora of Linux servers (as an Oracle DBA) and do not have Linux SA (root) access. I can "see" the files in $VIMRUNTIME but I cannot edit or add at all.

You should NEVER modify anything under $VIMRUNTIME because any Vim
update may silently remove anything you change there. But you may
override those scripts with your own, see above.
>
> I'd like to be able to create some custom color.vim and syntax.vim files/schemes for my own use (not using those filenames, of course).
>
> Ideally, what I'd like to do is:
>
> Write a custom color scheme.
> Place it on a common share (common to all the Linux servers) and not have to put it on every, single, server.
> Be able to use the color scheme:

>
> Either include/call/source that color scheme file(s) in my common .vimrc file?
> Or, at least, be able to manually call that color scheme if/when I need/want it?

Both are possible. Or you could (depending on how each server finds
the shared files) put a symlink or a "source" statement to it at the
appropriate location under ~/.vim (for Unix) or ~/vimfiles (for
Windows) in your home space on each server.
>
> And, I'd like to be able to do that same sort of thing with syntax file(s)?
>
> Is that possible without getting access to (in our case) /usr/share/vim/vim74/...?

Vim 7.4 is old stuff. Nowadays it ought to be /usr/share/vim/vim81/...
>
> Thanks!!
>
> nakore

Best regards,
Tony.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXsYtvneovGdkWdGzFf8%3D3cxfwdt%3DWxJzd04%2BDgwXvcexw%40mail.gmail.com.

Re: Change /colors/ & /syntax/ paths or source colors & syntax from shared directory?

After asking that question(s), I had a moment to day dream.  A thought suddenly jumped into my head!!  I think I answered my own question when I said, "...source that color scheme file...".  I JUST tried it and it really does appear to be just that simple!!  I put a copy of an existing color file (shine.vim) up on a share area, renamed it something unique (rrshine.vim), then just did a :source <path>/rrshine.vim and it switched my color scheme to "shine"!!  I did a :source back to my /usr/share/vim/vim74/delek.vim and it set the scheme back to delek!!

So, it really was that simple and I was just brain farting on it!!

Thanks,

On Wednesday, September 25, 2019 at 10:01:41 AM UTC-7, nakore wrote:
All,

Is there a way to use a /colors/ or /syntax/ file out of some directory other than $VIMRUNTIME?

At work, I work on a plethora of Linux servers (as an Oracle DBA) and do not have Linux SA (root) access.  I can "see" the files in $VIMRUNTIME but I cannot edit or add at all.

I'd like to be able to create some custom color.vim and syntax.vim files/schemes for my own use (not using those filenames, of course).

Ideally, what I'd like to do is:
  1. Write a custom color scheme.
  2. Place it on a common share (common to all the Linux servers) and not have to put it on every, single, server.
  3. Be able to use the color scheme:
    1. Either include/call/source that color scheme file(s) in my common .vimrc file?
    2. Or, at least, be able to manually call that color scheme if/when I need/want it?
  4. And, I'd like to be able to do that same sort of thing with syntax file(s)?
Is that possible without getting access to (in our case) /usr/share/vim/vim74/...?

Thanks!!

nakore

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b6aa3efe-d6d6-48fc-a1e4-edba96b93941%40googlegroups.com.

Change /colors/ & /syntax/ paths or source colors & syntax from shared directory?

All,

Is there a way to use a /colors/ or /syntax/ file out of some directory other than $VIMRUNTIME?

At work, I work on a plethora of Linux servers (as an Oracle DBA) and do not have Linux SA (root) access.  I can "see" the files in $VIMRUNTIME but I cannot edit or add at all.

I'd like to be able to create some custom color.vim and syntax.vim files/schemes for my own use (not using those filenames, of course).

Ideally, what I'd like to do is:
  1. Write a custom color scheme.
  2. Place it on a common share (common to all the Linux servers) and not have to put it on every, single, server.
  3. Be able to use the color scheme:
    1. Either include/call/source that color scheme file(s) in my common .vimrc file?
    2. Or, at least, be able to manually call that color scheme if/when I need/want it?
  4. And, I'd like to be able to do that same sort of thing with syntax file(s)?
Is that possible without getting access to (in our case) /usr/share/vim/vim74/...?

Thanks!!

nakore

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1f2ad4a5-084b-462a-950f-8c4911efb379%40googlegroups.com.

Tuesday, September 24, 2019

Re: Formatting inconsistencies between vim and other text editors

On Wed, Sep 18, 2019 at 06:23:43PM +0100, 'Ottavio Caruso' via vim_use wrote:
> I have a heavily formatted resume in pdf that I want to make as
> machine-readable as possible yet decently readable by a human.

My strategy on this is to get all of your CV in vim, get rid of all the
external makeup code (both you did already) and then,

rearrange all parts you want to keep in vim in the most clean posible way
-- basically restructuring your text in plain text instead.

a very good way to do so is to use a basic markup language like markdown
(the daringball version and not its derivates). that way you can have a
readable and when necessary exportable version of your CV.

for maintenance your CV is kept clean and straigtforward to edit.

on a higher level you could use LaTeX markup and codings instead of
markdown, but then it could be easier to start exporting the original
GUI CV to LaTeX and then edit and do maintenance with vim.

//meine

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190924172135.GB936%40trackstand.

Monday, September 23, 2019

Re: Smooth scrolling in gvim

On Sa, 21 Sep 2019, 'Edward Ned Harvey (vim)' via vim_use wrote:

> Hi, I'm a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it's difficult to see, and it scrolls far too fast. I've been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it's not a full implementation of vim, so it' not as good as real gvim (if only there were smooth scrolling).
>
> Is it possible, or difficult, to add smooth scrolling to gvim?

It is almost impossible, because in the current state, vim does not
allow to scroll by screen lines, but only by physical lines. This is
actually one of my personal most annoying issues with Vim but I never
had actually time to properly implement it.

Having said that, I noticed Neovim has an open PR for this feature
https://github.com/neovim/neovim/pull/11014 so perhaps that is something
to have a look at.

Best,
Christian
--
Wie man sein Kind nicht nennen sollte:
Franz Ose

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190923171156.GD22701%40256bit.org.

Re: Smooth scrolling in gvim

There are several plugins that try to implement smooth scroll in one way or another, just search 'vim smooth scroll' on google.
I made my own and I use that.

https://github.com/mg979/scroll.vim


Il giorno domenica 22 settembre 2019 14:24:57 UTC+2, Edward Ned Harvey (vim) ha scritto:

Hi, I'm a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it's difficult to see, and it scrolls far too fast. I've been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it's not a full implementation of vim, so it' not as good as real gvim (if only there were smooth scrolling).

 

Is it possible, or difficult, to add smooth scrolling to gvim?

 

Thanks…

 

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/c6e45282-5b74-4ec1-8820-8c2bbf8adc0d%40googlegroups.com.

Re: Smooth scrolling in gvim

There are several plugins that try to implement smooth scroll in one way or another, just search 'vim smooth scroll' on google.

I made my own and I use that.

https://github.com/mg979/scroll.vim

Il giorno domenica 22 settembre 2019 14:24:57 UTC+2, Edward Ned Harvey (vim) ha scritto:

Hi, I'm a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it's difficult to see, and it scrolls far too fast. I've been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it's not a full implementation of vim, so it' not as good as real gvim (if only there were smooth scrolling).

 

Is it possible, or difficult, to add smooth scrolling to gvim?

 

Thanks…

 

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e1fedb8f-0215-4437-9e6a-b6d4e41eaf5f%40googlegroups.com.

Re: Smooth scrolling in gvim

There are several plugins that try to implement smooth scroll in one way or another, just search 'vim smooth scroll' on google.

I made my own and I use that.

https://github.com/mg979/scroll.vim

Il giorno domenica 22 settembre 2019 14:24:57 UTC+2, Edward Ned Harvey (vim) ha scritto:

Hi, I'm a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it's difficult to see, and it scrolls far too fast. I've been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it's not a full implementation of vim, so it' not as good as real gvim (if only there were smooth scrolling).

 

Is it possible, or difficult, to add smooth scrolling to gvim?

 

Thanks…

 

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ae96bcc6-0622-4c06-906e-ae948b35226b%40googlegroups.com.

Sunday, September 22, 2019

Re: Smooth scrolling in gvim

On Sun, Sep 22, 2019 at 2:24 PM 'Edward Ned Harvey (vim)' via vim_use
<vim_use@googlegroups.com> wrote:
>
> Hi, I'm a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it's difficult to see, and it scrolls far too fast. I've been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it's not a full implementation of vim, so it' not as good as real gvim (if only there were smooth scrolling).
>
>
>
> Is it possible, or difficult, to add smooth scrolling to gvim?
>
>
>
> Thanks…

My guess (but it's no more than, well, call it an "educated guess") is
that it would be possible but not obvious, and probably low-priority.
I suggest adding this (if not already present) to the TODO list, so
that anyone interested and capable may try his/her hand at
implementing it. Edward Ned, if _you_ want to delve into the Vim
codebase and try to find out what to change, by all means go ahead:
Vim is open-source, and its codebase is nowhere as bulky as that of,
let's say, Firefox. ;-)

Best regards,
Tony.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXtq-%2BYxMtZ8sNy5MMUJx1wJq2YJGnAK_0V0yaj9sN%2Bh1A%40mail.gmail.com.

Saturday, September 21, 2019

Smooth scrolling in gvim

Hi, I’m a long-time gvim user on mac, windows, and linux. For a long time, macs have had smooth scrolling, accurate down to the pixel (not confined to snapping position by line), but now the latest windows 10 also has smooth scrolling, with two-finger swipe gesture, and because gvim jumps by whole lines, it’s difficult to see, and it scrolls far too fast. I’ve been forced to start using VSCode with Vim plugin, because it supports smooth scrolling. VSCode with vim plugin is pretty good, but it’s not a full implementation of vim, so it’ not as good as real gvim (if only there were smooth scrolling).

 

Is it possible, or difficult, to add smooth scrolling to gvim?

 

Thanks…

 

Thursday, September 19, 2019

Re: Formatting inconsistencies between vim and other text editors

On 18/09/2019 19:23, 'Ottavio Caruso' via vim_use wrote:
> First of all, I know vim is a text editor and not a word processor, but...
>
> I have a heavily formatted resume in pdf that I want to make as
> machine-readable as possible yet decently readable by a human.

You might want something a bit more sophisticated for that.

To achieve the exact same goals I use Org mode.[0] It is a format that
was made to be exported into other formats. You write the document once
(and the markup language is as readable as Markdown), and then export it
as plain text, UTF-8 text, [X]HTML, LaTeX (to PDF, EPUB, etc.),
LibreOffice formats, as presentation slides, etc. You can write the org
file in vim (or in spacemacs, which is emacs with vim keybindings), but
you will need emacs to do the export part.

>
> I have converted it into plain text first, then, in vim:
>
> :set textwidth=80
>
> I selected the text with "V" and applied "gq". Then I've removed all
> formatting and put a bit of spaces and tabs here and there.
>
> It looks great in vim, but when I view it in Pluma, Gedit or Xed
> (Debian Stretch) the formatting is all messed up. Some line breaks are
> not recognised; tabs are not implemented consistently.
>
> Where would I start troubleshooting the issue? Have I followed the
> wrong workflow?
>

[0] <https://orgmode.org/>

--
Regards,
Oleksii Vilchanskyi

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/66a93d63-1b3c-21ce-e5d7-01909a17ff1a%40gmail.com.

Wednesday, September 18, 2019

RE: [EXTERNAL] Re: Formatting inconsistencies between vim and other text editors

>-----Original Message-----
>From: 'Ottavio Caruso' via vim_use <vim_use@googlegroups.com>
>Sent: Wednesday, September 18, 2019 2:07 PM
>To: Gary Johnson <garyjohn@spocom.com>
>Cc: vim_use@googlegroups.com
>Subject: [EXTERNAL] Re: Formatting inconsistencies between vim and other text editors
>
>>On Wed, 18 Sep 2019 at 19:43, Gary Johnson <garyjohn@spocom.com> wrote:
>>
>> On 2019-09-18, 'Ottavio Caruso' via vim_use wrote:
>> > First of all, I know vim is a text editor and not a word processor, but...
>> >
>> > I have a heavily formatted resume in pdf that I want to make as
>> > machine-readable as possible yet decently readable by a human.
>> >
>> > I have converted it into plain text first, then, in vim:
>> >
>> > :set textwidth=80
>> >
>> > I selected the text with "V" and applied "gq". Then I've removed all
>> > formatting and put a bit of spaces and tabs here and there.
>> >
>> > It looks great in vim, but when I view it in Pluma, Gedit or Xed
>> > (Debian Stretch) the formatting is all messed up. Some line breaks are
>> > not recognised; tabs are not implemented consistently.
>> >
>> > Where would I start troubleshooting the issue? Have I followed the
>> > wrong workflow?
>>
>> Formatting differences are affected by:
>>
>> - tabstop settings
>> - mixing tabs and spaces for indenting
>> - wrapping of long lines
>> - end-of-line characters
>> - monospace vs. proportional fonts
>>
>> and probably other factors I haven't thought of.
>>
>> For troubleshooting, I would start with executing
>>
>> :verbose set tabstop?
>>
>> to see the current tabstop setting and where it was last set, and
>>
>> :set list
>> :set listchars+=tab:>-
>> :set listchars+=nbsp:_
>>
>> to see ends of lines, tabs and non-breaking spaces.
>
>Thanks.
>
>'tabstop' is at 8, which is fine.
>
>I've "set expandtab" and then reformatted the offending paragraphs,
>and it seems to have fixed the issue.
>
>What I've also done, instead of converting the pdf to text and then
>editing it in vim, I've simply copied the text and pasted it in vim.
>This seems to have removed all the formatting and has created a
>simpler layout.
>
>
>--
>Ottavio Caruso

You will also have the editors' font to deal with (there is no method to
prevent this). Spaces in some fonts are less than that of a normal character, thus
(even using pure spaces) you will have formatting issues. The only consistent
way to ensure your document looks correctly is to view it in PDF.

Maybe also save it as M$'s doc and provide the PDF, doc, and txt files?

Good luck in your job hunt!

Andy

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5ADFF93892EDB147B66FCBABC8E4F27F1628B295%40ARSPAPPEXCH03.

Re: Formatting inconsistencies between vim and other text editors

On Wed, 18 Sep 2019 at 19:43, Gary Johnson <garyjohn@spocom.com> wrote:
>
> On 2019-09-18, 'Ottavio Caruso' via vim_use wrote:
> > First of all, I know vim is a text editor and not a word processor, but...
> >
> > I have a heavily formatted resume in pdf that I want to make as
> > machine-readable as possible yet decently readable by a human.
> >
> > I have converted it into plain text first, then, in vim:
> >
> > :set textwidth=80
> >
> > I selected the text with "V" and applied "gq". Then I've removed all
> > formatting and put a bit of spaces and tabs here and there.
> >
> > It looks great in vim, but when I view it in Pluma, Gedit or Xed
> > (Debian Stretch) the formatting is all messed up. Some line breaks are
> > not recognised; tabs are not implemented consistently.
> >
> > Where would I start troubleshooting the issue? Have I followed the
> > wrong workflow?
>
> Formatting differences are affected by:
>
> - tabstop settings
> - mixing tabs and spaces for indenting
> - wrapping of long lines
> - end-of-line characters
> - monospace vs. proportional fonts
>
> and probably other factors I haven't thought of.
>
> For troubleshooting, I would start with executing
>
> :verbose set tabstop?
>
> to see the current tabstop setting and where it was last set, and
>
> :set list
> :set listchars+=tab:>-
> :set listchars+=nbsp:_
>
> to see ends of lines, tabs and non-breaking spaces.

Thanks.

'tabstop' is at 8, which is fine.

I've "set expandtab" and then reformatted the offending paragraphs,
and it seems to have fixed the issue.

What I've also done, instead of converting the pdf to text and then
editing it in vim, I've simply copied the text and pasted it in vim.
This seems to have removed all the formatting and has created a
simpler layout.


--
Ottavio Caruso

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEJNuHyjWs-_Do2jcMBnki9c70pJB3mqZeqSTwCt5iBdpyxCGw%40mail.gmail.com.