Intellisense and VIM

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Intellisense and VIM

Post by Solar »

Aphex wrote:I use MSVC++ 2010, just for it's features like intellisense...
One day I've got to write up that tutorial on how you can have Intellisense-like functionality in VIM... (yes, you can, and I wouldn't be the console warrior I am if you couldn't. ;-) )
Every good solution is obvious once you've found it.
quok
Member
Member
Posts: 490
Joined: Wed Oct 18, 2006 10:43 pm
Location: Kansas City, KS, USA

Re: Re:CPU Identification For OS Developers...

Post by quok »

Solar wrote:
Aphex wrote:I use MSVC++ 2010, just for it's features like intellisense...
One day I've got to write up that tutorial on how you can have Intellisense-like functionality in VIM... (yes, you can, and I wouldn't be the console warrior I am if you couldn't. ;-) )
Finally, a tutorial I'd really love to see :)
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: Re:CPU Identification For OS Developers...

Post by eddyb »

quok wrote:
Solar wrote:
Aphex wrote:I use MSVC++ 2010, just for it's features like intellisense...
One day I've got to write up that tutorial on how you can have Intellisense-like functionality in VIM... (yes, you can, and I wouldn't be the console warrior I am if you couldn't. ;-) )
Finally, a tutorial I'd really love to see :)
*Spoiler*: Something as generic as KatePart can do basic completion and KDevelop4 can beat MSV*'s Intellisense at any time (you can browse documentation about a class just by holding your cursor above it - like that would be very strange and magical :roll: ).

EDIT: oh, forgot to say it's enabled by default.
Yargh
Member
Member
Posts: 56
Joined: Sat Jun 12, 2010 9:04 pm
Location: Somewhere else.

Re: CPU Identification For OS Developers...

Post by Yargh »

vim autocompletion
Here are some autocompletion commands for Vim (7.0+):

Ctrl-x Ctrl-d: Definition Completion
Ctrl-x Ctrl-f: Filename Completion
Ctrl-x Ctrl-i: Path Pattern Completion
Ctrl-x Ctrl-l: Whole Line Completion
Ctrl-x Ctrl-n, or Ctrl-p: Keyword completion
Ctrl-x Ctrl-p: Local keyword completion
Ctrl-x Ctrl-v: Command line completion

Hope this might have helped someone
Wait... What?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: CPU Identification For OS Developers...

Post by JamesM »

Yargh wrote:
vim autocompletion
Here are some autocompletion commands for Vim (7.0+):

Ctrl-x Ctrl-d: Definition Completion
Ctrl-x Ctrl-f: Filename Completion
Ctrl-x Ctrl-i: Path Pattern Completion
Ctrl-x Ctrl-l: Whole Line Completion
Ctrl-x Ctrl-n, or Ctrl-p: Keyword completion
Ctrl-x Ctrl-p: Local keyword completion
Ctrl-x Ctrl-v: Command line completion

Hope this might have helped someone
I thought Vim was a modal editor? Those look suspiciously like emacs commands...


* steps back and fans flames while eating popcorn.
branan
Posts: 5
Joined: Sun Apr 24, 2011 6:05 pm

Re: Re:CPU Identification For OS Developers...

Post by branan »

eddyb wrote:*Spoiler*: Something as generic as KatePart can do basic completion and KDevelop4 can beat MSV*'s Intellisense at any time (you can browse documentation about a class just by holding your cursor above it - like that would be very strange and magical :roll: ).

EDIT: oh, forgot to say it's enabled by default.
I use KDevelop whenever I can - including for my kernel work. I should push my code to github, if only so people can see the CMake magic I had to do to get that working.
branan
Posts: 5
Joined: Sun Apr 24, 2011 6:05 pm

Re: Intellisense and VIM

Post by branan »

berkus wrote:
Branan wrote:I use KDevelop whenever I can - including for my kernel work. I should push my code to github, if only so people can see the CMake magic I had to do to get that working.
Is Kdevelop4 stable yet? Last time I tried it, it crashed left and right on a medium-sized project (LLVM).
The old common crash with race-conditions in the autocomplete code has been fixed. I haven't had any issues with it since 4.1, on projects up to ~4500 files. 4.2 is definitely stable now - I don't think I've had a crash since I upgraded to that.
eddyb
Member
Member
Posts: 248
Joined: Fri Aug 01, 2008 7:52 am

Re: Intellisense and VIM

Post by eddyb »

Branan wrote:
berkus wrote:
Branan wrote:I use KDevelop whenever I can - including for my kernel work. I should push my code to github, if only so people can see the CMake magic I had to do to get that working.
Is Kdevelop4 stable yet? Last time I tried it, it crashed left and right on a medium-sized project (LLVM).
The old common crash with race-conditions in the autocomplete code has been fixed. I haven't had any issues with it since 4.1, on projects up to ~4500 files. 4.2 is definitely stable now - I don't think I've had a crash since I upgraded to that.
Works fine for me. I also like the file-set feature... I can change between two sets of 100 files open in a second :). And in a few seconds you can create a project of out existing CMake/Makefile/others(yeah, you could set it to build even using a bash script. I use that feature for scons mainly).

Ctrl+i Ctrl+f Ctrl+_ Ctrl+i Ctrl+t Ctrl+_ Ctrl+w Ctrl+o Ctrl+r Ctrl+k Ctrl+s Ctrl+_ Ctrl+f Ctrl+o Ctrl+r Ctrl+_ Ctrl+m Ctrl+e Ctrl+, Ctrl+_ Ctrl+w Ctrl+h Ctrl+y Ctrl+_ Ctrl+u Ctrl+s Ctrl+e Ctrl+_ Ctrl+C Ctrl+t Ctrl+r Ctrl+l Ctrl++ Ctrl+X Ctrl+Y Ctrl+Z Ctrl+_ Ctrl+s Ctrl+t Ctrl+u Ctrl+f Ctrl+f Ctrl+?
Post Reply