Thread: editing in eclipse

  1. #1
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300

    editing in eclipse

    So I'm trying out eclipse whilst learning java.

    Java seems pretty neat so far and eclipse is nice -- the little real-time tips are great.

    However, the actual editing sucks. AFAICT, it's all just block cut/copy and paste with the mouse. In vim I'm used to being able to do stuff like this with command mode keystrokes:

    yy -> copy this line into buffer
    5yy -> copy next 5 lines into buffer
    5dd -> cut next 5 lines into buffer
    p/P -> insert buffer below/above current line or position

    And variations on that using alternate buffers, to select by word, etc. Preliminary googling implies eclipse has nothing like this: if you want to copy or cut text, you have to select it exactly with the mouse and use a menu or a ctrl hotkey, like notepad or something. Which is very tedious. And it does not have any internal buffers, it just uses the desktop clipboard. Or have I missed something?
    Last edited by MK27; 01-04-2012 at 09:17 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What you missed is one of the distinctive characteristics of vi variants.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by laserlight View Post
    What you missed is one of the distinctive characteristics of vi variants.
    ...well at least it is friendly enough to let me softlink the src folder and use an external editor at the same time.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Why not try a vim plugin for Eclipse?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by laserlight View Post
    Why not try a vim plugin for Eclipse?
    Now isn't that smart!

    Installed "vrapper" and set the mode toggle to ctrl-alt-v. Seems to give me the basic vim editing stuff. Thanks much!
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. install eclipse
    By manish411 in forum C++ Programming
    Replies: 1
    Last Post: 06-17-2010, 07:59 AM
  2. running eclipse for c and c++
    By manish411 in forum Windows Programming
    Replies: 3
    Last Post: 06-11-2010, 10:27 AM
  3. Eclipse C++ problem
    By Nextstopearth in forum Tech Board
    Replies: 8
    Last Post: 04-05-2009, 12:37 AM
  4. Compile C in eclipse
    By leopupo in forum C Programming
    Replies: 10
    Last Post: 03-27-2008, 09:07 AM
  5. Eclipse problem
    By spiit231 in forum C Programming
    Replies: 4
    Last Post: 03-11-2008, 01:27 PM