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

0
votes
1answer
100 views

"+y does not copy to the clipboard

I am trying to copy a piece of text to the system clipboard. First, I do a visual selection: select " then + then y. I then get a message 7 lines yanked. When I press p, the data is pasted in vim; ...
2
votes
0answers
12 views

GVim operator pending commands only work after suspend or waiting an arbitrary amount of time

Basically, on a fresh boot, many of the standard operator pending commands don't act as they should. Instead, they seem to act as if the operator pending command was never issued, sort of. ciw will ...
3
votes
3answers
318 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My vim doesn't have python support. The thing is that I installed vim, vim-gnome, vim-nox, I surfed net for hours and tried to build vim from source, I deleted some stuff like vim-...
5
votes
1answer
216 views

How can I change the cursor in vim depending if I'm in insert mode or normal mode? [on hold]

I'm used to working on GVim, but I want to make most of vim+tmux too. Therefore I have decided to switch to vim. But in vim the cursor style does not change depending on the mode. I use zsh and ...
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....
2
votes
1answer
26 views

Why do my windows occasionally stop taking keyboard input after alt-tab?

I have recently installed Ubuntu 16.04. Two different applications (Vim and Awesomenauts), on different occasions, have started completely ignoring keyboard input - though mouse input still works. ...
0
votes
0answers
28 views

How to use vim or mutt as a back-end for Thunderbird?

When I send an email I usually use mutt because that lets me use vim. Sometimes, for longer mail, I open a file in /tmp named wxyz and run that through to correct spelling and capitalization, &c. ...
12
votes
2answers
41k views

Open an existing file from Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?
1
vote
2answers
35 views

Open Vim in Xfce4 Terminal from Thunar

I am using Xubuntu 16.04. I have set the default application to Vim for plain text files in Thunar. By default Vim opens in XTerm and not in Xfce Terminal. I would like for it to default to Xfce4 ...
0
votes
2answers
356 views

Invalid eclipse home when installing Eclim

I am encountering a issue when installing the Eclim. It is not able to detect the location of the Eclipse. At the installation screen, I select the Eclipse home folder, but the Eclim installer has an ...
1
vote
1answer
199 views

GLib-GObject-WARNING when closing gvim

I set my computer up new with Ubuntu 16.04 today. I already installed vim-gnome. While working with it, everything is fine. But when I close gvim I get this message in the terminal: (gvim:5834): ...
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
0answers
17 views

How do you remap .vimrc so Ubuntu SDK's fakevim implementation will escape insert mode on <Right>, <Left>, <Home>… etc

