Wednesday, June 15, 2016

Re: help writing vim script

* Siddhant Gupta <dpsrkp.sid@gmail.com> [2016-06-15 10:03]:
> I have a variable containing Result: "/tmp/abcd/1234". I want to store
> tmp/abcd/1234 in another variable. how can I do this.

There is more than one way to do it :) Two of them are

let bar = foo[1:]
let bar = substitute(foo, '^/', '', '')

--
Dmitri Vereshchagin

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