Saturday, June 3, 2017

ability to job_start( vimscript code

Hi,

Just Would like to know if it is possible to job_start a vim script function or vimscript code.

Like this :

let fichierEntree=expand('$tmp/vim/src/gui.h')
let mylist = readfile(fichierEntree,'b')
let idx = 0
for line in mylist
if stridx(item,'\(TOOLBAR_BUTTON_\w\+\s\+\)\d\+')>-1
let mylist[idx] = substitute(item,'\(TOOLBAR_BUTTON_\w\+\s\+\)\d\+',submatch(1).'48',"")
endif
let idx+=1
endfor
call writefile(mylist,fichierEntree,'b')


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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment