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

33
votes
1answer
37k 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 ...
29
votes
5answers
11k 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.
8
votes
3answers
12k 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 ...
33
votes
8answers
13k 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.
26
votes
6answers
81k 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 ...
3
votes
5answers
3k views

How to paste text from Vim editor to browser?

I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening an sql file. How do I get this done?
5
votes
2answers
3k 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 ...
67
votes
12answers
6k 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 ...
74
votes
5answers
60k views

How do I enable full-color support in Vim?

I have a lovely Vim colorscheme (xoria256) and it looks brilliant in GVim, but when I use normal vim in Terminal, the colorscheme is only partially supported -- for example, the default ...
15
votes
3answers
10k 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 ...
8
votes
1answer
793 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 ...
4
votes
1answer
1k 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 ...
5
votes
1answer
4k 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. ...
2
votes
3answers
1k views

Vim Syntax Highlighting Question

I have a doubt about vim, I installed the editor on my ubuntu 13.10 and everything is ok. but when I create a file ".txt, or .conf" the highlighting isn't enabled, I put "#" and " but not change ...
1
vote
2answers
967 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 ...
74
votes
4answers
52k views

How can I install and use powerline plugin?

Powerline is a plug-in to display informational and beautiful statusline for vim, tmux and shell prompt for bash, zsh. Vim statusline: How can I install and setup Powerline for different ...
27
votes
4answers
12k 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 ...
21
votes
2answers
10k 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
4k 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 : ...
8
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.
7
votes
6answers
10k 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 ...
5
votes
2answers
7k 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: ...
8
votes
1answer
4k views

What are the differences between vim.basic and vim.tiny? [duplicate]

My favorite editor is Vim, so I decided to change the default editor of my ubuntu installation with the following command: sudo update-alternatives --config editor A prompt (with listed options) ...
5
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 ...
4
votes
3answers
2k 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
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?
2
votes
1answer
587 views

Upgrading VIM 7.3 to latest release via apt-get

I'm currently using Ubuntu 12.04 and have Vim 7.3 installed and I want to update it to the latest version. I'm still new to how all these package manager stuff works, but I was wondering why can't I ...
1
vote
1answer
5k views

:wq on vim does not save

By :wq I want save my text file on the vim. But when I run :wq I saw this error E45: 'readonly' option is set (add ! to override) also when I add ! to :wq like :wq! .I saw below ...
11
votes
6answers
16k 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
2answers
11k views

What is the difference between Vi and Vim?

This might sound like an idiotic question. I would appreciate it if someone can let a newbie know what the differences are between vi and vim. I've heard vim is a successor to vi but whenever I try to ...
5
votes
1answer
4k 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
1answer
2k views

What's the easiest way to get vim with python 3 support?

I have ubuntu 14.04 installed and vim in its repos is compiled without python 3 support. Because of that python-mode plugin can't work with python 3 code. What's the easiest way to get vim with python ...
4
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 ...
4
votes
3answers
10k 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
48 views

Vim - Set number command on startup

What is the file to edit, to show lines number on startup using vim ?
2
votes
1answer
481 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
3k 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
4answers
18k 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
304 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
148 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 ...