replace s/ from current cursor position

2018-09-14 Thread Ni Va
Hi, In the same line I got these : "foo" "bar bar bar bar bar bar " Would like to replace only "bar.." . Is it possible with a range just before s/"\_.\{-}"/"REPLACE"/ ? Thank you NiVa -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

é char in balloonexpr

2018-09-14 Thread Ni Va
Hi, I have done balloonexpr() func that returns string that contains é char to display in the balloon. Display is bad formatted. How can I force balloon encoding ? maybe in latin ? Thank you NiVa -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re:

2018-09-13 Thread Ni Va
Le jeudi 13 septembre 2018 17:20:01 UTC+2, Ruben Safir a écrit : > On 9/13/18 8:15 AM, Ni Va wrote: > > silent! exe "%s/".k.'/\=get(s:decode, submatch(0), submatch(0))/g' > > > can you explain this line? > > > -- > So many immigrant groups have swep

Re:

2018-09-13 Thread Ni Va
Le jeudi 13 septembre 2018 14:13:45 UTC+2, Erik Christiansen a écrit : > On 13.09.18 01:53, Ni Va wrote: > > > > I need to edit buffer that contains vbscript that has chars and > > friends ... > > > > Without definitively write current edited file, How can I c

vim_use@googlegroups.com

2018-09-13 Thread Ni Va
Hi, I need to edit buffer that contains vbscript that has chars and friends ... Without definitively write current edited file, How can I change all that chars in order to be able to make modification in an easy view ? Thank you NiVa -- -- You received this message from the "vim_use"

for loop inner index var

2018-09-05 Thread Ni Va
Hi, Using for loop, is there an inner predefined index var ? Thank you -- -- 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

Error detected while processing .\vim81\menu.vim:

2018-08-07 Thread Ni Va
Hi, I got this message after a number of vim launch under Windows 7 and vim8.1.240 x86 build. Thank you Error detected while processing C:\ThirdParty\Vim_x86\vim81\menu.vim: line 163: E121: Undefined variable: paste#paste_cmd E15: Invalid expression: 'vnoremenu

Re: at second launch E121 : Undefined variable: paste#paste_cmd

2018-07-25 Thread Ni Va
Le mercredi 25 juillet 2018 16:35:05 UTC+2, Tony Mechelynck a écrit : > On Wed, Jul 25, 2018 at 4:08 PM, Ni Va wrote: > > Hi, > > > > I deploy this Vim 8.1.209 x86 built on windows 10 on windows 7 in $tmp > > directory. > > > > At first launch no problem

at second launch E121 : Undefined variable: paste#paste_cmd

2018-07-25 Thread Ni Va
Hi, I deploy this Vim 8.1.209 x86 built on windows 10 on windows 7 in $tmp directory. At first launch no problem appears. At second launch, for any reason, the message E121 : Undefined variable: paste#paste_cmd of line 156 of (c:\users\myUser\appdata\local\temp\vim_x86\vim81\menu.vim) Don't

Prior event for last command to last keymap

2018-07-20 Thread Ni Va
Hi, I have a script at main entry point that use keymap or last command. " key map "" => { "normal" => ':exe "call explorer#explorePaths(".string(escape(get(b:array,line(".")-1),"#")).")"' , "visual" => ':echo "not implemented"' }, " last

Re: know last command typed

2018-07-19 Thread Ni Va
Le jeudi 19 juillet 2018 08:35:06 UTC+2, Gary Johnson a écrit : > On 2018-07-18, Ni Va wrote: > > > Like Netrw, I use this autocommand : > > > > au BufEnter,VimEnter * call explorer#explorePaths(expand("")) > > > > but would like to do the

know last command typed

2018-07-19 Thread Ni Va
Hi, Like Netrw, I use this autocommand : au BufEnter,VimEnter * call explorer#explorePaths(expand("")) but would like to do the job if user has typed a known command like :e . How can I retrieve last user typed command in order to make condition in my vimscript ? Thank you NiVa -- --

Re: Retrieve ruby expression return in vim var

2018-07-07 Thread Ni Va
Le samedi 7 juillet 2018 02:03:24 UTC+2, Damien a écrit : > Hi > > Le Fri, Jul 06, 2018 at 12:47:38PM -0700, Ni Va Oa écrit : > >How can I retrieve the result of that : ruby p RUBY_VERSION into Vim's var. > > Maybe `Vim::command('let temp = json_decode(%s)' % [var, ...].to_

