Saturday, October 26, 2013

Re: Vim on an embedded system

On 2013-10-27 02:53, meino.cramer@gmx.de wrote:
> The lua code I am editing currently has a length of 200 lines (12k).

Very reasonable. I just wanted to make sure you weren't editing
pathological-sized code.

> There is a difference between for example Lua code and a plain text
> file -- editing lua code is slower.

That's good--that means that speed is available, we just need to
figure out what the difference is.

> Vim started with -u NONE also speeds up things -- but as I
> mentioned in my first mail...I really dont want to strip down vim
> to a lightning fast .... ed ;)
>
> Plugins are one of the outstanding features of vim ( the "im" in
> "vim")

Well, even stock Vim with no plugins is pretty powerful: it's how I
usually use it, which certainly "im"proves on old vi (an offshoot
of which is stock on my BSD boxes as "nvi"). I'd interpreted your
"don't want to strip off features" in the context of your ":version"
output, and figured you were talking about rebuilding as vim-tiny or
some such recompilation.

> "syntax off" and "syntax" do not make much a difference.

Nice to know, even if it's just one thing it's *not*. :-)

> The drive is a fast SSD-card.
> I dont want to make vim "Noswap" ... ;)

I listed those two together (drive + noswap) in the event you were
operating on some slow/laggy drive such as a network share.
Disabling swap or moving it to a fast drive might help in that case.
But since it's an SSD card, it's likely to be moot.


So at this point, I'd try issuing

:scriptnames

when you're in a slow/laggy lua file and report back what all is
loaded. Perhaps comparing the output with ":scriptnames" output
when editing a non-Lua file. Since it's fast with other files and
with editing lua files under "-u NONE", some poorly-behaved script is
almost certainly the troublemaker. You just have to find which.

-tim




--
--
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/groups/opt_out.

No comments:

Post a Comment