Looks nice: http://www.youtube.com/watch?v=EtClcwRgJxU. How else can it be done?
If you are talking about X11, you can write a Composite Manager to achieve this. Your composite manager would probably want to realize these effects with OpenGL, for that the texture_from_pixmap plays an important rule.
You can start from these two keywords. It may be an option to not write the whole thing yourself but write a plugin to Compiz instead. Another keyword :)
Related
I'm going to make a live presentation showing vim capabilities. It's essential to show the audience command keys that I press. I know I can use showcmd, but I find its output to small and to hard to notice to use it in live demo. Is there any way to make it easier to notice? It could be something similar to command keys shown in Railscasts (for instance in this video, 1:11). Do you know anything like that?
For X11, there is key mon. I'm sure there are similar tools for other systems. Otherwise, you could use some sort of virtual keyboard which also shows keypresses.
Here's a recent vimcast article about Drew Neil tackling the same issue -
Vimprint Source, Article
Relevant accompanying talk -
Video, Slides
There is also Screenkey, inspired from key-mon.
Is there a vim plugin that allows you to place the cursor over a function and have a plugin run a script that searchs a tag or some other entity for where that function is defined. Or perhaps it provides a list of places where that function is defined? Specifically I am looking for a C/C++ based plugin.
You want ctags, which supports many, many languages beyond C. It will show you the definition of the function or variable under the cursor.
cscope integrates nicely with Vim to do exactly that and more. Where a function is defined, where it is called etc. You may also need a tags with cscope.
The vim website hosts a lot of plugins, you might really want to look there. Also, you didn't really specify what languages you wanted this to apply to, so this is a very broad question (hard to find a real answer to this).
An alternative to your question is, instead of putting the lookup capability into vim, why not put in into something else that already has it? Why not eclipse? There's an eclipse plugin called vrapper that gives vim like functionality within eclipse. You can then use eclipse to do the referencing and lookup that you want to do, because it already has this supported for many languages.
Edit: wouldn't this solve it?
I think you wanted to know what it was that you had to do to be able to solve the problem, as though you knew the feature was there but not how to use it. That link explains it. If that is the solution to your problem, please remember to vote & check XD
I'm looking to beef up the Markdown capabilities of vim a bit (https://github.com/plasticboy/vim-markdown), namely to add some support for auto-creating the next list item while indenting everything properly.
My question is, what vim mechanism is best to implement this in? Is this a task for the highlighting file? Should I cobble together something in SnipMate? I'm glad to do any homework necessary, but I'd like to know where's the best place to start.
Based on a quick snoop through the help, formatoptions and formatlistpat and the related fo-table look like good places to start. I'd start by reading those and then finding existing plugins that use them and figure out how they work.
Is there a way to connect 2 elements in svg to achieve a "flow chart" like diagram? I have 2 boxes, an arrow between them, and I would like that if I drag one box, the arrow stays connected to the box.
I've founded that there is a spec for this feature in SVG 1.1 but is far from being completed.
I can't find any piece of code or library that does it (and I think it isn't a rare use case), and I would like to be sure that there isn't a proven way of doing it before I start making it myself.
Thanks!
You may be interested in the Dracula Graph Library which uses Raphael and does exactly what you mean:
http://www.graphdracula.net/
Update: I haven't used jquery-svg before, but I put something small together that may get you going: http://jsfiddle.net/7vJmy/2/
It takes advantage of jquery-ui draggable, but I suspect there's a nicer way to do it using the jquery.svganim.js package that's include with the library - anyway, this is all I have time for now.
Also, if you can in the future, include things like library restrictions in the question so you can get more specific answers from the get go! :) Hope that helps.
Programming with GTK+ is annoying and physically painful because of the sheer amount of reaching out for the "_" key. For anyone with actual GTK+ experience, have you found a work around for this?. The platform is linux based.
Use an editor with code completion support. Eclipse, Vim, and Emacs can all do this.
http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard
Either use autocompletion, or reassign your underscore key to another, more reachable one.
If you just wish to use the api of gtk+ - then try vala, pygtk or binding in language of your preference.
If you wish to modify core then use autocomplete,macros.