Skip to main content

Vim: The Text Editor For Geeks


Many of us just love to work with Vim , a simplified text editor with Mouse and GUI is rarely something we use.Being a touch typist we don’t want to move our hands from their position on the keyboard.In simple words,there’s command to everything,from moving the cursor to save and exit.


But wait, should I start using Vim just because I’m too lazy to move my hands around mouse?

Let me complete,

Vim can be used remotely. We can use Vim everywhere and can be run over an SSH connection and it works just well. So if you need to do remote work you only need to learn one tool so why not Vim?


What’s Vim?

I’m not good with the definitions so lets just copy it from Wikipedia ,

Vim (a contraction of Vi IMproved) is a clone of Bill Joy's vi text editor program for Unix. It was written by Bram Moolenaar based on source for a port of the Stevie editor to the Amiga and first released publicly in 1991. Vim is designed for use both from a command-line interface and as a standalone application in a graphical user interface. Vim is free and open source software and is released under a license that includes some charityware clauses, encouraging users who enjoy the software to consider donating to children in Uganda.The license is compatible with the GNU General Public License.

Although Vim was originally released for the Amiga, Vim has since been developed to be cross-platform, supporting many other platforms. In 2006, it was voted the most popular editor amongst Linux Journal readers; in 2015 the Stack Overflow developer survey found it to be the third most popular text editor; and in 2016 the Stack Overflow developer survey found it to be the fourth most popular development environment.

Some Basic Tutorial :-

1) Starting Vim :

Open terminal window and type ‘vim’ without ‘’.Somthing like this will appear:




2) Lets get started by creating a simple java Hello, World! program(please don’t judge me I want it to keep simple)



step 1.


open terminal and type “vi filename.java” without “”,somthing like this :



step 2.



Now its the time to command vim that I want to ‘insert’(type) something



So for this , I’ll hit the ‘i’ button to be in the Insert mode ,Now I can type anything .So ,I typed this simple program.
 


step 3.



By Hitting ‘Esc’ button ,I’ll enter in the command mode,So if I want to command something in between like save the file or copy a block of text or anything, I can type there.


Now I want to save and exit,so for this ,I’ll hit the ‘Esc’ button and will type ‘:wq’ in the command mode and hit Enter key . Something like this :




 
for just saving the file,type ‘:w’ without ‘’ in the command mode,for just quitting,type ‘:q’ .If you’ll try to quit without saving ,You’ll get the warning too.


Vim is also available for Windows.


The Best part is Vim helps to raise fund for the poor children in Uganda.

Thanks for reading the post with the patience,Hope you liked it.Stay Connected with us for more interesting articles.
                                                Have a nice day.

Comments

Popular posts from this blog

HOW TO USE THE DELAY FUNCTION IN C++

Hello programmers!!

Have you ever wondered how people use that effect, in C++ console applications, in which they make characters appear after a certain time. Like they say "loading..." and the cots appear one by one at a particular time interval. This effect looks very cool and makes the applications look very professional.Also see : Basic Algorithms 101 : Checking the validity of an email address (simple beginner approach)

Also see :Basic Algorithms 101 : Checking the validity of an email address (simple beginner approach) 
This 'effect' is called delay. Delay is a more professional term used for some thing that happens a little later than it is expected to happen. This is used in c++ intentionally to either create an 'effect' or to easy the procedures of the application for the user.  Like there are manyuses of the delay function.

Usually in C++ the output appears in the console as soon as it is executed. This might make it look like the application is mad…

HOW TO COPY ANY TEXT TO TURBO C++

Hello!!

Are you one of those people who is in the middle of a C++ program and you know what to do, but you don't know the syntax? So you google and find out the syntax. But in turbo c++ you cannot use ctrl+v. That might be a little pissing off. So the easiest solution would be to get rid of Turbo C++ and get a modern day compiler. But anyway, here is a post on how one can copy text from an external source into the turbo C++ environment.



Also see:Basic algorithms 101 : Checking for the validity of an email address (simple beginner approch) 
C++ is a very powerful language, but the Turbo C++ compiler is bloody ancient and very conservative. The Unix environment it has can be a pain in the neck sometimes. With the modern day compilers like C++ builder, eclipse, and stuff, programming in C++ has become so much easier. Unix environment is not really necessary to build an application. And these new compilers also have a lot of predefined functions for graphics, user interface etc.

Somet…

How to geek: Learn to code like a pro

Warning! Philosophical text ahead. Skip to the next section to avoid it.
A lot of people come up with a lot of brilliant ideas. But not all of them are able to execute their ideas due to lack of programming knowledge. Lack of programming knowledge is something that can only be solved by sitting your ass down and doing a course patiently without giving any excuses. It is important to assess yourself thoroughly. If you don’t know something, you need to accept it. You can’t call yourself a web developer after editing a few HTML templates. If you want to be a web developer, stop editing templates and start building one from scratch. Speed is not more important than fundamentals. If you go after speed, you will end up becoming like season one flash. Another thing I’ve noticed in people is, they are not able to stay motivated for more than a day. They start a course online, binge watch a few videos and then forget about it the next day. An online course is not the same as a TV show. You ca…