Ubuntu SDK has fakevim. Its behavior varies compared to real vim. For example; inoremap <Up> <C-[><Up> inoremap <Down> <Esc><Down> While in Insert Mode, &...
1
vote
1answer
47 views

vim syntax highlighting ubuntu touch

I'm trying to get syntax highlighting working while using vim. :version gives me: "Small version without GUI". I installed both "vim-gui-common" and "vim-runtime", but everytime I issue the ...
4
votes
0answers
40 views

Installing vim latex-suite plugin?

I have installed vim-gtk and vim-addons-manager on my ubuntu 14.04, and also the latex-suite plugin. This I did with sudo apt-get install vim-latexsuite vim-addon-manager enable latex-suite which ...
0
votes
0answers
28 views

How do I upgrade vim 7.4.52 to a higher version like 7.4.314 on Ubuntu 14.04? [duplicate]

I'd like to use YouCompleteMe in Vim and I have to upgrade to a version higher than 7.4.314. apt-get install vim gives me Vim 7.4.52. Is there a command line method?
10
votes
4answers
4k views

Using gvim as editor for Thunderbird

Can I somehow use gvim to compose my email messages in Thunderbird?
0
votes
1answer
123 views

Why is .vimrc not changing the appearance of vimtutor?

I am starting with Vim. I created a ~/.vimrc file in my home directory and started adding preferences. When I save and start the file again I can see the preferences taking effect in my vim. ...
78
votes
5answers
54k views

vi shortcut to delete “until the next X character”

I understand that vi has shortcut keys to delete character, word and line with various options. However, I could not find this: to delete from cursor to the next specified character. I might type du"...
30
votes
4answers
18k 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 ...
1
vote
1answer
37 views

How do I undo an action in Vim?

I know that there is a command or something you can type in Vim that does the same as CTRL + Z does in most GUI programs in order to undo what was just typed, but I can't remember what it is. Does ...
3
votes
2answers
2k views

How to change key-bindings in firefox?

Firefox constantly keep moving platformHTMLBindings.xml when it upgrade. I want to replace it to support vi key-bindings. But I cannot find it any more. sudo find / -name platformHTMLBindings.xml -...
6
votes
3answers
2k views

No python intepreter in vim for Ubuntu 16.04

I've recently installed Ubuntu 16.04 and in the Release Notes it says VIM defaults to python3 On my fresh install of Ubuntu 16.04 I installed vim with the following commands $ python3 -V Python ...
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 ...
27
votes
3answers
42k 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 ...
1
vote
2answers
251 views

How to Install vim-full in 16.04?

I cannot find it in apt-get. I need vimdiff. How can you install vim-full in Ubuntu 16.04?
5
votes
4answers
9k views

How can I update vim to a newer version than 11.04's repo version (7.3.35)

Ubuntu 11.04 comes with vim 7.3.35 in the repos, and this version has a bug which is preventing me from using the Command-T plugin (the bug is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614336) ...
0
votes
1answer
181 views

unable to install vim on docker's ubuntu container

Using ubuntu 14.04 platform, installed docker: ubuntu@ubuntu:~$ docker --version Docker version 1.10.2, build c3959b1 in docker, running ubuntu image/container root@2a14c4a7b565:/# uname -a ...
1
vote
1answer
16 views

Maximize Terminal Window on Launcher where Terminal=True

I have searched the internet for a while now, but have not found a suitable answer. I have vim installed with a .desktop file to start vim (not gvim!). In the .desktop file it has a Terminal=True. ...
1
vote
0answers
37 views

Vim 7.4: Strange behavior with invalid actions

I have a problem with Vim 7.4 on my laptop installed with Ubuntu 14.04. When I perform any invalid action, I expected that nothing happens, But I always received strange symbols look like quote ...
29
votes
10answers
20k views

Vim in tmux display wrong colors

I installed Ubuntu 11.10. Then downloaded Solarized theme for Gnome Terminal. From terminal my vim looks good: plugin vim-powerline displays correctly and syntax is highlighted with proper colors. But ...
2
votes
2answers
2k views

Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that: The default VIM package has been built against python3 instead of python2. Yet after I installed vim with the following command: sudo apt-get ...
1
vote
0answers
31 views

YouCompleteMe plugin of VIM not working with NLTK

I have recently installed the YouCompleteMe plugin for vim through Vundle. It works really well for Python. Problem starts when I import the third party library nltk. For example if I do the following ...
1
vote
2answers
70 views

vim.desktop - changes lost when terminal exits

I was thrilled to notice a GNOME launcher for vim in the vim-common package after I upgraded to Ubuntu 16.04, since it offers an alternative to gvim (a solid app, though not perfect for my workflow). ...
0
votes
0answers
17 views

Are there any downsides/risks to using vim-gtk on production server?

I know this seems to be considered blasphemy but I really don't like editing server files with vi. If I install vim-gtk on my production server so I can use gvim and use x11 forwarding in putty to ...
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.
0
votes
1answer
108 views

badwolf color scheme does not work on ubuntu 14.04

I want to use color scheme badwolf for my vim so I downloaded it from here https://github.com/sjl/badwolf and copied colors/badwolf.vim to my ~/.vim/colors directory. But it does not work. It does not ...
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 ...
0
votes
3answers
60 views

Is it possible to have both vi and vim installed so that they can be used separately?

I can't use vi, well, I can, but I would much prefer vim, however I need to share a computer with someone who hates vim and can only use vi... After installing vim I find that if I use the vi command ...
13
votes
2answers
10k views

vi, getting multiple “Sorry, the command is not available in this version…” after reinstall

From my .vimrc, getting: line 16: E319: Sorry, the command is not available in this version: filetype on line 17: E319: Sorry, the command is not available in this version: filetype plugin on ...
1
vote
2answers
3k views

Vim refuses to start with “error while loading shared libraries: libperl.so.5.14” after upgrade to Ubuntu 14.04

After I upgraded to Ubuntu 14.04 vim refuses to start, showing the following error: vim: error while loading shared libraries: libperl.so.5.14: cannot open shared object file: No such file or ...
1
vote
1answer
45 views

Edit crontab with an editor other than the default

I would like to edit crontab with vi once. My default editor is nano, and I want to keep it that way. I only want to edit with vi one time. I don't want to change the default to vi then back to ...
1
vote
1answer
80 views

How to install Emmet (or any web development Plugins) for vim editor

I am trying to develop my Website but I am not interested on using graphical interfaces. I would like to use vim only. I went on this page http://www.vim.org/scripts/script.php?script_id=2981, but, I ...
1
vote
1answer
2k views

Vim YouCompleteMe installation

I'm trying to install YouCompleteMe plugin alongside my Vundle plugin manager for Vim. I've just added the Plugin 'Valloric/YouCompleteMe' line to my ~/.vimrc and then I wrote:PluginInstall in Vim, ...
1
vote
0answers
29 views

Setting vim background mode depeding on time of day

Several colorschemes in vim have two modes, which change the colors when you do set bg=light/dark. I'm wondering if it's possible to setup my .vimrc file such that it sets an appropriate mode ...
0
votes
2answers
266 views

Can't save .bashrc file in VIM (“The swap file ”.bashrc.swp“ already exists!”)

I have problem with .bashrc file I can't save changes by command :wq. When I put command to terminal vim .bashrc I have message like below. And when I choose "Edit" I am in .bashrc but :wq isn't save ...
2
votes
3answers
109 views

Problem selecting Vim version:

I use ubuntu 12.04. I want to install the latest version of Vim(7.3) with all its important plugins. So, which version of Vim should I install?: Vim or Vim-Gnome or Vim-athena or any other version? ...
0
votes
0answers
41 views

Open file in vim using symbolic link

I have symbolic link in current directory that points to text file. How to open file in vim using that symbolic link? command vim linkname not works.
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 ...
0
votes
1answer
59 views

vim theme showing up strange in tmux

My vim is configured like so: syntax on colorscheme brogrammer set nu set expandtab set tabstop=4 set autoindent My tmux is configured like so: set -g default-terminal "xterm-256color" ...