Retrieve ruby expression return in vim var

2018-07-06 Thread Ni Va
Hi, How can I retrieve the result of that : ruby p RUBY_VERSION into Vim's var. Thank you -- -- 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

Force dd own mapping take in on nomodifiable buffer

2018-06-28 Thread Ni Va
Hi, Assuming that the nomodifiable option is set on a buffer, I am trying to map this kind : nnoremap

Re: How to replace edit command calling netrw by own function call

2018-06-14 Thread Ni Va
Le jeudi 14 juin 2018 06:59:09 UTC+2, Ken Takata a écrit : > Hi, > > 2018/6/13 Wed 19:54:54 UTC+9 Ni Va wrote: > > Hi, > > > > > > When you type :e it opens netrw explore command. > > > > Is it possible to replace it by my own function

How to replace edit command calling netrw by own function call

2018-06-13 Thread Ni Va
Hi, When you type :e it opens netrw explore command. Is it possible to replace it by my own function call. Thank you 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

how to make :e launching own func out of netrw

2018-06-05 Thread Ni Va
Hi, On gvim 8.1.32 x86, I got a own command DIRS wich call another explorer command! -complete=file -nargs=? DIRS call explorer#DirsExplorer() How can I redefined :e command currently launchin netrw to the above call ? Thank you Ni Va -- -- You received this message from the "vi

Vim and Ruby script : object callback possible ?

2018-06-03 Thread Ni Va
d that make instance from new ruby Object Garnet,the >instance is it still alive in order to call another gem.barmethod? How to keep ruby objects alive in Vim buffer memory in order to reuse them ? Thank you Ni Va -- -- You received this message from the "vim_use" maillist.

Re: Drag and drop seems not working.

2018-05-28 Thread Ni Va
Le lundi 28 mai 2018 19:08:28 UTC+2, Bram Moolenaar a écrit : > > On Windows 10, drag and drop a file from desktop to gvim 8.1.26 x86 seems > > to not working. > > Works fine for me. Please check your installation. > > -- > Bad fashion can discourage normal people from interacting with the

Drag and drop seems not working.

2018-05-28 Thread Ni Va
Hi all, On Windows 10, drag and drop a file from desktop to gvim 8.1.26 x86 seems to not working. Thank you 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

lua, ruby python : reduce external library portable

2018-05-16 Thread Ni Va
Hi, In a Vim distro standalone on windows 10, I wonder if I can reduce the size embbeded dll without impact on calls. Thank you 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

augroup declared in plugin, reused in autoload

2018-05-16 Thread Ni Va
Hi, I need autocommand managed in augroup for instant declared in autoload. But in toggleOnOff my script functionnalities, I need to reuse the same augroup of invalidate it. plugin/monitoring.vim " MIT License. Copyright (c) 2018 NiVa. scriptencoding utf-8 if ||

Re: bad display of output utf-8 chars

2018-05-07 Thread Ni Va
Le vendredi 8 décembre 2017 11:46:20 UTC+1, Ken Takata a écrit : > Hi, > > 2017/12/8 Fri 1:02:09 UTC+9 Tony Mechelynck wrote: > > On Thu, Dec 7, 2017 at 3:44 PM, Ni Va <nivaem...@gmail.com> wrote: > > > Le jeudi 7 décembre 2017 00:59:53 UTC+1, dwierenga a écrit : &

embedded syntax filetype detection for smart indent

2018-04-18 Thread Ni Va
Hi, In vimscript, is it possible to change filetype detection into embed syntax betwween EOF like this code : fun! helper#XpathList(A,L,P) "{{{ ruby << EOF require 'ox' require 'open-uri' # 0.on one xml file xmlpath = ENV['tmp']+"/localConf.xml" doc =

change ftp syntax on embedded syntax EOF

2018-04-18 Thread Ni Va
Hi, In vimscript, is it possible to change filetype detection into embed syntax betwween EOF like this code : fun! helper#XpathList(A,L,P) "{{{ ruby << EOF require 'ox' require 'open-uri' # 0.on one xml file xmlpath = ENV['tmp']+"/localConf.xml" doc =

global indent all vim buffer out of third lang part

2018-04-17 Thread Ni Va
Hi, I have recently indent some vimscript buffer that contains ruby inside part code. Using gg=GG normal command, it has indented EOF ruby part code that make syntax unvailable. Is there a way to avoid third part language in normal indent command ? Thank you Example Vim script: >

