Tuesday, December 24, 2013

Re: Vim source code

Ah, so you want to highlight functions and types as you code.


> To my knowledge this is not possible in vim unless the source code is modified.
>
>

There, you'd be very incorrect.

Try this plugin: http://www.vim.org/scripts/script.php?script_id=3114

My interest was primarily in editing the source code rather than in scripts, for performance and efficiency reason (but I admit I was not clear about this). The general problem with scripts is of course the responsiveness of highlighting and/or slowing down of vim with heavy resource allocation.
For example, as the author of easytags.vim points out,
(I quote from http://peterodding.com/code/vim/easytags/)
"... the plug-in automatically generates and highlights tags when you stop typing for a few seconds ... it tries hard to do the least amount of work possible in this break but it might still interrupt your workflow ... ". And if you choose to enable it always, "... Every time you edit a file in Vim, the plug-in will first run Exuberant Ctags and then highlight the tags, and this slows Vim down quite a lot. I have some ideas on how to improve this latency by running Exuberant Ctags in the background so stay tuned! ...".
In my view the information needed is yet inside Vim, the problem is identify in which data
structures and link it in the proper way.
Thanks a lot anyway for the suggestion
 

And next time please bottom-post on this list. http://en.wikipedia.org/wiki/Bottom_post#Bottom-posting

Thank you very much for pointing out this. I admit this is my first entry ever in this mailing list.
Well, in reality in any mailing list! Hope it's ok now.
Thanks again

--
--
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