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

50
votes
1answer
67k views

What are the differences 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 ...
33
votes
5answers
15k 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.
13
votes
3answers
18k 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 ...
111
votes
4answers
93k 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 ...
34
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.
28
votes
3answers
43k 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 ...
6
votes
3answers
23k 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
5answers
4k 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?
9
votes
2answers
5k 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 ...
70
votes
12answers
7k 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 ...
86
votes
5answers
76k 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 semi-...
17
votes
3answers
7k views

How do I remap the Caps Lock and Ctrl keys?

I'd like to remap my keys such that Ctrl behaves as the Caps Lock key and vice-versa. Also, if possible I'd like the settings to be available only within the currently logged-in user. How can I ...
31
votes
5answers
18k 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 ...
11
votes
1answer
3k 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 ...
6
votes
1answer
3k 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 ...
6
votes
2answers
2k views

Is there a PPA for gvim > 7.4.338?

The breakindent feature is the greatest thing ever, but it's in 7.4.338. The latest version in the Ubuntu repos is just 7.4, I think. I notice Arch has a package for it, but I can't seem to find one ...
4
votes
3answers
988 views

Some of commands are not working in vim

I am just new to vim and i am following these tutorials for vim. But some of my commands are not working in Vim like:-- Capital W. f followed by a character. (To move to next same char.) Can any ...
6
votes
1answer
5k 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
2answers
98 views

Remove vim indents when I paste directly from system clipboard

I have a problem with vim when I paste something it puts them in by placing in each newline. How can I set default settings of vim.
1
vote
2answers
1k 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 ....
43
votes
17answers
73k views

text editors in ubuntu? vim vs. emac vs. nano [closed]

I was wondering the difference between these text editors and which is best used with ubuntu? What are each of them good for? Are there better ones?
32
votes
6answers
124k 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 ...
24
votes
2answers
19k views

How to change visudo editor from nano to vim? [duplicate]

When I use visudo, it always opens it with nano editor. How to change the editor to vim?
24
votes
3answers
15k 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 ...
15
votes
6answers
29k 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? ...
16
votes
1answer
10k 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) ...
11
votes
1answer
11k 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 ...
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
5k 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 : Tab-...
7
votes
6answers
13k 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
1answer
4k 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
2answers
15k 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 "/etc/dhcp/dhcpd....
6
votes
4answers
4k 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 ...
6
votes
1answer
4k 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 ...
5
votes
1answer
4k views

How to make cursor change from thin line to block based on normal or insert mode in Console Vim on Gnome Terminal

I am switching from Gvim to using Console Vim using the Gnome Terminal 2.32.1. I really liked in Gvim how the cursor would be a solid square when in normal mode and thin line when in insert mode. ...
3
votes
1answer
2k 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?
8
votes
3answers
937 views

Which application does the vi command open?

When you type vi in the terminal, the following output is shown ~ VIM - Vi IMproved ~ ...
8
votes
5answers
4k 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 ...
7
votes
1answer
224 views

Where to put xmodmap command execution for remapping CapsLock to Esc?

I am a vim user and I use Esc frequently so I mapped Caps Lock to Esc. I currently have this in my ~/.profile: # remap Esc to Caps Lock xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' The ...
5
votes
1answer
5k 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

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 ...
3
votes
1answer
193 views

Why does vi start vim but typing vim says vim needs to be installed?

When I type vi into terminal, VIM starts up. But when I type vim into terminal, the terminal says The program 'vim' can be found in the following packages: and lists different varieties of vim, as if ...
2
votes
2answers
579 views

Copy to Primary Selection in VIM

I tried "+y and "*y but both doesn't seem to copy into the primary selection. Note that vim --version returns -clipboard. Not sure what this means. Also note that I'm running VIM in a terminal. So ...
2
votes
1answer
487 views

Vim is not working fine in Ubuntu 13.04

How to install full version of Vim editor in ubuntu 13.04
2
votes
1answer
5k 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
1answer
341 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 ...
1
vote
0answers
505 views

Install vim-latex on Ubuntu 15

I've tried to install vim-latex via: sudo apt-get install vim-latexsuite vim-addon-manager install latex-suite I have added to my .vimrc filetype plugin on let g:tex_flavor='latex' When I start ...
1
vote
1answer
1k views

When I install packages, I keep getting fontconfig warning

I'm running Ubuntu 14.04 LTS on a virtual machine, and I was installing packages, specifically text editors in this case (emacs23, sublime, vim..). Anyways, I get this massive warning of font ...
1
vote
1answer
49 views

disable a key on an OS level

I have a volume control wheel on the bases of my laptop which I always spin by mistake. When spun, the letters 6 ~ start to pop up in rapid succession. Annoying as this is, when in my vim environment,...
0
votes
1answer
246 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 (...