Re: FocusGained at about updatetime why ?

2018-04-12 Thread Ni Va
Le mercredi 11 avril 2018 15:44:05 UTC+2, Ni Va a écrit : > Hi, > > As shown in the gif, why FocusGained at about updatetime (4000ms) with no > user action ? > > Gvim 8.0.1696 64 bits on windows 10 64 bits > > Thank you > NiVa Save , do the job and restore ut a

Why GVim FocusGain at updatetime (default 4 seconds)

2018-04-10 Thread Ni Va
Hi, I use event in a script to monitor Gvim activity. As I have click out from gvim interface, why GVim gain Focus at updatetime (default 4seconds) ? gvim 8.0.1678 64 bits under windows 10 64bits. Thank you NiVa -- -- You received this message from the "vim_use" maillist. Do not

copy terminal text under win10

2018-04-09 Thread Ni Va
Hi, >From termial help : "It is not possible to enter Insert mode from Terminal-Job >mode." Ok but from unix terminal and windows too, user can select text in order to copy it to clipboard. >From a terminal launched from gvim8.01678 under Win10, shellcmd appears ok but >I cannot select

Re: Copy/paste to terminal

2018-04-09 Thread Ni Va
Le lundi 9 avril 2018 10:30:05 UTC+2, Lifepillar a écrit : > On 08/04/2018 22:30, Ni Va wrote: > > Le dimanche 8 avril 2018 22:23:11 UTC+2, Ni Va a écrit : > >> > >> how can I paste that command into terminal. > > > > CTRL-W " {reg} where reg is @ &g

Re: Copy/paste to terminal

2018-04-08 Thread Ni Va
Le dimanche 8 avril 2018 22:23:11 UTC+2, Ni Va a écrit : > Hi, > > Using a buffer with some ruby command copied with normal Vy: > > gem install rmagick --platform=ruby -- > --with-opt-lib=C:\ImageMagick-7.0.7-Q16-HDRI\lib > --with-opt-include=C:\ImageMagick-7

Copy/paste to terminal

2018-04-08 Thread Ni Va
Hi, Using a buffer with some ruby command copied with normal Vy: gem install rmagick --platform=ruby -- --with-opt-lib=C:\ImageMagick-7.0.7-Q16-HDRI\lib --with-opt-include=C:\ImageMagick-7.0.7-Q16-HDRI\include And opening :terminal, how can I paste that command into terminal. Thank you

Re: Locating .vim on Windows

2018-04-08 Thread Ni Va
Le dimanche 8 avril 2018 19:23:54 UTC+2, tu...@posteo.de a écrit : > Hi, > > On a windows PC I have "installed" vim - that is: I have > unpacked a archive downloaded from here: > https://github.com/vim/vim-win32-installer/releases > > Is there a way to ask vim (for example through vim-internal

Re: how to get file fullpath to vim register?

2018-04-07 Thread Ni Va
Le samedi 7 avril 2018 08:02:45 UTC+2, Sand Glass a écrit : > Sometimes I need to copy my editing file's full path to my vim register, how > can I get it? :let @" = expand('%:p') | norm p you can map this command. Nota: I do daily release of last Vim/Gvim ver on windows 64 bits by

Re: system succeed vs job_start fails on windows cmd

