Slashdot Mirror


The Union of Vim with KDE

Philippe Fremy writes "Thomas Capricelli, Mickael Marchand and me are pleased to present the first ever stable version of KVim, finally bringing "the power of VIM with KDE's friendliness". This release contains a port of the standalone editor Vim 6.0 to Qt/KDE (2 and 3) and a KDE KPart Component. The component can currently embed either of GVim or KVim in Konqueror (screenshots), with out-of-process embedding. Further work is required before proper support for KDevelop, KMail and Kate is available, but things are moving forward." As everyone knows, Vim is the best (only?) text editor, and KDE is the best (only?) desktop system. Heh.

109 of 287 comments (clear)

  1. Woohoo! by larien · · Score: 5, Interesting
    Never again will I end up getting errors when I hit escape while editting an email message...:)

    On a serious note, it shows that we can do things under linux that happen in Windows; the OLE model in Windows has allowed things like this for years, and it's about time we had a similar model in the *nix world.

    1. Re:Woohoo! by larien · · Score: 2
      Note I said "similar" :) Hopefully, we get all the good parts (embedded components) without the bad parts (lockups, corruption etc).

      OLE (or a similar technology) in itself is a great idea in theory, but if it's badly implemented then you can get problems. Hopefully, the KDE implementation is good enough to avoid these pitfalls.

    2. Re:Woohoo! by j09824 · · Score: 2, Insightful
      On a serious note, it shows that we can do things under linux that happen in Windows; the OLE model in Windows has allowed things like this for years, and it's about time we had a similar model in the *nix world.

      I find it absolutely fascinating that people think that the UNIX world lacks features found in Windows because, well, because of what? Do you seriously believe that people didn't have the resources to create this for UNIX?

      The fact is that OLE (and its successors) are unreliable kludges. They grew out of some hacks trying to make Office components talk to one another, for which they were sort-of OK. But when applied to arbitrary applications, the GUI merging and process model they give you result in lousy user interfaces and unreliable applications. UNIX didn't get them because UNIX users didn't see a pressing need for them; other mechanisms work better.

      Even if you think that what OLE was trying to do is actually useful, OLE and its successors are about the worst way of implementing it: unportable, low-level hacks that are difficult to version and don't protect programs from one another. OLE is really mainly an attempt to give C++ programs at least a little bit of what systems like Smalltalk and Java give you for free. And, surprise, Microsoft finally caught on and replaced the whole OLE/COM/ActiveX mess with C#/CLR (of course, there is some backwards compatibility and they use the OLE/COM terminology to explain the new functionality in C#/CLR).

    3. Re:Woohoo! by blakestah · · Score: 2

      Precisely - I'm still waiting for a real embbedded (both qt and gtk) vim component - My evolution, kmail and a bunch of others desire for it ;).

      I don't get it. I use mutt to read mail, and it is quite happy to embed vim for my usage in a console window.

      I think the fancy trick used is called a pipe, but I am not sure. But it seems any editor that can run in a console can use the same trick, so maybe OLEs for linux are pretty advanced already ?

    4. Re:Woohoo! by kubrick · · Score: 2

      Even if you think that what OLE was trying to do is actually useful, OLE and its successors are about the worst way of implementing it: unportable, low-level hacks that are difficult to version and don't protect programs from one another.

      Sounds a bit like the WWW when compared to Ted Nelson's Xanadu. And look which one ended up winning. :/

      It's often the quick hacks that sneak in (or are forced upon people :); there was a recent Slashdot story about yEnc, which people perceived to be a similar (bad) solution to 8-bit binary encoding for Usenet.

      --
      deus does not exist but if he does
    5. Re:Woohoo! by Thomas+Charron · · Score: 2

      It is obviouse from this post that you know NOTHING about OLE, COM, ActiveX, etc. PLEASE get a clue to backup your opinions, becouse this is pure and utter drivel.

      Lousy user interfaces are the fault of the engineer, not of the component technology used to allow embedding..

      And as far as COM being used to give C++ capability, your ignorance shines thru. COM uses 'C' functions. COM is not even away of what the heck a C++ object is. Thats why MFC, ATL, etc, have to wrap it for the less technical folks..

      Get your facts strait..

      --
      -- I'm the root of all that's evil, but you can call me cookie..
    6. Re:Woohoo! by Cally · · Score: 2

      win98 isn't even supported any more.

      BTW, just wanted to make the point I'm a Free software supported, this comment posted via Mozilla on Linux. But it annoys me to see supposed free/open advocates knocking the quality of Microsoft code; there are some duff marketing driven design decisions in there (Outlook... need I say more?) , and win9x was a complete crock, but PLEASE - do yourselves a favour - DON'T underestimate the quality of the oppostion, or MS users who dabble with Linux for a bit will say "Hey! Gnome crashed, I thought Unix wasn't supposed to ever do that! Huh, all the Linux hype must be BS" and go back to Redmond-land.

      --
      "None are more hopelessly enslaved than those who falsely believe they are free." -- Goethe
  2. Nice, serious, but no thanks by MadFarmAnimalz · · Score: 4, Insightful

    Defies the whole persona of vim. vim loses what makes it useful when you stick it in a window and add menus and buttons.

    vim is all about those wierd keystrokes you learn that funnily enough grow on you and multiply your productivity.

    While I'm sure you can still do this with kvim, I don't see what would get a real vim user to use kvim rather than just vim in konsole.

    Nice idea, like I said, but I don't expect too much takeup.

    --
    Blearf. Blearf, I say.
    1. Re:Nice, serious, but no thanks by smaughster · · Score: 2

      You are right that one of the powerfull features of vim is that everything can be done from the console, which multiplies your productivity. Having added window menus and buttons however decreases the initial learning curve. So starting vim users will find it quite easy to do simple things in Kvim, but they will use the console mode more and more once they become experienced users until they become "real vim users".

      --
      I intend to live forever, so far so good.
    2. Re:Nice, serious, but no thanks by Rentar · · Score: 3, Informative
      vim is all about those wierd keystrokes you learn that funnily enough grow on you and multiply your productivity.

      Of course, but the real beauty of KVim is the KPart. You can use the kvim kpart to edit any textfile in konqueror without opening another terminal and/or window. This is great for hybrid users who love the CLI/Shell but use konqueror or any other file manager every now and then. I usually use graphical file managers primarily for browsing (the local filesystem, not the web) and not for doing real work (like moving files around and editing text files). The KVim kpart might change this a bit.

    3. Re:Nice, serious, but no thanks by WowTIP · · Score: 2

      I am not so sure about that. Yes, power users will always find the console mode commands, but most users that start using KVim probably will continue using the menu commands until... well, forever. I know several people that has been using windows, word and other ms products for years, who still go into the menues for cut, copy and paste.

      --

      --

      "I'm surfin the dead zone
      In the twilight, unknown"
    4. Re:Nice, serious, but no thanks by Stuart+Park · · Score: 2, Interesting

      I have always been a serious vim fan, and have used unix and linux for many years.. however, the menus/mouse/buttons/etc in "gvim" (and I assume "kvim" will be similar) makes many functions significantly easier. Cut-and-paste is quick with a mouse, changing the size of windows is fast, and the scrollbar is very useful.
      If I want to quickly write a small file, plain vim is best - but for lengthy editing sessions, gvim/kvim is the best!

    5. Re:Nice, serious, but no thanks by Rhone · · Score: 2, Insightful

      vim is all about those wierd keystrokes you learn that funnily enough grow on you and multiply your productivity.

      Well yeah, that's the point. With the kvim kpart (when it's more developed and working with more than just konqueror), people will be able to use their weird little keystrokes in just about any KDE program that uses an editor.

      In particular, I bet there are many programmers out there who don't want to edit in anything other than vim but would like to use kdevelop.

    6. Re:Nice, serious, but no thanks by flossie · · Score: 3, Insightful
      Menus are a good way to learn what features a package has when you are learning to use it. It is generally a lot quicker to browse the menu and see what happens than to read through pages and pages of documentation - especially when you haven't yet decided if the tool is the right one for you.

      The menubar on emacs (for instance) is a great way of introducing emacs to complete novices. The smart ones usually find (or redefine) the hotkeys quickly enough.

    7. Re:Nice, serious, but no thanks by popeyethesailor · · Score: 2

      If you are using menus/mouse/buttons to do normal editing operations(cut&paste,scrolling etc), you dont need Vim.
      OTOH,if you are indeed keen on using Vim, there are plenty of tricks in it that can make you keep the mouse permanently away.

    8. Re:Nice, serious, but no thanks by Psiren · · Score: 3, Interesting

      Indeed. When I started using Emacs about 7 years ago, I found the keystrokes bizzare. C-x C-c to quit? Eh? Whats wrong with C-q? ;)

      Now, its just second nature, so much so that I'm always typing it in other editors and getting annoyed when it doesn't work. I found a lot of interesting features poking through the menus. Another nice thing is if you do M-x something, and its bound to a key, Emacs will tell you. If you do it often enough you'll get to remember that keystroke and start using it more and more. My favourite is completion (M-/). I expect that accounts for up to half my keystrokes ;)

    9. Re:Nice, serious, but no thanks by skt · · Score: 2

      yeah you're right. An editor like VIM inside of an application with menus like mutt isn't usefull at all and lowers productivity.

    10. Re:Nice, serious, but no thanks by reynaert · · Score: 5, Informative
      Defies the whole persona of vim. vim loses what makes it useful when you stick it in a window and add menus and buttons.

      You'd better reread Vim's design goals. From the documentation:

      Vim is not a shell or an Operating System. You will not be able to run a shell inside Vim or use it to control a debugger. This should work the other way around: Use Vim as a component from a shell or in an IDE. A satirical way to say this: "Unlike Emacs, Vim does not attempt to include everything but the kitchen sink, but some people say that you can clean one with it. ;-)"
      Vim is designed to be embedded in other applications. An example of this is the integration with Sun Visual Workshop, support for which is included in the official version.
    11. Re:Nice, serious, but no thanks by SkyLeach · · Score: 2

      Those types of people abhore using anything without menus in the first place, so it's still a good choice to add menus to Vim. The thing is, gVim already does that.

      I started using Vim some time ago, and it's the very first thing I install on any machine if I'll be doing much work on it and if it's not already there. .gvimrc and .vimrc are part of my port-a-persona that I carry from machine to machine. If it weren't for the menus on the windows port of gvim I probably wouldn't have been able to learn the commands quickly enough not to loose interest.

      $0.02

      --
      My $0.02 will always be worth more than your â0.02, so :-p
    12. Re:Nice, serious, but no thanks by archen · · Score: 2, Funny

      Menus will not be neccesary for helping people learn Vim once Vigor is fully integrated. Then we can all beg for redemption, and swear we'll never again mess with the text console goodness that is Vi.

    13. Re:Nice, serious, but no thanks by Florian+Weimer · · Score: 2

      Defies the whole persona of vim. vim loses what makes it useful when
      you stick it in a window and add menus and buttons.


      I'm not so sure. I think it would be great if you could add the contents
      of feedback forms using vi in your favorite web browser (it's already
      possible if you use w3m, for example, or W3 using viper, but some people
      prefer graphical browsers at a decent speed).

    14. Re:Nice, serious, but no thanks by Billly+Gates · · Score: 2
      One word. Fonts! Font support is getting alot better in X and Kde. I can also read code easier from a white background rather then a black. I believe an editor like you said should just edit text. However in today's world you need a documentation viewer, debugger, code designer if your on a project at work, and other utilities to develop code. Visual studio has had these things for years and kdevelop has all of these except a good built in editor.



      The unix way has always been to use one program for one task and connect another program for another. I believe kdevelop which manages your projects and links konqueror for the doc browser, kdebugger for the debugger, and kvim which will replace kwrite for the editor is the best way to go. Ole has had this for years. I also assume that the menu bars will be removed when launched within Kdevelop like kwrite is so there is no worry about lost monitor space. I use vim within Visual C++ on my windows2k workstation at home. Its great to use the commands and still have the full functionality of a whole ide. This is probably why kvim was written and not for just cute little menu bars and icons. If you don't like it you can always use the old vim from a terminal.

    15. Re:Nice, serious, but no thanks by Paladin128 · · Score: 3, Informative

      Actually, the real benefit is using KVim embedded in other KDE applications. If you REALLY like VI's input method, and want to use it in your mailer, IDE, etc., that's where KVim comes in.

      Now if only there was a KEmacs :)

      --
      Lex orandi, lex credendi.
    16. Re:Nice, serious, but no thanks by Enahs · · Score: 2

      I'd like to add that GVim did it first, and people didn't really complain too much about it. I guess it's okay if the front end is GTK+. ;-D

      --
      Stating on Slashdot that I like cheese since 1997.
    17. Re:Nice, serious, but no thanks by civilizedINTENSITY · · Score: 2

      You miss the concept. Its not to replace vim. Its to insert vim into all those little places where text entry occurs. Wouldn't it be cool if my browser gave me vim functionality in this little Comment Box?

  3. Re:Flamewar attempt by x0n · · Score: 2, Insightful

    If this is a "blatant attempt" to start a flamewar, then you my friend, are guilty of putting the first match to the kindling.

    You could have just ignored it ;)

    --

    PGP KeyId: 0x08D63965
  4. Re:Flamewar attempt by glwtta · · Score: 2

    I kinda thought it was a tongue in cheek joke... no need to get your shorts in a bunch.

    --
    sic transit gloria mundi
  5. Re:Flamewar attempt by nitehorse · · Score: 2

    Take a closer look. CmdrTaco himself added that comment, not the submitter of the article.

    And yes, we would dance around a camp fire if GNOME announced that it shut down. Or... well, at least some of us would. And we know that at least a few of them would do the same if we ever gave up. :)

  6. april 1st by phrostie · · Score: 5, Funny

    this would have been a great april fools joke. Kvim could include an add on module called kflame that automaticaly generates flaming posts. this would force Gvim to release Gflame. these would be followed by Kextinguish and Gwiz. oh please let it end!

  7. Re:Flamewar attempt by Uller-RM · · Score: 4, Insightful

    Since it's not in italic, chances are that this was CT's comment, and not the original article writers.

    And while they wouldn't dance around a camp fire, the hate isn't exactly pretended either. KDE/Gnome has become one of the holy wars of computing: vi/emacs (go nano!!!), littleendian/bigendian, OOP, and many other venerable silly battles. It's actually an ideological battle - GNOME was started in the first place because KDE was based on Qt, which isn't GPL. Thus, the rush to create a GPL'd window/widget toolkit (GTK) and environment.

  8. Justice? by carm$y$ · · Score: 4, Funny

    Maybe Bill Gates, with his vi background, will consider using KDE in windows 2004... :)

    --
    -- No sig today
    1. Re:Justice? by Slynkie · · Score: 2

      Almost as cool, Vim can already be used as an editor for those of us who are forced to use MS Visual Studio in our daily lives:

      http://www.vim.org/doc/if_ole.txt

  9. Components are coming by Shillo · · Score: 3, Insightful

    Well, it's been a high time to get real components on UNIX. Considering that UNIX (and Linux) are all about small tools doing their jobs and integrating with each other, components are logical extension of pipes... Now I just wish I had the time to start a project - I'd probably write component browser/method invoker module for zsh. :)

    Anyway... kudos to VIM folks for getting this right.

    --

    --
    I refuse to use .sig
  10. Whatever next - KEmacs & GEmacs? by ukryule · · Score: 5, Interesting

    Ah! The acid test for KDE - can it make vi usable for non unix-gurus?

    Given that there is now a version of Vim for both Gnome & KDE, does it make sense for (X)Emacs to make the jump too? I know the origins of Xemacs are as much political as technical - but does it not make sense to try to branch off 2 versions of emacs into the 2 guis?

    I started out making a joke post, but the more I think of it, the cooler i think Kemacs would be ...

    1. Re:Whatever next - KEmacs & GEmacs? by pipacs · · Score: 4, Informative
      Given that there is now a version of Vim for both Gnome & KDE, does it make sense for (X)Emacs to make the jump too? I know the origins of Xemacs are as much political as technical - but does it not make sense to try to branch off 2 versions of emacs into the 2 guis?
      First steps: XEmacs on the GTK platform.
    2. Re:Whatever next - KEmacs & GEmacs? by __past__ · · Score: 2

      You shouldn't compare Emacs with vi in this regard - it is more like KDE/Gnome, in that it provides an integrated environment for, well, everything, so you would rather port vi to Emacs than Emacs to KDE. Of course, this has been done long ago. KVim is just one more function in KDE that has been present in Emacs for years

    3. Re:Whatever next - KEmacs & GEmacs? by zoward · · Score: 2

      Wouldn't it be called... KDEmacs ?

      --
      "Can't you see that everyone is buying station wagons?"
    4. Re:Whatever next - KEmacs & GEmacs? by extrasolar · · Score: 2

      What don't you have now with emacs that you would get with a KDE port?

    5. Re:Whatever next - KEmacs & GEmacs? by ari_j · · Score: 5, Funny

      You can't do this with Emacs. Emacs can't be inserted into any windowing system on any OS, because EMACS is it's own operating system.

    6. Re:Whatever next - KEmacs & GEmacs? by Salsaman · · Score: 2
      Well, you could give it a nice icon menu, tooltips, etc. It could also inherit things like background colour from the window manager. KEmacs would be sweet.

    7. Re:Whatever next - KEmacs & GEmacs? by nutshell42 · · Score: 2, Funny

      starting emacs-21.1 .....done
      loading linux.el .....

      --
      Don't think of it as a flame---it's more like an argument that does 3d6 fire damage
  11. Re:Erm... by sydneyfong · · Score: 4, Informative

    Vim is scriptable.
    You can implement almost ANY function in Vim provided that it can be invoked from a shell. And with the powerful shell of linux, you can almost add any kind of "tricks up its sleeve" to Vim easily.

    Remember the UNIX philosophy of everything being small and doing just its own job?

    --
    Don't quote me on this.
  12. Google Cache by bobdown2001 · · Score: 5, Informative

    Well it looks like we Slashdotted it already.

    As usual you can view using the trusty Google cache by clicking here.

    Yeah I know I know ....karma whore :0p

    --
    Why do today what you can put off until tomorrow?
  13. Re:Erm... by glwtta · · Score: 2

    I use it all the time, when I am logged in remotely somewhere and need to edit config files and the like; but yeah, I hardly see the point otherwise.

    --
    sic transit gloria mundi
  14. Re:Erm... by IamTheRealMike · · Score: 2

    I think you don't understand when vi is useful. I use it all the time for editing config files etc on the command line because it starts ... instantly. I hate it's wierd syntax etc and I'm getting to like Pico, but seriously, when you just want to make a quick mod to a text file, there's nothing better. Oh - and as for "Visual Studio.NET bombs the linux developer back into the stone age", bah humbug I say! I moved to Linux because developing software is much easier with it, with Windows unless you fork out hundreds of dollars for a does-everything IDE it's a nightmare to write even the simplest of programs! VS.NET doesn't bomb nothing

  15. :x Re:Nice, serious, but no thanks by leuk_he · · Score: 2

    :x saves you one key
    ZZ saves you two keys.

    always isomething to be learnt.
    ^ don't you hate those "i's" in your email. 8-)

    1. Re::x Re:Nice, serious, but no thanks by Pogue+Mahone · · Score: 3, Informative
      :x saves you one key
      ZZ saves you two keys.

      And both save you from touching the file if you didn't make any changes.

      --
      Every bloody emperor has his hand up history's skirt [Peter Hammill/VdGG]
  16. Re:Erm... by Matts · · Score: 2

    Well, my hope is that we can replace the editing component in kate - the KDE text editor. You see vim's editing component is highly optimised, and has excellent syntax highlighting. Whereas kate is not fast (compared with vim). So it would be really nice to be able to make this the editing component for kate, and have all of kate's nice keyboard controls (Yay for CUA), combined with vim's speed.

    --

    Matt. Want XML + Apache + Stylesheets? Get AxKit.
  17. Re:Erm... by big_hairy_mama · · Score: 5, Interesting

    First off, let me say that I actually use Emacs so I'm not (totally) just flaming.

    I used VI for years, but this is 2002, the year in which we can buy a tiny mobile phone which can be used to watch a movie on it or browse websites

    If I was typing on a mobile phone, I'd certainly want the automagical smart typing to allow me to type more than 1/2 word per minute. But here in 2002, computers still use keyboards, and on a keyboard I can type ~90 WPM without the help of "smart" editing.

    In fact, and I do know this for a fact, smart editing actually *slows* me down. Every time the computer doesn't do what I want it to do and I have to press "Control-Z" and undo all of its "smart" capitalization, punctuation, spelling, bold-ifying, paragraph-making mistakes, I *lose* productivity. That's why when I want to type a document in an office suite (pick your choice), I generally turn off almost all of the "smart" features. It's also why I don't use Word, not because it's M$, but because it tries to do everything I don't want it to, and the damn clippy won't go away.

    Granted, if you don't type 90 WPM, it might help to have it do some stuff for you. Even better (worse?), if you are like my grandma and don't know how to use the arrow keys or "Control-Z", some smart editing might make it faster to fix your little capitalization mistakes.

    And in response to the first part of your comment, as you know, most people who use VI, Emacs, or other "antiquated" editors spend most of their time writing code. What happens when the computer thinks it knows what you are trying to code? It guesses the name of your method call or variable incorrectly and you end up with big nasty bugs. Bugs that are worse than a simple human spelling error because the name is actually valid and the compiler doesn't catch it. I would throw a fit if my IDE tried to do anything more invasive than doing partial-autocomplete in my method names (which Emacs and VI both can do when configured properly, IIRC (depending on the language)).

    Not to mention that Emacs and VI are the only "real" editors that let me do *everything* without ever taking my hands off the keyboard. I remember a recent /. article that talked about whether there was really an advantage to this, but every time I have to reach 20cm over to the mouse I want to throw a book at the screen. Call me lazy... here ends the rant :)

  18. This post has been... by Kalidor · · Score: 4, Funny

    This post has been brought to you by the Letter K and the letter V, and the number 3.

    --

    Code softly but carry a big magnet.

    1. Re:This post has been... by leifw · · Score: 3, Funny
      This post has been brought to you by the Letter K and the letter V, and the number 3.
      Shouldn't that have been:
      This post has been brought to you by the letter K, the number 4, and the letter M?
    2. Re:This post has been... by On+Lawn · · Score: 2, Interesting

      I assume you meant

      the letter K, the number 6 (vi), and the letter M

  19. Matching #if ... #else ... #endif by Pogue+Mahone · · Score: 3, Interesting

    Does Vim support '%' on #if/#else/#endif yet? That's one of the things that stops me from switching from Elvis.

    --
    Every bloody emperor has his hand up history's skirt [Peter Hammill/VdGG]
    1. Re:Matching #if ... #else ... #endif by owenb · · Score: 3, Informative

      Yes, it does. Switch now!

  20. Re:Erm... by larien · · Score: 2

    Your last point is particularly good; on my keyboard, I can move, cut, copy, paste, edit etc while keeping my hands in the centre part of the keyboard (excepting the esc key on .uk keyboards). On other editors, you either have to use the mouse or reach over to get to the arrow keys, losing productivity. Non-vi users might be surprised at how quickly I can edit a document in vi using the centre block of keys.

  21. No, please don't! by Vic · · Score: 2

    I don't want to have to put up with people saying (GNU|X)/(K|G)/Emacs! :)

  22. Re:Erm... by anshil · · Score: 2, Informative

    What's the big deal? VI rocked back in the days when 80x24 amber/green monitors / terminals were the thing to use, but today editors which are SMART are way more productive, since they let the developer focus on the job that has to be done, instead of looking up information that should be available at the fingertips. Any editor without intellisense-like functionality is a waste of time. Seriously.


    Thats what I would call the windows way of thinking. My edtior of choice is the one beeing effektive, not the one with the most tricks in it's sleeve. Yes tricks are these things that make people ohhh and ahhh, when showing, but in a day-to-day live they hardly proove useful. vim keycodes and sequences - once you know them - are very very very effektive, I can edit files twice as fast as with i.e. visual things like visual studio. About code insight, I don't like it as it is. It doesn't show right either way, how can the editor know how the compiler really sees the file?

    --

    --
    Karma 50, and all I got was this lousy T-Shirt.
  23. Re:Flamewar attempt by Pogue+Mahone · · Score: 2
    Kindling - poo! It's Napalm!

    BTW:
    Writing a Haiku
    In seventeen syllables
    Is not very hard
    ;-)

    --
    Every bloody emperor has his hand up history's skirt [Peter Hammill/VdGG]
  24. Re:Motivation for this port? by zoward · · Score: 2

    USers who use KDE exclusively as their desktop may not even have installed all the GNOME libraries needed to run gvim, so now they'll be able to run a GUI version of vim. It seems like these days desktop linux users have both KDE and GNOME installed from the get-go, though.

    --
    "Can't you see that everyone is buying station wagons?"
  25. Why didn't Mr. Taco just say... by Rhinobird · · Score: 5, Funny

    Why didn't Mr. Taco just say "in the red corner, VI and KDE, in the blue corner EMACS and GNOME, this is the MOTHER of all flamewars! FIGHT!"

    --
    If Mr. Edison had thought smarter he wouldn't sweat as much. --Nikola Tesla
    1. Re:Why didn't Mr. Taco just say... by popeyethesailor · · Score: 2

      Gawddamn it, its Blue for VI and KDE. Dinn you know?

  26. Role reversal by Faux_Pseudo · · Score: 4, Interesting

    Lets look at this from the other side, the emacs side. With emacs you can have a browser in your editor. While you are at it you can have your shell and tetris and mail, news and and and. I am not here to expose the virtue of emacs but to instead ask why this took so long and what real bennies this will have. I can more than see the good of vi embeded with kdevelop but I would much rather use emacs as my IDE for its stablity reasons. Even if emacs was embeded in konq I would still rather use emacs by its self because konq has a habit of crashing on anything less that 128 meg of real memory. Why dont the vim developers work on makeing a vim with an IDE rather than having other work on embeding vim in other apps?

    Karma goes down by several points for unpopular oppinion.

    1. Re:Role reversal by lost_it · · Score: 2, Interesting
      Why dont the vim developers work on makeing a vim with an IDE rather than having other work on embeding vim in other apps?

      You've just hit on the big difference between vim mentality and emacs mentality. Vim users want something small and can be used anywhere. Emacs users want something that can do anything. It's a subtle difference, but important.

      So emacs people write other programs for emacs, while vim people write vim for other programs.

      Both methods have their advantages. Choose whichever one suits your needs best, or if you can manage to remember how to use both, then use both as you see fit.

  27. Re:Erm... by JanneM · · Score: 2

    Not to sound like a troll or anything, I used VI for years, but this is 2002, the year in which we can buy a tiny mobile phone which can be used to watch a movie on it or browse websites, so using an ascii based editor that hasn't any tricks up its sleeve besides coloring keywords is IMHO kidding yourself with irrelevant reasons like "the new stuff is not worth it, this is more productive" etc.

    OK, so maybe I'm missing something here, but exactly how will the ability to watch movies on my mobile help me edit my C or Perl code on a Linux machine?

    I use Gvim for pretty much all my editing needs; for me it's not a backup editor, but the editor of choice whenever I can use it. I'm using it for programming, configuration edits and I'm writing my thesis using Vim. Graphical editors are pretty, but they all lack the power and flexibility of an editor like Vim (Emacs also qualifies, but I'm from Earth and don't have the extra hands needed for all key combinations...).

    There is a beginning of a Gnome component wrapping for Gvim as well, and when it's mature enough, I'll finally be able to use Vim in Evolution ass well. Ending half of my mail messages with a friendly ':wq' is a little embarrassing...

    BTW: what is it with Slashdot and Gnome/KDE? Seems there's quite a bit of hostility towards Gnome among the editors lately.

    /Janne

    --
    Trust the Computer. The Computer is your friend.
  28. Re:Flamewar attempt by JanneM · · Score: 2

    But most wouldn't. The sad fact is that most users see nothing wrong with having a choice. There's a small but vocal group from both camps that seem out to whip up as much hostility as they can, and sadly, it seems some /. editors are among them (just see the rather skewed gnome item in the 'development' channel).

    With the steadily improving interoperability between these two environments, it is easier and easier to run applications for either and just use the desktop that makes you happy. Why care? Why look for a 'winner'? Instead, appreciate the flexibility that a choice of multiple desktop environments gives us (where Gnome and KDE are just the two most visible alternatives).

    /Janne

    --
    Trust the Computer. The Computer is your friend.
  29. Cream with KVim? by digitect · · Score: 3, Interesting

    Easy to use Vim? Don't you mean Cream?

    </shameless plug>
    --
    There is no need to use a SlashDot sig for SEO...
    1. Re:Cream with KVim? by gid · · Score: 2

      I tried cream just last week, the unfortunate side effect that it made the console mode vim really damn confusing, because there's no menu system with it, and maybe my remote console didn't have all ctrl keys and such working right, I'm not sure.

      But when used with gvim, it's great. It takes the "vi" out of "vim" leaving you with just, "m".

  30. Re:dreamer by Psiren · · Score: 2

    Nope, I use both. I use vim too, but only for editing remotely or small config files. Writing code in vim is a pain.

  31. Oh Ned! You ARE a vi man after all! by jdfox · · Score: 3, Funny
  32. For GNOME... by reynaert · · Score: 3, Interesting

    There's a similar project for GNOME, called Gnome-vim (screenshot). AFAIK, it is only useable with Evolution.

  33. Hey... by SomeOtherGuy · · Score: 2

    Finally a good reason to try KDE.

    --
    (+1 Funny) only if I laugh out loud.
  34. Re:Let me be the frist to say it by blank · · Score: 2, Funny

    what's so good about vim? it doesn't come with a calender, a browser or the AI language. if you have to edit a 10k file, there is less overhead and it will strip down to fit on a rescue floppy disk if you subtract all that gvim gui nonsense.

    the feature of having multifacits key typing is for the day when motion detecting is use for input. all the vim users will have an inherent twitch that will be reconizable to these devices and thus make them superior.

    the beauty of vim is that you can flick people off while typing in code and without taking your hand off the keyboard. plus you don't have the distraction of pron from the web or usenet.

    woohoo, this is fun. i'm going to waste more bandwidth.

    --

    bah. start over

  35. What do you get? by really_blurry · · Score: 2, Funny

    "the power of VIM with KDE's friendliness"

    What do you get then? Something that is almost user friendly?

    --
    > You've gotta sin to get saved.
  36. Oh boy! by supabeast! · · Score: 2

    User-friendly VIM! I can't wait! Nothing sounds kludgely like a mouseless text editor with mouse support!

    *sigh*

    1. Re:Oh boy! by PurpleBob · · Score: 2

      You do know that GVim has been around for quite a while, right?

      --
      Win dain a lotica, en vai tu ri silota
  37. Three Words (to start with) by fm6 · · Score: 5, Insightful
    Cut-and-paste.

    When I fell back into the Unix/Linux world some four years ago, my biggest crisis was finding a text editor. The obvious choice for me was Vi in a term window (I've been using Vi since Jimmy was president). Alas using it in a windowing environment presented special problems. The big one is that I kept forgetting which mode I was in. Maybe you can have a half-dozen windows open and keep a state diagram of every one in your head. I can't. I needed an editor that was stateless, or at least less stateful than vi(m)-in-a-window.

    Lucky for me, this was right when the Vim people perfected GVim, a version that integrated itself with various windowed environment. A paste is a paste, never mind what mode you're in. That by itself was enough for me to send a check to Bram's orphans. (I assume everybody else has?) The rest -- macros, synax colors, incremental search, being able to use the same editor on different platforms -- was just gravy.

    So we've actual had this personna-defying version of Vim for quite some time. The Linux port uses GNOME widgets, but runs under KDE, no problem.

    Also, you shouldn't assume that Vim is strictly for keep-my-hands-on-the-keyboard geeks. I know people who are put off by the weird modal keystrokes that Vim inherited from Vi. But they use Vim anyway, because it's the best comprimise available between power and functionality. Most editors are either to limited (KEdit) or infected with Feature Elephantitis (EMACS). Vim strikes a nice balance.

    1. Re:Three Words (to start with) by HiThere · · Score: 2

      Vim is my second-choice general purpose editor. My first choice is nedit, because it's easy to customize for languages that weren't forseen at the time the editor was built.

      I'm sure that Vim can be made to do this, but I've never bothered. Vim is my choice of editor without question in a non-graphics environment, but when it is moved to a graphics environment ... it suffers.

      Emacs to me appears to be the ideal single editor for a non-graphics environment (i.e., no graphics environment is available). It lets you get as fancy as you need to. Vim is a much simpler editor that is quick to learn, but specialized ... it doesn't try to do everything. And it's the editor that you include on an emergency floppy (unless you only have room for pico [or is it nano?]).

      But when one expands into a full system with windowing available ... sometimes a really simple editor is still necessary, but usually I prefer nedit. This is because most of the time the editing that I want to do is some kind of program, and I can teach nedit to handle anything that gre(p) can parse. And I can set tab widths to a 3 without having the program turn them into spaces. I find this quite important, especially for Python programs. (If nests get too deep, I compensate by re-setting the tab widths from 3 to 2.)

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
  38. Re:Let me be the frist to say it by anshil · · Score: 2

    In vim hit the keyboard key "insert", it switches between overwrite and insert.

    --

    --
    Karma 50, and all I got was this lousy T-Shirt.
  39. Is this "innovation"? Think again. by bhorling · · Score: 4, Funny

    I'm highly suspicious of this "integration" process. This uncessary addition of vim into KDE will deprive consumers of real choice, potentially leading to a stranglehold in the up-and-coming field of text editors. Will retailers have the option of replacing Kvim with a component of their own choosing? What will happen to the Kemacs, Kpico, and the just-started Ked projects? I've read before that KDE has not been developed with modularity in mind, making Kvim's removal impractical at best, so we may be witnessing a thinly-veiled attempt by KDE to subsume the entire editor market. Before we jump on the bandwagon here expousing the virtues of this marriage, we should take a lesson from history and recognize the many subtle consequences of this action.

  40. Another approach (Emacs?) by Ed+Avis · · Score: 2

    There are two ways to get vi / emacs / your-favourite-editor embedded into konqueror or kmail or whatever. Either make it into a 'component' which visually sits inside the konqueror window, or write a lightweight component which calls out to a separate editor process. Think about Emacs's 'server mode' where you set $EDITOR to 'emacsclient' and your currently-running Emacs is used as an external editor.

    You could have a KDE editor component which just displays the text and a big 'edit' button; the button when pressed launches $EDITOR, which could be Emacs or whatever. It wouldn't look as nice as embedding kvim directly into the app's window, but it should work with all editors, with no special KDEification needed for each one.

    --
    -- Ed Avis ed@membled.com
  41. Great! by Dwonis · · Score: 4, Funny

    Now how long until we get KDE for Emacs?

  42. Comments from a long-time Vim user. by Surak · · Score: 2

    While I agree with you in part, the part of about using all the funky keystrokes that boost your productivity, I disagree that at GUI version of VIM is less useful.

    For one, the support for native GNOME (in the case of GVIM) and KDE (in the case of KVIM) clipboards, without having to go into the xterm window and keep on marking a "screenful" at a time and then scroll, mark another screenful, scroll, etc....with GVIM and KVIM, you can copy these to the clipboard easily like any other GUI editor.

    If KVIM is anything like GVIM, it will have native support for KDE printing functionality, something non-existant in a console vim.

    The fact that, as someone mentioned, it is a KPART means that other applications can use it. So, for instance, Konqueror could KVIM for the little text editor window that I'm typing in right now and I'd get full Vi-style editing functionality, something that would ROCK if you ask me personally. :)

    Also, adding the menus and buttons give you useful stuff like File Open dialogs. Typing in a long pathname on ':e ' command line is a REAL royal PITA. I'd rather just point and click, thank you.

  43. Vim in text box ??? by Etyenne · · Score: 2

    The article talk about embedding Vim in Konqueror. Unfortunately, I can't reach the site to read the details (/.ed), but if that mean I can use Vim in textbox (such as the one typing in right now), then I am really excited.

    That will double my productivity when posting to /. :)

    --
    :wq
  44. YAHOO!! by Billly+Gates · · Score: 2
    I can finally leave Visual C++ behind. I hate the platform but love the ide and the syntax highlighting, font support from the built in editor even though the macro support sucks compared to vi or emacs. The built in editor in kdevelop sucks sucks goat balls and is close to unusable. No smart indenting, bad font support, no quick commands like dd to delete entire lines or space folding like VIm. I know in unix version of VIM you can just do a :make projectname inside gvim itself but I miss the built in debugger, as well as the docs in Vstudio. For example when you have a snytax error in VC, the debugger just goes to the appropriate line so you can fix it. Using a seperate program just tells you the line number and you have to move to the line yourself to fix it.



    It seems odd in the early 21st century to be using only an editor and nothing else to do any real development work. I hate launching ddd, GVim, and kdevelop seperatly for coding, debuging, and looking up documentation. My solution was to enhance my coding skills a little more and actually write a version of Vim and litteraly call it Kvim and then try to use kparts to integrate it with kdevelop. Exactly like what these guys are doing. They beat me to it. Oh well. It would of looked good on my resume. Anyway I will be the first to download it and try it out. This is a must needed godsend for unix and linux. Its hard to convince people to switch when using old command line editors from bash like vi. ALso the unix approach to a problem is to have alot of smaller programs that do one thing well and to use them all together. vim and kdevelop fullfill this idea well.

  45. Re:VIM going down the wrong path by scotch · · Score: 2
    Vim compilation is very customizable - you can turn off the features you don't like. Even with "big" features compiled in on my system, the executable will still fit on a floppy with room to spare.

    HTH

    --
    XML causes global warming.
  46. Licensing problems? by SLi · · Score: 2, Insightful

    From the KVim page:

    KVim is released under the smae 'charityware' licence as vim. Please see the vim website for more info.

    Why do I smell licensing problems here? That is, unless the developers have a commercial Qt license, they are required to distribute any software linked with Qt under the GNU GPL.

    I believe that would be the second time, as Vim was previously linked with libgpm (I don't know if it currently is), which is also distributed under the GNU GPL.

  47. Re:The mind boggles. by stevew · · Score: 2

    Now how the HECK would you be able to hold down all those keys to do anything with either a Palm keyboard or handwriting mode??

    At least with VI you could actually think about it.

    You wouldn't want to do it - but you could consider it.

    .

    --
    Have you compiled your kernel today??
  48. /.ed already.... by Anonymous Coward · · Score: 2, Funny

    /.ed already.... Looks like they should have been using IIS.

    Silly rabbits never learn...

  49. Great for me by ceswiedler · · Score: 2

    I'm a KDE user and a GVIM fan, so this is absolutely great. I use GVIM under Windows as well, which helps me keep some unity and sanity to my text editing. I particularly love the search and replace power of Vi (basically full sed scripts, inline) and often spawn it from VC++ to do complex searches-and-replaces. I've read that you can replace the VC++ editor with GVIM using OLE, which I might try too.

    I do like Konquerer's file manager mode (Mozilla is much better IMO for the web), particularly the CLI attached to the bottom of the window. In fact, I often use it to spawn GVIM to edit a file... Being able to bring up GVIM inline to do text editing would be a dream.

  50. funny... the C-X C-x makes a lot of sense... by EnderWiggnz · · Score: 2

    it actually makes the most sense out of *any* unix text editor.

    why?

    try this excersize.

    cat>some_file
    type here.

    ... now how do you save, and exit editting from this? thats right - Ctrl-X (EOF character) Ctrl-C .

    thats why emacs uses that key combo

    --
    ... hi bingo ...
  51. Re:funny... the C-X C-x makes a lot of sense... by big_hairy_mama · · Score: 2

    I thought EOF was C-d. Maybe I'm wrong; can someone explain the difference?

  52. KVigor? by CptNerd · · Score: 2, Funny

    Vim for KDE, does this mean someone will port Vigor to KDE? KVigor?

    --
    By the taping of my glasses, something geeky this way passes
  53. Re:Erm... by big_hairy_mama · · Score: 2


    Then typing:
    itve<TAB><TAB>myAr<C-SPACE><R ET><TAB>th<C-SPACE><RET>.doS <C-SPACE><RET>

    will gives you:

    for (int i=0;i!=myArray.size();i++)
    { Thing theThing = (Thing)myArray.at(i);
    theThing.doSomething();
    }


    Pretty cool demo, but a little too much for me personally :) I like to have complete control over my code (I'm very nitpicky). I woulnd't want to type th<C-SPACE><RET>.doS <C-SPACE><RET> and find out that a new method called "doSandM" has been added to theThing's class, conveniently in alphabetical order to show up first on the list. Well, I'd probably notice the mistake right away, but it's just something I don't like to have to worry about.

    Besides, I find it's easier to really memorize the methods in a new API after I type them out in full a couple of dozen times :) I'm pretty quick on the board, so it doesn't bother me. Probably a whole lot quicker either way than selecting the autocomplete method from the list in a Swing class, where there are at least 500 thousand methods :)

    I'll give you that Intellij IDEA is a pretty cool piece of software, among Emacs and Eclipse in my favorites list.

  54. MDI in vim? by RelliK · · Score: 2

    The one thing I hate about vim/gvim is the inability to do MDI. I want to be able to edit multiple documents at a time and copy/paste text between them. The split window just sucks. If you open two separate vim windows, then the only way to copy paste is with the mouse. Then there is some funky way to cycle between open files in the same window, but then you actually need to save the current file and open the next one. All of these methods suck. So, is there or are there any plans for a *real* MDI in vim? I'd like that even more than KDE integration.

    --
    ___
    If you think big enough, you'll never have to do it.
    1. Re:MDI in vim? by RelliK · · Score: 2

      thanks a lot! That's what I was looking for. Now is there a way to have it list all the class names and/or use class member complestion?

      --
      ___
      If you think big enough, you'll never have to do it.
  55. BRIEF R.I.P. by SpinyNorman · · Score: 2

    Actually, the best editor ever was BRIEF by Underware, an awesome PC editor then got sucked up by Borland and disappeared.

    When I switched to Unix from DOS an aeon ago, the first thing I did was look for a decent editor, and was incredulous that people actually used vi - a line editor!! - for real work. The absolute minimal requirements for a productive editor are modeless, mouse cut and paste and off-the-cuff macro record/playback. I ended up choosing emacs and configuring the keys like BRIEF.

    You're right about nedit though - it's an excellent editor and I use it on occasion to do stuff like complicated search/replaces that I've never bothered to learn with emacs (how does emacs refer to wildcarded bits of what you searched for in the replace string?).

  56. Names by Snafoo · · Score: 5, Funny

    I think we're going to witness the developmental evolution of KDE application naming.

    Simply prefixing the program with the letter 'k' is not enough, as those lamers developers over at Gnome can simply take the same program, s/qt/gtk+/g, and s/^k/g/g. How's a KDE developer to cope?

    Here's an idea: Give all KDE apps girl's names. We have Kate; now all we need is Kim, Kamilla, Katherine, Kookie, Koko, Kitty, and so forth.

    Gnome will no longer be able to follow. Aside from 'gertrude', there aren't that many female names beginning with the letter G. And in any case, what are they going to call 'gnome-kate'? Gate? Gkate? Gnate?

    Mwahaha! Now all we need is a non-crashing build of KDE3.0, and we shall rule the world!

    --
    - undoware.ca
  57. Re:Vim has ruined me...(Conspiracy?) by Bad+SU · · Score: 2

    Oh, but there have been many improvements in the escape keystroke over the years.

    First we had ^3^[
    Then, simply ^[

    Now, it's only *one* key. Is there any another keystroke you can think of that has gone through the exhaustive RnD, innovation, and human interface studies that ESC has? I think not!

    Not a flame, btw, just an amusing thought. It simply did not turn out that way in print.

  58. Re:Erm... by cygnusx · · Score: 2

    >and the damn clippy won't go away.

    I use vim for all my editing and email, but if the clippy and auto-correct are all the objections you have against Word, then why don't you turn them off? Word has a bajillion options you know, and turning off the clippy is as easy as right clicking it, choosing options, going to the options tab of the dialog that pops up, and unchecking 'Don't use Office Assistant'. Autocorrect/autocomplete can similarly be turned off.

  59. Re:funny... the C-X C-x makes a lot of sense... by armb · · Score: 2

    > I thought EOF was C-d. Maybe I'm wrong; can someone explain the difference?

    Yes - the difference is you're right, and the previous poster doesn't know what he's talking about.

    (Actually C-d is the character usually used interactively to signal that you want an end of file. EOF as defined in stdio.h isn't a character at all, which is why getc() and getchar() return ints (casting the result to char before comparing with EOF is a common mistake)).

    --
    rant
  60. Showmode is Evil by fm6 · · Score: 2
    Actually, showmode goes back to the original vi. But remembering to stop and look at the texts at the bottom of the window is just as hard as remembering what state you left the app in. The only thing showmode is good for is teaching vi to newbies who don't understand the concept of state.

    And why should they? It's an obsolete concept, at least in UI design. If I had the time (and were a better programmer) I'd take the Bram's basic editor engine (which really is very good) and build a modern UI on top of it.

  61. arrow keys? by Ender+Ryan · · Score: 2
    What is wrong with using the arrow, page up/down keys? So many vim lovers complain about this with other editors, but come on, that's ridiculous! I use the arrow keys so quick it's virtually like any other keystroke, perhaps twice the time maybe. And what is the big deal anyway, in vim you have to toggle your mode before you can move around, so it's about equal anyway, except in any other editor it's actually intuitive!

    Bah! People who like vim are weird ;-)

    --
    Sticking feathers up your butt does not make you a chicken - Tyler Durden
  62. KVim? Parrot? by Paul+Komarek · · Score: 2

    Does this remind anyone else of the Parrot (Python + Perl) joke? In particular, the joke sample code they produced?

    Quoting from the joke:
    # copy stdin to stdout, except for lines starting with #
    while left_angle_right_angle:
    if dollar_underscore[0] =eq= "#":
    continue_next;
    }

    -Paul Komarek
    print dollar_underscore;

  63. Interesting Use for Embedded Kvim by cjsnell · · Score: 2


    I read about the embedding in Konqueror but couldn't get specifics because of the slashdotting. Here is an idea that I have for a potential use of kvim:

    I use SquirrelMail, a web-based IMAP client, to read and send mail. It would be super cool to be able to use kvim in place of the usual browser-provided TEXTAREA editor when I send mail. This would also work well here on slashdot, for editing comments like I'm doing now.

    Chris

  64. In a word, syntax highlighting. by ebyrob · · Score: 2

    True, some command prompts support this, but life without it really sucks.

    (Okay, maybe two words.)

  65. Mod Parent up. by ebyrob · · Score: 2

    If it was really a Troll... there wouldn't be so many good responses. Just cause you don't agree don't make it a troll.

    Configuring gvim to auto-complete on windows as well as say JBuilder is something I haven't been able to pull off. Thanks for bringing the point up Otis!

    Of course JBuilder, with some of the smartest features I've seen(like drag and drop visual editors you can use on hand written and modified code), really sucks for manipulating text. You can't even search backwards properly. Yes there's a vi plugin for JBuilder, but it doesn't fill those gaps. Other "smart" editors and environments always seem to suffer similar weaknesses.

    In practice, I wind up using two editors just for Java coding. gVim when I know what I'm doing and JBuilder when I really need to get in and read/understand a ton of code before making changes.

  66. Re:Erm... by civilizedINTENSITY · · Score: 2

    As well, one can compile with perl and/or python options. Like unto lisp for emacs...

  67. err . . . by hawk · · Score: 2
    If you use that many equations, you *should* be using lyx. Current versions compile without modification on windows (though I've never had a reason to do that).


    It's equation editing doesn't merely trounce equation editor, but blows away the old typesetting commands in v1-5.1 of the macintosh versions of word--by enough that shortly after I met it, I dumped my macs and bought a *nix box as a starving graduate student.


    People who write lots of equations *need* LyX. Badly. Never be forced to mouse your way around an equatoin again (though you can when you need to).


    hawk, more suited to LaTeX, but using enough equations that he sticks with LyX

  68. Re:Let me be the frist to say it by Cally · · Score: 2

    Little-known fact: although it's true that there's an 18Mb monster emacs package and tons of ludicrous plugins (web browsers..?!), there are in fact stripped down minimal binaries (and source packages.) See your friendly local GNU ftp archive mirror.

    --
    "None are more hopelessly enslaved than those who falsely believe they are free." -- Goethe