Vim is an open-source text editor which is typically run from the command line. Questions should relate to using Vim on Ubuntu.

learn more… | top users | synonyms

27
votes
4answers
8k views

How can I change the default text editor from gedit to vim?

How can I change the default text editor from gedit to vim? When I click on a text file, I want it to open in vim under the terminal instead of gedit.
6
votes
3answers
8k views

What features does vim-tiny have?

So, the cut down vim-tiny is installed by default in Ubuntu. I don't mind using it, but I can't find documentation and most of the commands I'm used to from normal Vim don't work. So far I've ...
32
votes
8answers
12k views

Where can I find Vim 7.3?

Vim 7.3 is out, but not available in the sources. Where can I get an installation package for the 7.3 version? I don't want to install it manually.
23
votes
1answer
19k views

What is the difference between the different vim packages available in Ubuntu

The difference between vim-gtk and vim-gnome has been discussed here. Ubuntu usually offers more than these two options for vim : vim-nox vim-athena vim-* It is not clear which vim package ...
61
votes
12answers
5k views

How to learn vim on a high level? [closed]

I know that vim (like emacs) is very powerful editor for programmers, as long as you know how to use it, its shortcuts, and so on. What steps can I take and what tutorials can I read to become an ...
11
votes
3answers
5k views

vim is not remembering last position

My Ubuntu LTS 12.04 has vim editor. If I open a file, move to a paragraph and reopen vim, then the cursor goes to beginning of the file always. This is not the expected behavior. How the vim can ...
4
votes
1answer
2k views

How can I build vim with a gui without gtk?

I've recently started playing around with pygobject. However, gvim or vim's python-complete feature crashes, because, as I understand, you cannot mix GTK2 and GTK3 libraries in the same process. ...
1
vote
1answer
139 views

Why is my vimtutor blank?

I want to learn Vim. The vast majority of people advise me to use vimtutor. I downloaded the package and ran it, but I just get given a blank screen. I see on Youtube that there should be tons of ...
21
votes
4answers
7k views

Gvim GLib-GObject-WARNING in ubuntu 13.10

I upgraded from ubuntu 13.04 to ubuntu 13.10 this afternoon. And when I try starting vim form the terminal after the upgrade, I get these warnings (gvim:4054): GLib-GObject-WARNING **: Attempt to ...
20
votes
6answers
52k views

How to close vim from the command line?

I know this is more of a general linux question but w/e. So when I enter a program like vim in the command prompt it displays all the text in the file and I can edit it etc. But I can't figure out how ...
17
votes
2answers
7k views

How to stop Gedit, Gvim, Vim, Nano from adding End-of-File newline char?

Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it. Several editors automatically modify my ...
6
votes
3answers
2k views

Getting Quickly to use Gvim instead of Gedit

How do I get Quickly to use Gvim (or just vim in a terminal) as its default text editor instead of Gedit? If this can be done, I must be doing it wrong... Ubuntu 10.10 AMD64.
7
votes
6answers
8k views

Cannot install vim

I am running Ubuntu 11.10, as Xubuntu, in an AMD 64 pc, configured as dual boot with Windows 7. I tried installing vim with this: sudo apt-get install vim I got this error message: The following ...
4
votes
1answer
3k views

How to store my gnome terminal color palette

I use terminal and vim extensively, while writing code. I have created a color palette which is based on readability and easy-use with an autocomplete plugin(obtain plugins from Pydiction : ...
7
votes
1answer
2k views

How do I make GVim use the icon in my icon theme?

Instead of my pretty Faenza icon, it's using a rather ugly one.
2
votes
1answer
3k views

How can I get colors in TTY working correctly?

I use vim a lot and it occurs to me that most of the time I don't even really need a GUI, since I'll only use my computer to take notes in VIM. The problem is, though, is that colors don't show up ...
2
votes
1answer
1k views

How can I use bitmap fonts in gvim?

When doing actual work, I can't stand the scalable monospaced fonts that are available to me with the default install. How can I make gVim use the good old 6x13 x11 font?
9
votes
4answers
9k views

How to copy data between different instances of vim?

If I use the first vim to copy a line (with yy), how do I paste to another terminal's vim (with p)? Is there any command or settings can do it? Can I copy and paste into the global system clipboard? ...
8
votes
4answers
3k views

Add Vim to Unity launcher?

Please can someone explain how to add a launcher icon in Unity (along the left side) for Vim - or any other terminal-based application? I press alt+f2, type vim, and drag the icon to the left ... but ...
5
votes
1answer
3k views

Why isn't vim reading my global configuration file?

I put 'start' in ~/.vimrc, and my vim starts in input mode. I put 'start' in /etc/vimrc, and nothing happens, for any user, including root. How do I fix this? UPDATE: per queueoverflow below, I ...
4
votes
2answers
4k views

Changing Vim editor settings?

How do I change default settings of Vim editor such as setting auto indent, setting Tab space to 4 and changing text colors? Also how to set vim as the default code editor?
2
votes
1answer
463 views

Vim is not working fine in Ubuntu 13.04

How to install full version of Vim editor in ubuntu 13.04
1
vote
1answer
1k views

Which vim version can I use?

I recently installed vim on Ubuntu (14.04) with Unity. As it turns out, vim does not support yanking text to the clipboard (usind + or *). I read here that I have to install GVim in order to add this ...
1
vote
3answers
13k views

Installing vim text editor on ubuntu

just installed LAMP server and need to use vim editor to edit php.ini the cli command 'sudo apt-get install vim' gives me the following error: <Package 'vim' is not available but is refered to by ...
1
vote
1answer
272 views

Is it possible to do a RegEx Find in Cream (VIM's derivative) via the dialogs?

In Cream, I simply can't find the RegEx option mentioned on Cream's info page Basic Features * Find and Find/Replace dialogs use intuitive search, with Regular Expressions as an option (Ctrl+F ...
0
votes
1answer
37 views

Gvim doesn't show up in the nautilus context menu for .c and .h files

Most of the time I can browse the file system with the file browser, right-click on a file and top item in the menu "Open with Gvim", but when I right-click on a .c or .h file, it says "Open with ...
0
votes
0answers
1k views

Installing and uninstalling vim ?

Have vim installed wanted auto complitions in vim so i downloaded the addon somehow I messed it up misplaced the files and it started giving the errors whenever I start vim so i decided to uninstall ...