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
9k 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.
7
votes
3answers
9k 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 ...
24
votes
1answer
24k 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 ...
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.
62
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 ...
12
votes
3answers
7k 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
143 views

Change the default editor when sudo visudo

When doing sudo visudo, the default editor is nano. I want to change it to vi or vim. I already made vim be the default application to replace gedit upon opening php, plain text, c and h files, by ...
3
votes
1answer
460 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 ...
4
votes
1answer
3k 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. ...
3
votes
2answers
2k views

How can I add a PPA from a previous release?

I've been trying to get vim with the breakindent patch applied, but it's only available through Quantal, and I'm running Raring. Is there a way to force-install a PPA from a previous release? I tried ...
1
vote
2answers
789 views

How do I make vim the default graphical text editor?

While trying to make vim default instead of gedit, I found this could be done two ways: Use defaults.list and make text/plain (and others) point to vim.desktop (what is the format for creating ...
24
votes
4answers
9k 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
60k 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 ...
18
votes
2answers
8k 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.
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
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 ...
3
votes
2answers
4k views

Unable to copy from vim to system clipboard

As said in the title I am unable to copy from vim to system clipboard. Viceversa works, copying from outside vim and pasting with p is ok. I have installed clipboard support, vim version is 7.3.429: ...
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.
4
votes
3answers
968 views

Deleting first column with vim

I have a text file. number 1_1 \t number1_2 \t etc number 2_1 \t number2_2 \t etc I want to remove the first column of this file (corresponding to number1_1, number2_1 etc, ie the numbers before ...
3
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
11k 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
6k 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?
3
votes
1answer
1k views

how to use my vimrc file when edit file width sudo command

I found when i use the command sudo vim /etc/www/main.wsgi the vim said: neocomplcache disabled: "sudo vim" is detected and $HOME is set to your user's home. You may want to use the sudo.vim ...
2
votes
1answer
474 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
2k 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
15k 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
284 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
76 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
2k 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 ...