Use this page to discuss script 143 words_tools: alternatives to expand()

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.

Directory problemEdit

I tried using this script as part of Luc Hermitte's cpp configuration, adding it to the .vim/macros directory as instructed. That failed, and led to mu_template complaining that it couldn't find words_tools.vim, plus complaints about undefined variables. In case it helps other folks, here are the errors I received:

Error detected while processing function <SNR>40_CheckDeps..<SNR>40_ErrorMsg:
line    5:
mu-templates: Requires <words_tools.vim>
Error detected while processing /Users/jseidel/.vim/after/plugin/mu-template.vim:
line  247:
E121: Undefined variable: s:cpo_save
E15: Invalid expression: s:cpo_save
Press ENTER or type command to continue

To fix this, I just moved words_tools.vim from the macros/ directory to the plugin/ directory and all was well. -- 01:34, March 28, 2013 (UTC)


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.