How to install and use vim gvim on debian ubuntu

When I first, without preparation, opened vi, was unpleasantly (to put it mildly) surprised its inadequate response to keyboard input.
Familiar with gedit-u shortcut keys do not work, and simply enter the text was impossible. Pilikalo something, bottom appeared some text disappeared. ... Even exit the program, it was not clear how.
Čertyhnuvšis′ and killing from a nearby window process, I tried to forget about this editor, considering it nonsense unshaven realm of nerds.
Now that I have a Basic Editor for all text input. Command-line editing is also configured in the style of vi. The variable EDITOR (Editor, called for the needs of utilities, for example, less) is also set to vi.
If you happened to the situation described above, or are you just another undecided text editing tools, then read on.
Everything is very simple, if you know what to push.
I will not describe here shortcut keys, first of all, the Internet is full of such information, and secondly, they are not just great but extremely much, and thirdly and most important, the vi has a built-in, easy and even very interesting tutorial on Russian language. I do not dry” man vi does not: help in English, namely tutorial for beginners.

 

If you zainteresoval′s′, and decided to try it, then go!

 

If the commands below starts with #, then they are running with root privileges that begin with $ are a standard user.
Originally, debian is only available vi, which is not very suitable for the initial consultation. That’s why first we will install vim, which has many more abilities that make work with it just interesting, and, most importantly, provides this tutorial.
Code:

 

Be sure to have the proposed additional packages, especially the vim-runtime. Without it, it will be very boring.
You can now run the tutorial:
Code:

 

On my own I might add: in Lesson 8 shows you how to create a startup script for vim. For the inexperienced user, in my opinion, a little nonsensical (I at one time was not immediately entered). Easier to just do:
Code:

 

On reading the examples took me less than an hour. After studying it you can easily open, edit and save text using only alphanumeric keypad. Type keys Home, End, Page up, arrows, etc. are no longer needed, and the mouse can be quite forgotten. Even to backspace commands and Esc keys to replace a more comfortable Ctrl-H and Ctrl[respectively. If you own a blind typing method, you quickly appreciate all the convenience of the editor.
The man vim describes startup options for the editor, and the vim has a detailed built-in help that is invoked with the command: help.
Unfortunately, it is in English, but it is fixable. Download the file ruvim-0.5-utf8.zip. This version of the translation is quite old, 2004 year, and need to use it with that in mind, but for Advanced Editor is quite suitable.
Delete from the archive the file lang/en/LC_MESSAGES/vim.mo because it is already present in the system (at the same time will remove what he RuVim-HISTORY.txt us in the service directory?):
Code:

 

Now we stamp in the/usr/share/vim/vim72 and extract the file there (assuming the ruvim kept in home directory):
Code: [Select]

 

Now go to the vim and type: help. Most of the information is in English. Help consists of two parts: a user’s Guide and reference for vim. User manual can be read like a book, and if you have the patience to read till the end, performing as examples … I have had enough. Now I no one can prove that there is an editor more convenient.
You can do to console programs using an external editor, called vi. Open ~/.bashrc:
Code: [Select]

 

Add a new line anywhere:
Quote

 

export EDITOR=vi

For example, when you view the text using less, when you press the v is called vim and text you can edit.
Now you‘ll want to see and edit the command line in vi. Do this quite simply. In the file ~/.bashrc add anywhere a new line:
Quote

 

set -o vi

Learn more about vi keyboard shortcuts I wrote here.
You can also install the graphical version of vim:
Code: [Select]

 

I have it turned up in the standard application.

Leave a Reply

Your email address will not be published. Required fields are marked *