vim: Lisp-Syntax files overwrites "iskeyword"

Philipp Marek philipp at marek.priv.at
Fri Sep 3 06:37:48 UTC 2010


Package: vim
Severity: normal

Hello everybody,


I'm using the vim plugin slimv to write LISP in linux; I've got
a customized after/ftplugin/lisp.vim, where eg. "iskeyword" gets
extended to include the characters "?!%$/".
("!" is eg. often used in "Let over Lambda".)


The slimv plugin does, in a function called SlimvRefreshReplBufferNow(),
load the output of sbcl via
        execute "silent edit! " . s:repl_name

Now, for some strange reason, with this "edit!" the iskeyword option
gets overwritten.

In /usr/share/vim/vim73/syntax/lisp.vim there is a "set iskeyword="
line; most other scripts use "+=", and that's how I fixed that for me
now.

But there's still the problem that for the "edit!" my ftplugin-scripts
are not used. Maybe that could be investigated.


For reference: my ftplugin scripts only set some options and mappings;
there's no magic with "if ... is loaded" and similar, so they should
simply be used.


A strace showed this:
        open("/tmp/Slimv.REPL.lisp", O_RDONLY) = 6
        open("/home/marek/.vim/ftplugin/lisp/",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
        open("/home/marek/.vim/ftplugin/lisp/slimv-lisp.vim", O_RDONLY) = 6
        open("/usr/share/vim/vim73/ftplugin/lisp.vim", O_RDONLY) = 6
        open("/home/marek/.vim/after/ftplugin/lisp.vim", O_RDONLY) = 6
        open("/usr/share/vim/vim73/indent/lisp.vim", O_RDONLY) = 6
        open("/usr/share/vim/vim73/syntax/lisp.vim", O_RDONLY) = 6
        open("/usr/share/vim/vim73/syntax/lisp.vim", O_RDONLY) = 10
        open("/usr/share/vim/vim73/syntax/lisp.vim", O_RDONLY) = 10


So maybe I should simply argue that the "iskeyword" option must not be
in the syntax file, but instead should be in ftplugin.


First I thought that I should report a bug ... but maybe this
should be discussed first.

So ... is this Right? Should that be fixed? In which way?


Regards,

Phil


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!




More information about the pkg-vim-maintainers mailing list