You are not logged in.
Pages: 1
I usually use Kate to code. I usually work on relatively small programming projects (around 30 .cpp and .h files) with it.
The good thing about Kate is, you can save this as sessions, so you can just launch Kate, load your session, and start working on your project without having to open the 30 files.
Kate is however completely trashed by its developers since KDE 4: the search function isn't really usable for serious programming projects anymore because you have to retype your search term in each separate file you want to search in and there's no "whole word" option anymore, it doesn't remember anymore that you don't want static word wrap, and more negative decisions they made for KDE 4.
Now someone told me that gvim is popular for programming. However he didn't really know how to open multiple files with it. I tried it and there's two menu options: open file, and open file in new tab. However, both options only allow selecting 1 file in the file dialog.
So to open the 30 files of my programming project, I'd have to press 30 times "open file in new tab" and select a file.
That's really not a good way to open a programming project
How can gvim be used in a way where you can load complete programming projects, with many files, and with a good overview of those files? (30 tabs isn't really a good overview, a list or tree is better)
Last edited by aardwolf (2008-10-13 10:18:36)
Offline
Perhaps you could use an IDE?
Offline
The good thing about Kate is, you can save this as sessions.
(g)vim also supports sessions.
How can gvim be used in a way where you can load complete programming projects, with many files
Use ":args *.cpp *.h" to open all the .cpp and .h files in the current working directory and then ":tab ball" to open the buffers in tabs. Generally I just open a couple of files and use gf (go to file) and Ctrl-] (go to symbol's definition) to jump to additional files as needed.
a list or tree is better
See :Explore and :Tlist (requires vim-taglist from the extra repo).
Offline
I usually use:
arael[~]$gvim -p *.html *.js *.php *.whatelse
to open many files in tabs.
But I don't know if this is what you mean. There are also project plugins for vim but I found them not so comfortable to use.
Offline
Use ":args *.cpp *.h" to open all the .cpp and .h files in the current working directory and then ":tab ball" to open the buffers in tabs. Generally I just open a couple of files and use gf (go to file) and Ctrl-] (go to symbol's definition) to jump to additional files as needed.
Wow!! Thank you for the tip. Didn't know about :tab ball. Very useful.
Offline
Well you should try some plugins, for example: tabbar/minibufexplorer, sessions, project, NERD_tree. Some of them you can find in AUR, the others you can download from www.vim.org.
I personally use tabbar instead of tabs.
Offline
Maybe this will cheer you up
http://hamberg.no/erlend/2008/06/27/gso … ate-kpart/
And I recommend adding a KDE bug report for the problems you're having with the now-crippled find.
Good luck!
Offline
Perhaps you could use an IDE?
KDevelop is good for huge projects! But mine is only midsized. KDevelop is overkill for it, I don't like using it for that.
Offline
Have you tried Geany ?
It's great and it's in the repos. Just a "pacman -Sy geany" away.
Last edited by moljac024 (2008-10-13 15:51:19)
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Scite is also very good.
Offline
How about Acme? You can dump your environment to a file, then load it later.
Offline
Acme is my favorite programming environment.
For people used to more 'conventional' editors it can be hard to get used to, but if you get over your prejudices it starts to grow on you, specially the mouse-chording is awesome and once you get the handle of it you will miss it in every other app. (Of course it also means that to take full advantage of acme you need a proper three button mouse, which sometimes can be hard to find.)
Offline
For using vim as a IDE I think that the following plugins are "must haves":
"NERDtree" - In my opinion the best file-explorer
"a" - A plugin for alternating between .h and it's corresponding .c or .cpp-file
"ctags" - for intellisense and much more.
With these (g)Vim is very usable even for big projects.
Offline
Don't forget :split and :vsplit
Offline
or ^W s and ^W v
:h ^W
Offline
Now someone told me that gvim is popular for programming. However he didn't really know how to open multiple files with it. I tried it and there's two menu options: open file, and open file in new tab. However, both options only allow selecting 1 file in the file dialog.
So to open the 30 files of my programming project, I'd have to press 30 times "open file in new tab" and select a file.
That's really not a good way to open a programming project
I agree with all of the advice above, and suggest you look into/practice working with buffers in vim. It's really easy to open several files, split the window in any way that suites you, and cycle through all of the open files using :bn and other buffer commands. in my experience (using emacs, geany, eclipse, visual studio, and others) vim seems to be the best all around way to manage code or any text file. of course this is just my opinion and I urge you to try something that works for what you need. there are no shortage of options out there
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Then again, I never liked how vim handled buffers and multiple files, but like how emacs does it.
You should try everything you could think of and see what works best for you.
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
Pages: 1