I've been using Vim for quite a while now, and while the code-completion (omni, dictionary, etc) works fine I've been missing one thing.
Syntax-hinting, so basically I'd like to know what arguments a function accepts, rather than look it up online I'd like to have it somewhere in Vim, preferably in a box above the current line or something.
Is there any way to achieve this, I mostly work with PHP, Python and C++ so I need it for those languages.
Edit: I do already have ctags installed, but from what I could tell it didn't provide syntax-hinting, tried it with PHP standard functions, dunno if I've overlooked something.
There's also the option of using snipMate and entering all standard library functions, but that's a lot of work, would've imagined that someone already did that (And yes there's something like ultiSnips that does but it's inferior to snipMate)
Syntax highlighting is on for vim editor by default. The content of login.sh will be displayed with the following format when the syntax highlighting is on. After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting.
If you are wondering where you can find these syntax highlighting files, you can check the following directory. $ ls /usr/share/vim/vim73/syntax ... config. vim idl.
You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.
From the way it sounds I think you are looking for set completeopt+=preview
. More information can be found at :help completeopt
.
I think the plugin echofunc does that.
When you are writing code, after you press (
the function
prototype is displayed in the statusbar.
Check also the plugin srcexpl.vim which I think does something similar (I don't use it much though).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With