'J S' via vim_use wrote:
> The following line of legal bash code gets flagged as an error:
>
> echo ${@:i:1}
>
> The above line displays the i'th command line argument.
>
> I am running vim 8.1, with lots of patches applied. My sh.vim files (3 of them) are all dated Jun 15, 2019.
>
Hmm, that format, ${@:var1:var2} doesn't appear to be explicitly
mentioned in the bash man page (although ${parameter:var1:var2} is).
So, please try the sh.vim from my website:
http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH (put it into
your personal $HOME/.vim/syntax folder).
Regards,
Chip Campbell
--
--
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/9c4ddd20-dafc-c7a0-47e1-da55b48d1e86%40drchip.org.
No comments:
Post a Comment