Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Because moving the slimv plugin to <code>~/.vim</code> fixed it, I suspect the problem is that MacVim's default <code>/Applications/MacVim.app/Contents/Resources/vim/runtime/ftplugin/lisp.vim</code> is being sourced before the <code>ftplugin/lisp/slimv-lisp.vim</code> file provided with slimv.</p> <p>Both of those files (<code>lisp.vim</code> and <code>slimv-lisp.vim</code>) start with code like this:</p> <pre><code>" Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 </code></pre> <p>and so whichever file gets sourced first will prevent the other file from running since vim does <code>finish</code> (exits the script) if it detects that another *lisp*.vim script was run previously and therefore set the <code>b:did_ftplugin</code> buffer-local variable.</p> <p>You can tell this is happening by running MacVim from the command line with the arguments:</p> <pre><code>-V20macvim-log.txt hello.lisp </code></pre> <p>Then quit the MacVim session that starts up, and look at the macvim-log.txt file it created.</p> <p>Search for <code>b:did_ftplugin</code> and you'll see it referenced each time <code>lisp.vim</code> or <code>slimv-lisp.vim</code> runs, and you can see that <code>lisp.vim</code> runs first, which prevents <code>slimv-lisp.vim</code> from working.</p> <p>Moving your slimv install from the <code>/Applications/MacVim.app/</code> dir to your <code>~/.vim</code> dir will change the order so that <code>slimv-lisp.vim</code> is sourced before <code>lisp.vim</code>, and then slimv will work.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload