I'm looking for a clone of ColorHelper for Emacs. I know about rainbow-mode. But instead of coloring the color's background. I'm looking for a package that would add a little box next to it, just like ColorHelper does it. I know I'm picky here, just wondering if such package exists or how difficult it would be to write it.
Related
At work, I have to jump into old mysql_query procedural website build higgledy-piggledy (some var are camelCased AND underscored, no indent code, page are build in table ...)
Anyway, usually I m using ST2, but here I can't. So to search my line code, I use dreamweaver to click on the screen preview and the cursor drop on the code line I want.
I do not like and I don't know dreamweaver. But as code is UNREADABLE, that is the only way I have to work.(My boss doesn't want rebuild theses sites).
Here is my question, does anybody know for ST2 a way (or a plugin) to split screen and click on screen preview to go right to the code line just like dreamweaver preview does ?
Regards.
Answer is simple, you will never find something like that.
Try here - http://webdesign.about.com/od/windowshtmleditors/tp/windows-wysiwyg-editors.htm
WYSWIG html editors.
Try Sublime CodeIntel, as well says this page:
...This plugin brings a little of IDE functionality into ST2. This plugin reads all your code and is able to code-complete, jump into
definitions and function call tooltips. Although sometimes looks a
little buggy, it’s still worth having it around. It’s a huge time
saver, especially when you are dealing with other’s people code.
If is suitable for that project you can remove the package later.
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.
I'm trying figure out how far I can go in fine-tuning the appearance of my Vim GUI. I'm using MacVim 7.3 and what I'd like to do is change the padding, text-alignment and border color of the line numbers.
I know there are some standard configuration parameters in the highlight command, particularly the gui group, but what if I want something beyond what's offered there? For example, a right border as opposed to underline. Is this possible?
It could be that it's simply not worth the trouble, but I'd like to at least know what the initial steps would be so I can make the call. (Even if it's just :help adding-border-to-line-numbers and I happened to miss it).
Thanks.
No, unless you intend to go into vim's source and hack it from there, changing line numbers appearance beyond what highlighting offers is not possible.
However, I do remember a few patches that dealt with something of a kind, so you might want to check the archives. You will still need to recompile vim doing that (if you manage to find a patch that does that).
I've switched from Textmate to Vim for about a year ago, so I've been immersed in books, screencasts and forums about Vim, and how people customize their .vimrc's.
I'm not a beginner anymore, however by no means I'm an advanced or intermediate user, I'm in the stage when I feel confortable using Vim in an efficient way.
Here is the question:
How can I get the vim statusbar to show me which Javascript library/framework is in use? Obviously the most popular like jQuery, Prototype, YUI2/3, Dojo, etc.
Maybe it is just a trivial thing and some people may think that by looking at the code, you may be able to find which library is being used. But for the same reason, people has git, hg, rvm, tags, cwd showing in their statusline, I want to see that in my statusline.
Basically, you need to write a vim script to do this and then put that in your .vimrc file.
If you have a vim containing Python or Ruby or PERL, then this is pretty straighforward, just look for a script tag with src=someframework and set the statusline.
But if you want a more general solution then you would need to learn the vim scripting language which is a bit of a chore. My suggestion would be to get a binary that includes a proper scripting language and roll your own solution.