2018-04-06 Thread Ni Va
Le vendredi 6 avril 2018 21:42:24 UTC+2, Ni Va a écrit : > Hi, > > This following func success to execute cmd through system( call and not > through job_start call. > > I have read job_start help that says on windowsmake a GUI app hidden but not > fails it. > > How

system succeed vs job_start fails on windows cmd

2018-04-06 Thread Ni Va
Hi, This following func success to execute cmd through system( call and not through job_start call. I have read job_start help that says on windowsmake a GUI app hidden but not fails it. How can I proceed? Thank you in advance NiVA fun! monitoring#rmdir(folderpath) "{{{ let

Re: Vim inactivity

2018-04-06 Thread Ni Va
Le jeudi 5 avril 2018 22:47:38 UTC+2, Bram Moolenaar a écrit : > Niva wrote: > > > What event can be used to know inactivity of vim for a long time? > > Use CursorHold? 'updatetime' can be used to set the time. > Unfortunately, this option is used for other things as well (flushing > the swap

calling vimscript in background in current VIM instance

2018-04-05 Thread Ni Va
Hi, I would like to make Vim's current instance be able to monitor itself. 1. On VimEnter, autocmd launch main entry 2. main tries to job_start gvim executable that launch the monitoring func but it fails Why ? Thank you NiVa This is the autoload/foo.vim code: let s:vimexe =

Vim inactivity

2018-04-05 Thread Ni Va
Hi, What event can be used to know inactivity of vim for a long time? Thank you. 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

Slow back word motion

2018-04-02 Thread Ni Va
Hi, I sometime use visual selection using back motion with 'vb' letters in normal mode. I see a slow motion and cursor release phase before the cursor reaches back position. Then when I use vT, it speeds. Why this difference ? Thank you Ni Va -- -- You received this message from

Re: feedkeys \ Enter key

2018-04-02 Thread Ni Va
Le dimanche 1 avril 2018 13:14:41 UTC+2, Christian Brabandt a écrit : > On So, 01 Apr 2018, Ni Va wrote: > > > It results in that, I think double quote is needed to embrace call feedkey > > and > > inside double single quote '' > > > > "D:/Logiciels/

Re: feedkeys \ Enter key

2018-04-01 Thread Ni Va
> On 01/04/2018 11:18, Ni Va wrote: > >> Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit : >> >>> On 01/04/2018 10:09, Ni Va wrote: >>> >>>> Hi, >>>> >>>> In order to easily test command I have mapped this

Re: feedkeys \ Enter key

2018-04-01 Thread Ni Va
Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit : > On 01/04/2018 10:09, Ni Va wrote: > > Hi, > > > > In order to easily test command I have mapped this following. > > > > feedkeys enters well WEATHER chars but not key. > > > &g

feedkeys \ Enter key

2018-04-01 Thread Ni Va
Hi, In order to easily test command I have mapped this following. feedkeys enters well WEATHER chars but not key. nnoremap :!start gvim -c "call feedkeys(':WEATHER\')" -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

do task after needed loaded helper#plugin

2018-03-24 Thread Ni Va
Hi, How can I launch $vim/vimfiles/autoload/helperplugin#func after gvim $myvimrc done and initialized ? Thank you 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

Re: sorting file content by third numbered column

2018-03-14 Thread Ni Va
Le mercredi 14 mars 2018 09:31:24 UTC+1, Ni Va a écrit : > I have done this explained before. Dict that have total time in key and csv > line in value. > > > Then I can do a  reverse(sort( numerical order but I would like to retrieve > values and the code above retrieve keys

Re: sorting file content by third numbered column

2018-03-14 Thread Ni Va
).s:sep.sumstr.s:sep.indicateur call extend(s:sorted_by_total_time, {sumstr : line}) endfor let s:results_by_total_time = reverse(sort(keys(s:sorted_by_total_time),'N')) 2018-03-14 8:53 GMT+01:00 Christian Brabandt <cbli...@256bit.org>: > > On Di, 13 Mär 2018, Ni Va wrote: > &

Re: sorting file content by third numbered column

2018-03-13 Thread Ni Va
Le mardi 13 mars 2018 14:34:20 UTC+1, Christian Brabandt a écrit : > On Di, 13 Mär 2018, Ni Va wrote: > > > By Total time column for example. > > Sorry, I find your answers in general too terse to try to figure out > what exactly you are trying to do now and I do n

Re: sorting file content by third numbered column

2018-03-13 Thread Ni Va
Le mardi 13 mars 2018 12:18:31 UTC+1, Christian Brabandt a écrit : > On Mo, 12 Mär 2018, Ni Va wrote: > > > Thanks but it's a list content not a buffer content in my case. > > Write a custom Sort Function, that splits() your content and sorts on > the third field? >

Re: sorting file content by third numbered column

2018-03-12 Thread Ni Va
20.066 > Foo.set_bar() 2 0.2234 0.1117 > FooBar.set_foo() 173 6.6418 0.038392 > Foo..ctor() 1 10.4901 10.4901 > FooBar.Calc() 358 1164.8912 3.253886 > > (I've manually inserted some space for readability reasons.) > > ~ Tim > > &

sorting file content by third numbered column

2018-03-12 Thread Ni Va
Hi, I don't happen to sort this kind of list by the third float numbered column. Foo..ctor() 1 10.4901 10.4901 Bar() 2 0.132 0.066 FooBar.set_foo()173 6.6418 0.038392 Foo.set_bar() 2 0.2234 0.1117 FooBar.Calc() 358 1164.8912 3.253886 --

enhance macro to profile C family code

2018-02-23 Thread Ni Va
Hi, Seeing the attached macro @a which aims to add begin/end profile trace in C family block code, you can see that : 1/ multiply and executing 100@a works fine 2/ executing by command :1,$ normal @a echoes so many lines that it make macro effect slow How can I optimize this ? Thanks in

Profile C Family Block

2018-02-23 Thread Ni Va
Hi, I want to profile C block code adding begin/end trace at start and end of block. public string Separator { set { Trace.Write(string.Format("{0}::{1}", this.GetType().Name, MethodBase.GetCurrentMethod().Name));

Re: Could not load library msvcrt-ruby240.dll

2018-02-23 Thread Ni Va
Le jeudi 22 février 2018 09:33:23 UTC+1, Christian Brabandt a écrit : > On Do, 22 Feb 2018, Frantz Baustier wrote: > > > >> Ruby is install in C:\Ruby24 and the bin folder containing the > > >> msvcrt-ruby240.dll is in %PATH%. > > >> > > >> I also tried to put in my vimrc file set > > >>

Re: difference between min/max timestamps

2018-02-23 Thread Ni Va
Le vendredi 23 février 2018 14:23:19 UTC+1, Ni Va a écrit : > Hi, > > > This is a listoftimestamps=['11:02:02.602','11:00:00.402','11:05:00.402'] > > I would like to calculate difference in second.ticks betwwen min and max? > > > > I've seen vim's time func

Re: vimdiff - how to jump to next difference in long line - shortcut ]c does not work

2018-02-23 Thread Ni Va
Le vendredi 23 février 2018 18:43:35 UTC+1, Igor Forca a écrit : > @Arun, I have tested your code in deep. It is working perfectly. What I have > found is little trouble in the case when first line include the change. > > File1: > aaa ccc > aaa ccc > > File2: > aaa bbb > aaa bbb > > If cursor

difference between min/max timestamps

2018-02-23 Thread Ni Va
Hi, This is a listoftimestamps=['11:02:02.602','11:00:00.402','11:05:00.402'] I would like to calculate difference in second.ticks betwwen min and max? I've seen vim's time func but don't think it could help to do this work. Thank you -- -- You received this message from the "vim_use"

build dict key:val from map list and substitute

2018-02-20 Thread Ni Va
Hi, map(copy(totaltimelist)[0:10], 'substitute(v:val, linepat, "\\1 : \\2", "")') Two values as backward ref are retrieved from a mapped list but I would like to use : - first value \\1 as dict.key - second value \\2 is added to dict[key].values = [\\2,...,..] How doing this into first map(

Re: pattern of func

2018-02-20 Thread Ni Va
erest within \zs and \ze like >    /^.*\zs\(\S\+()\)\ze > > > If you have "incsearch" set, you could immediately see what your > pattern matches. > > > Regards, > -Arun > > > On Mon, Feb 19, 2018 at 12:40 PM, Ni Va <niva...@gmail.com> wrote: &g

pattern of func

2018-02-19 Thread Ni Va
Hi, 1/Got a list mirror of file read that contains these kind of lines: 19 févr. 2018 15:49:09.301 Foo.BarFoo() - FIN TOTAL temps : 0,013ms 2/ attempt to map( the list and retrieve func and time let patfunc = '\(\S\+()\)' let pattime = '\(\d\+\,\d\+\)' let linepat =

Apply autocommand CmdlineEnter to specific command

2018-02-18 Thread Ni Va
Hi, how to apply autocommand with event CmdlineEnter to specific :MYCMD? autocmd CmdlineEnter :MYCMD :echomsg 'do my job' -- -- 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

Re: clear register @N

2018-02-18 Thread Ni Va
Sorry I want to use Cmdlineenter on particular command :XPATH, but don't happen to. 2018-02-18 19:05 GMT+01:00 Ni Va <nivaem...@gmail.com>: > Hum think it was a bad comprehension of event CmdwinEnter > > au CmdwinEnter *XPATH :call setreg('n', []) > > command! -nargs=1 -bang

Re: clear register @N

2018-02-18 Thread Ni Va
toine.mechely...@gmail.com>: > On Sun, Feb 18, 2018 at 6:37 PM, Ni Va <nivaem...@gmail.com> wrote: > > Hi, > > > > I need to clear register @N and i've tried this: > > call setreg('N', []) > > > > > > When I restart vim, register @N is al

clear register @N

2018-02-18 Thread Ni Va
Hi, I need to clear register @N and i've tried this: call setreg('N', []) When I restart vim, register @N is always full. -- -- 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

xpath's like ruby/vim : recurse fails into command call

2018-02-17 Thread Ni Va
Hi, Using ruby script to parse xml, I'd like to make an XPATH's like command , completelist from currentnode in xml. This works fine and I can choose one of childnodes. Then I call helper#XpathNavNode( to update currentnode but it fails : g:currentnode does not exists anymore. Can you see

Re: autocomand inline unlet conditionned

2018-02-17 Thread Ni Va
Le samedi 17 février 2018 22:32:11 UTC+1, Christian Brabandt a écrit : > On Sa, 17 Feb 2018, Ni Va wrote: > > > How can I write unlet var if var exists on this autocommand please ? > > > > > > au CmdlineLeave * exists('g:currentnode') ? unlet g:currentnode : '

autocomand inline unlet conditionned

2018-02-17 Thread Ni Va
Hi, How can I write unlet var if var exists on this autocommand please ? au CmdlineLeave * exists('g:currentnode') ? unlet g:currentnode : '' 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

recursive command call

2018-02-16 Thread Ni Va
Hi, With this XPATH command, would like to give to user proposal list from helper#XpathList(A,L,P) func and recall helper#XpathList(A,L,P) with the list's word selected by user (out of calling edit). Is it possible ? Thank you fun! helper#XpathList(A,L,P) "{{{ ruby << EOF require

Re: windo diffthis on 1Million xml lines is infinite loop

2018-02-15 Thread Ni Va
Le jeudi 15 février 2018 15:34:24 UTC+1, Christian Brabandt a écrit : > On Do, 15 Feb 2018, Ni Va wrote: > > > How can I get a diag on this command I launch one two xml one million > > lines, it seems to infinite loop. > > > > :windo diffthis > >

Re: windo diffthis on 1Million xml lines is infinite loop

2018-02-15 Thread Ni Va
More than 15min on windows 10 2.5ghz. I don't Walt when second file is recognize as ucs-bom Le 15 févr. 2018 15:34, "Christian Brabandt" <cbli...@256bit.org> a écrit : > > On Do, 15 Feb 2018, Ni Va wrote: > > > How can I get a diag on this command I launch

Re: windo diffthis on 1Million xml lines is infinite loop

2018-02-15 Thread Ni Va
Le jeudi 15 février 2018 15:30:11 UTC+1, Ni Va a écrit : > Hi, > > > How can I get a diag on this command I launch one two xml one million lines, > it seems to infinite loop. > > :windo diffthis > > Thank you diff onto two utf-8 BOM dos files works diff onto first

windo diffthis on 1Million xml lines is infinite loop

2018-02-15 Thread Ni Va
Hi, How can I get a diag on this command I launch one two xml one million lines, it seems to infinite loop. :windo diffthis Thank you -- -- 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,

Re: Replace v:val by v:key in a list if patter matches

2018-02-14 Thread Ni Va
Le mercredi 14 février 2018 11:53:11 UTC+1, tyru a écrit : > Hi Ni Va, > > You can choose what you like. > > let list = ['foo', 'bar'] > let pattern = 'oo' > > echo map(copy(list), 'v:val =~# pattern ? v:key : v:val') > " or > echo map(copy(list), 'v:val =~#

Re: substitue( optimize

2018-02-14 Thread Ni Va
Pavlov <zyx@gmail.com>: > 2018-02-14 11:31 GMT+03:00 Ni Va <nivaem...@gmail.com>: > > Entirely agree with your VimL principle : less command is fast/better, > inner > > system apis... Principle that works for any Language. > > Not actually. What I m

Re: substitue( optimize

2018-02-14 Thread Ni Va
be as fast as libxml (ox ruby, python) or xpath parser ? 2018-02-14 9:20 GMT+01:00 Nikolay Aleksandrovich Pavlov <zyx@gmail.com>: > 2018-02-14 10:41 GMT+03:00 Ni Va <nivaem...@gmail.com>: > > Le mardi 13 février 2018 14:30:38 UTC+1, Luc Hermitte a écrit : > >> Hello Nicho

Re: substitue( optimize

2018-02-13 Thread Ni Va
Le mardi 13 février 2018 14:30:38 UTC+1, Luc Hermitte a écrit : > Hello Nicholas, > > > After reading a file and getting 1 million lines' List, I need to > > make similar substitutions over matched lines ~500 times with this > > func: > > > > > > fun! foo#set_new_val(ressource) abort "{{{ > >

Vim adds \n at end of xml lines

2018-02-11 Thread Ni Va
Hi, On windows 10, I have saved xml and now some \n appears at end of each lines. ff=dos fft=dos encoding=utf-8 fileencoding=utf-8 Thank you -- -- 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

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Thread Ni Va
Thank y ou. Le 10 févr. 2018 19:29, "'Andy Wokula' via vim_use" < vim_use@googlegroups.com> a écrit : > Am 10.02.2018 um 17:40 schrieb Ni Va: > >> Hi, >> >> Like :h ruby says, I use this kind of script ruby interface below. >> >> How can i

syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Thread Ni Va
Hi, Like :h ruby says, I use this kind of script ruby interface below. How can i make vim switch automatically to ruby syntax in EOF section and rest of time stay in vim syntax ? Thank you Example Vim script: > function! RedGem() ruby << EOF class Garnet

substitue( optimize

2018-02-09 Thread Ni Va
Hi, After reading a file and getting 1 million lines' List, I need to make similar substitutions over matched lines ~500 times with this func: fun! foo#set_new_val(ressource) abort "{{{ " position let pos = foo#getpos_ress(a:ressource) let pres = foo#geth_presence(a:ressource) let

Re: get list'index of pattern

2018-02-09 Thread Ni Va
Le jeudi 8 février 2018 20:57:37 UTC+1, Andy Wokula a écrit : > Am 08.02.2018 um 18:56 schrieb Ni Va: > > Hi, > > > > > > I got a list and would get index of item matching a pattern. > > > > index(list, string_item) works > > index(list, pattern_item)

Re: get list'index of pattern

2018-02-08 Thread Ni Va
Le jeudi 8 février 2018 21:03:42 UTC+1, Ni Va a écrit : > Thank you Andy > > > > Le 8 févr. 2018 20:57, "'Andy Wokula' via vim_use" <vim_use@googlegroups.com> > a écrit : > Am 08.02.2018 um 18:56 schrieb Ni Va: > > > Hi, > > > &g

Re: get list'index of pattern

2018-02-08 Thread Ni Va
Thank you Andy Le 8 févr. 2018 20:57, "'Andy Wokula' via vim_use" <vim_use@googlegroups.com> a écrit : > Am 08.02.2018 um 18:56 schrieb Ni Va: > >> Hi, >> >> >> I got a list and would get index of item matching a pattern. >> >>

Replace v:val by v:key in a list if patter matches

2018-02-08 Thread Ni Va
Hi, How can I change list item's value by list index using map(. let list = ['foo', 'bar'] let pattern = 'oo' let mappedlist = [0, 'bar'] map(copy(s:xml), '(stridx(v:val,'.pattern.')>-1) ? v:key : v:val ') Thank you -- -- You received this message from the "vim_use" maillist. Do not

get list'index of pattern

2018-02-08 Thread Ni Va
Hi, I got a list and would get index of item matching a pattern. index(list, string_item) works index(list, pattern_item) ?? Thank you -- -- 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,

stack

2018-02-07 Thread Ni Va
Hi, Running from within vim a ruby code large xml (1M lines) parser, I got this : Error detected while processing function helper#ParserXml line 20 SystemStackError: stack level too deep When I run it from windows shell, not stack error appears. Can I upgrade stack level memory from within

xpath plugin completion

2018-02-02 Thread Ni Va
Hi, I search for a xpath plugin fast completion. I tried https://github.com/actionshrimp/vim-xpath.git but it lags vim on entering chars to set xpath expression. Thank you Niva -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: syntime report slow/lags

2018-01-06 Thread Ni Va
Le vendredi 5 janvier 2018 21:59:36 UTC+1, Ni Va a écrit : > Hi Ben, > > > Code is here : > https://github.com/octol/vim-cpp-enhanced-highlight/blob/master/after/syntax/cpp.vim > > > > Thank you for syn-nextgroup even if it is too difficult for ma comprehension. &

Re: syntime report slow/lags

2018-01-05 Thread Ni Va
t 8:41:39 AM UTC-6, Ni Va wrote: > > Hi, > > > > Here is a syntime report that show slow regexp > > > > TOTAL COUNT MATCH SLOWEST AVERAGE NAME > PATTERN > > 0.703272 89778 0.0073090.000784 cCustomAngleBrackets > \v%(<

Dynamic libraries loading (ruby/python/lua) : E370: Could not load library

2018-01-04 Thread Ni Va
Hi, According setting dll options to dynamic dlls' names, Vim cannot load library. I know the issue 32/64bits but regarding four following tests, no one success. :py print("hello") :py3 print("hello") :lua print("hello") :ruby print("hello") E370: Could not load library Detailed infos are

syntime report slow/lags

2017-12-21 Thread Ni Va
Hi, Here is a syntime report that show slow regexp TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN 0.703272 89778 0.0073090.000784 cCustomAngleBrackets \v%(

Re: directx config lag on virtual machine

2017-12-21 Thread Ni Va
Le mardi 19 décembre 2017 10:43:18 UTC+1, Ni Va a écrit : > Hi, > > Despite of it works fine on physical machine Windows 10, gvim 8.0.1406 lags > on virtual machine AMD 64 Seven. > > set guifont=Noto_Mono_for_Powerline:h9:w5:cANSI:qDRAFT > set > rop=type:directx,gamm

directx config lag on virtual machine

2017-12-19 Thread Ni Va
Hi, Despite of it works fine on physical machine Windows 10, gvim 8.0.1406 lags on virtual machine AMD 64 Seven. set guifont=Noto_Mono_for_Powerline:h9:w5:cANSI:qDRAFT set rop=type:directx,gamma:0.1,contrast:0.1,level:0.2,geom:2,renmode:6,taamode:2 Just forward/backward page command lags.

Re: organize dll

2017-12-08 Thread Ni Va
Le vendredi 8 décembre 2017 16:04:57 UTC+1, Ken Takata a écrit : > Hi, > > 2017/12/8 Fri 20:06:32 UTC+9 Ni Va wrote: > > Le vendredi 8 décembre 2017 11:27:40 UTC+1, Ken Takata a écrit : > > > Hi, > > > > > > 2017/12/8 Fri 18:46:16 UTC+9 Ni Va wrote: >

Re: organize dll

2017-12-08 Thread Ni Va
Le vendredi 8 décembre 2017 11:27:40 UTC+1, Ken Takata a écrit : > Hi, > > 2017/12/8 Fri 18:46:16 UTC+9 Ni Va wrote: > > Hi, > > > > > > Instead of deploy external dll in $vimruntime, is it possible to organize > > them in their own directories? > &g

organize dll

2017-12-08 Thread Ni Va
Hi, Instead of deploy external dll in $vimruntime, is it possible to organize them in their own directories? In _vimrc " ext dlls exe 'set luadll='.$vimruntime.'/extDlls/lua/lua53.dll' exe 'set rubydll='.$vimruntime.'/extDlls/ruby/x64-msvcrt-ruby240.dll' It seems to not working after test.

Re: bad display of output utf-8 chars

2017-12-07 Thread Ni Va
Le jeudi 7 décembre 2017 19:28:03 UTC+1, Tony Mechelynck a écrit : > On Thu, Dec 7, 2017 at 6:19 PM, Ni Va <nivaem...@gmail.com> wrote: > > Le jeudi 7 décembre 2017 17:45:19 UTC+1, Tony Mechelynck a écrit : > >> On Thu, Dec 7, 2017 at 5:37 PM, Ni Va <nivaem...@gmail.com&

Re: bad display of output utf-8 chars

2017-12-07 Thread Ni Va
Le jeudi 7 décembre 2017 17:45:19 UTC+1, Tony Mechelynck a écrit : > On Thu, Dec 7, 2017 at 5:37 PM, Ni Va <nivaem...@gmail.com> wrote: > [...] > > I understand and saw disastrous chinese results yesterday.. :) hopefully I > > had a 7z of my Vi distribution :) > > &g

Re: bad display of output utf-8 chars

2017-12-07 Thread Ni Va
Le jeudi 7 décembre 2017 17:02:09 UTC+1, Tony Mechelynck a écrit : > On Thu, Dec 7, 2017 at 3:44 PM, Ni Va <nivaem...@gmail.com> wrote: > > Le jeudi 7 décembre 2017 00:59:53 UTC+1, dwierenga a écrit : > >> On Wed, Dec 6, 2017 at 3:18 PM, Ni Va <niva...@gmail.com>

<    1   2   3   4   5   6   >