Writing Java code in cmd??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cjenna7
    New Member
    • Oct 2011
    • 3

    Writing Java code in cmd??

    Hi people, just seen a video with a guy writing actual java code in cmd, he was using some command like "VI" then his file name to launch the editor which opened up a new cmd line window where he could start editing the file! I've never seen this before so did a little digging around on google and all i can find is a "VI" editer for Unix based platforms.

    Anybody got any ideas what this program might be??? (oh and he was using windows Xp!)

    Thatnks
  • Cjenna7
    New Member
    • Oct 2011
    • 3

    #2
    sweet:)i did a little more digging and found it in terminal on my macbook! must be something similar for windows to though?

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      vi is just a text editor. Like notepad. You can write java code in any text editor. It just won't run it unless you have the java compiler/interpreter installed.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Hehe :)

        VI does look a lot like a "cmd" window on some operating systems I guess.

        It's available natively on all of the Linux operating systems that I've used in the past. I don't know if it's native on every Linux system though. Apparently you discovered it's available on your macbook too.

        There is a Windows version of VI (I used to use it) but it doesn't look like a "cmd" window.

        VI's pretty complicated...s o be prepared to read the manual a lot! Once people figure out all of the "short cuts" and how to use VI they seem to be pretty happy with it. I found it overly complicated and so, being a lazy programmer, started using different text editors and IDEs for software development.

        -Frinny
        Last edited by Frinavale; Oct 14 '11, 04:31 PM.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          It would be unusual to find any *nix system without vi. It's the only editor we use at my company except for emacs. Macbook has it because OSX is Unix.

          What's cool about vi is your hands never need to leave the keyboard. You can jump around anywhere on the page or the full document using short, simple, quick commands. You can search, edit, select whole blocks, subsitution of chars, words, paragraphs, and on and on with a quick keystroke.

          An improved version of vi is vim that includes better functionality.

          vi is not complicated but learning just comes with usage.

          Comment

          Working...