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
0answers
16 views

g++ and vim on Ubuntu phone

Can i install g++ and vim on my ubuntu phone? I have tried running sudo apt-get install vim g++ from the terminal app, but neither were in the repositories.
0
votes
0answers
6 views

How do you get FakeVim in the Ubuntu SDK to use ~/.vim/plugin/colemak.vim?

I have a custom layout for vim, that remaps the keys to fit my colemak keyboard layout. In the ubuntu SDK, fakevim does not use the custom layout defined in ~/.vim/colemak.vim. How can get fakevim ...
1
vote
1answer
25 views

When exiting Byobu, close all non-exited vim sessions

I have configured Byobu to open a dozen text files at startup: new-session -n memo /home/nico/bin/vim-my-memo.sh; new-window -n client1 /home/nico/bin/vim-client1.sh; [...] It works well, but ...
1
vote
1answer
23 views

Vim in shell allows <alt>[a-z] to circumvent having to press <escape> to get out of INSERT mode. How can I apply this to Gui implimentations of Vim?

Vim in shell allows <alt>[a-z] to circumvent having to press Esc to get out of INSERT mode. For example, Open up a terminal and set its editing mode away from emacs, to vi set -o vi Now ...
0
votes
0answers
13 views

Key behaviour in vi editor [duplicate]

I have noticed strange key behaviour in my vi editor. During insert mode key Home returns cursor to line beginning (that was expected) and inserts one line above current one and writes letter H: ...
-1
votes
0answers
17 views

How to install Vim plugins in Ubuntu?

I am new to Ubuntu Linux environment. I want to install Vim plugins and I am not understanding the method to do so.
0
votes
0answers
14 views

How to change toolbar color in gvim?

I've been customizing my gvim but I'm currently stuck since google searches doesn't seen to give me answers about the topic above.
1
vote
1answer
33 views

How to apply Vim color scheme to all users?

I installed a new color scheme for my vim editor and have put an entry in ~/.vimrc to start vim everytime with this color scheme. But the problem is it applies to vim sessions opened ONLY with sudo. ...
2
votes
1answer
19 views

tabbing with vim

I made the mistake of posting this on the unix echange originally beore realizing ubuntu had a separate site. I'm using Ubuntu with vim as my text editor of choice. I know some people set shortcuts ...
0
votes
0answers
6 views

Can VIM (plugin) give a warning if dead keys are enabled?

I often switch between dead keys and composed key text input/entry. That's easily done by the icon in the top panel. For VIM dead keys make no sense. Is there a plugin for VIM that can give me a ...
0
votes
0answers
45 views

vim binary with all libraries statically linked

I want to build vim with all libraries, which vim depends on, statically linked. Vim version is sufficient to run YouCompleteMe. I use the following flags with configure script: $./configure ...
1
vote
2answers
36 views

vim: changing variable value line by line

Lets say I typed the following a + 1 =b and a+1=c I need 2 more expressions like that but I want to increase the value of 1 to 3, so I copy pasted the expression above 2 more times and manually ...
0
votes
2answers
41 views

How can I update vim in ubuntu 14.04LTS

I have vim version: 2:7.4.052-1ubuntu3 installed. How do I update to the latest version using the terminal?
3
votes
1answer
88 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 ...
1
vote
1answer
26 views

Vim macro broken after switching from Gnome Terminal to Byobu

In my .vimrc I have this line to quickly insert a </p> line: let @l='^[I</p>^M^[^[OH^[OB' I was working great in gnome-terminal, but in byobu it adds an extra line containing H. How to ...
6
votes
3answers
546 views

How to copy from vim to google chrome? [duplicate]

I want to select all contents of a file and copy it to google chrome. I have tried shift-ctrl-c but it isn't working.
0
votes
0answers
62 views

How to install and use vim without messing up with write mode

The terminal app works fine, I can run vi using it. The problem is that I've already get used to vim and don't want to learn all the vi-vim differences just for editing plaintext. I assume there must ...
3
votes
2answers
50 views

Funny TTY/Terminal behavior when sudo-ing as a user?

I set up an Ubuntu VPS from Digital Ocean recently. When I log in as root, I'm able to navigate around the terminal properly When I sudo as any other user, I get some extremely strange terminal ...
0
votes
1answer
17 views

Vim mksession not saving split windows

I'm trying to save a Vim session that contains 2 panels in a vertically split layout. I have tried using mksession and also the vim-session plugin, but whenever I reload a session, the split window ...
0
votes
1answer
20 views

GVim extra linespace

I recently installed GVim and set the font to DejaVu Sans Mono size 11, but I noticed that there are 2 pixel lines between the lines, making the lines look apart. With linespace set to -2, the spacing ...
0
votes
0answers
31 views

What is my problem in VIM?

I am adding to PATH in VIM in terminal but I'm getting an error. I followed this guy's instructions carefully and even though he didnt get the error i did. I was following Android Development for ...
0
votes
0answers
31 views

Need help removing a program

I'd installed vim using apt-get, but in my infinite wisdom, I decided to uninstall it and try installing from source. I don't know why, but the end result was kind of borked up. I'm trying to ...
0
votes
2answers
26 views

vim mapping from q! to Q!

I was trying to map 'q!' to 'Q!' in .vimrc ? I tried the following but not working. :command Q! q! Please provide any suggestion to mitigate this issue. Thank you.
0
votes
0answers
11 views

vim plugin not activating

I had installed a scala plugin but it is not activating on a .scala file. Here is my .vim directory: 11:49:43/clustering $find ~/.vim /Users/steve/.vim /Users/steve/.vim/.netrwhist ...
0
votes
1answer
29 views

Changing background colour of selected search in vim in gnome terminal

Having hlsearch enabled, if I use something like :%s/search term/replacement term/gc vim will highlight all occurrences of the search term by using black foreground on yellow background, but for the ...
1
vote
0answers
78 views

vim with python3 compatibility

So I followed this way What's the easiest way to get vim with python 3 support? which didn't work and this one http://www.xorpd.net/blog/vim_python3_install.html that did work. the thing is each ...
2
votes
2answers
44 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.
4
votes
1answer
222 views

vim unable to write to files even though sudo is used

I find that with vim, if I try and edit a file which as a normal user I do not have write access with, even if I use sudo, I am unable to write to it, although if I use nano to edit the same file it ...
0
votes
0answers
196 views

I want to install vim with ruby support on Ubuntu 15.04 vivid vervet

I have installed Ubuntu 15.04 and am trying to set up my Ruby on Rails environment to program. I use vim as the IDE and it comes pre-installed without ruby support: vim --version | grep -i ruby ...
1
vote
1answer
66 views

Using “dd” in Vi (delete multi lines) not accepted if number of lines > file length

I often edit a file locally then cut and paste it into a remote ssh session inside a vi session. The first step is to delete the entire contents by doing something like 9999dd Which will delete ...
0
votes
1answer
185 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
1
vote
2answers
32 views

vim and system clipboard

I can cat a file, copy and paste text with the middle button or shift-insert. How can I copy text in vim and paste it from the system clipboard?
1
vote
1answer
30 views

Vim not displaying Input mode (14.04)

When I open up the Vim editor, it's supposed to show at the bottom of the screen whether I'm in Input mode or not. But it stays blank whether I'm in Command mode or in Input mode. Also, vimtutor ...
1
vote
1answer
73 views

How to build .deb files of vim which support both python2 and python3 on Ubuntu14.04?

I tried this tutorial but when I ran the command dpkg-buildpackage -us -uc, it failed.... I don't know what's wrong. This is the log: Test results: test87 FAILED TEST FAILURE Makefile:49: recipe ...
1
vote
4answers
118 views

Unable to copy text from the terminal to external programs

Aim: I want to copy my public ssh key generated on AWS Server to my github account. I have little experience with Ubuntu. I use the ssh command from my laptop to connect to the AWS Server. The ...
1
vote
1answer
27 views

Vim buffers not unloading

I can't make vim to delete or unload buffers when there are not active on a vim panel anymore. I tried placing this on my .vimrc set bufhidden=delete and also set bufhidden=unload But none of ...
1
vote
1answer
47 views

How to highlight a searched text in vim editor?

I have vim editor version 7.3 However in this when I search for a test by typing :/SEARCHTEXT the cursor goes to the line containing the text which is searched, but the text itself is NOT ...
0
votes
1answer
77 views

unable to install vim

I am using Ubuntu 12.04 and when I try installing the vim editor with: sudo apt-get update sudo apt-get install vim I receive the error: THE PACKAGE VIM HAS NO INSTALLATION CANDIDATE. I have even ...
1
vote
1answer
47 views

How to copy from vim visually with terminator?

I would like to be able to visually select in vim in terminator, right click and copy whatever is highlighted to the clipboard. In OSX for example, I can do this by holding down the "alt" key and ...
2
votes
1answer
204 views

which vim should I use in xubuntu / Ubuntu+XFCE?

Which vim should I use in xubuntu / Ubuntu+XFCE? My current system is Ubuntu, but I have replaced the Unity interface with XFCE (via sudo apt-get install xubuntu-desktop). There is no vim installed ...
1
vote
2answers
36 views

How to use vim command character to find an explain in it's help file

I try some vim command, and find the gh command will start a new command mode, which shows --select-- in my screan. just like the --visual-- command mode, that this --select-- mode can select some ...
0
votes
1answer
120 views

VIM in gnome-terminal keeps printing weird 001B character

I have VIM installed on Ubuntu 12.04, and run the terminal version in the gnome-terminal. However, recently (I don't know what caused the change) when editing files in VIM it will sometimes insert a ...
0
votes
1answer
41 views

How to remap “ctrl+w+shift+f” to “gf” in vim to go to line of file under cursor in split window?

Ctrl+w+Shift+f will go to line of file under cursor in split window. I want to set a small shortcut say gf which should be mapped to Ctrl+w+Shift+f.
0
votes
0answers
127 views

Compiling vim with python support on ubuntu 14.04, no errors and no support

I'm trying to compile vim with support for YouCompleteMe as per the github guide [redacted because no reputation] and I'm having strange results. Vim compiles correctly as best I can tell and doesn't ...
2
votes
2answers
109 views

Remove vim before installing vim-gnome?

Should I remove vim before installing vim-gnome? It seems redundant to leave vim there, but I'm afraid to remove it. (I'm very new to Ubuntu.)
0
votes
0answers
19 views

Character key 'T' prints 7 in vim

I am using Ubuntu 13.10 x86_64 with VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 12 2013 00:23:19). Whenever I press the key 'T' in VIM it prints 7 like a leetspeak. The key works fine outside ...
1
vote
1answer
104 views

Can't install vim-gnome

On the last Ubunt 14.04 upgrade I'm not able to install vim-gnome anymore due the following error: The following packages have unmet dependencies: vim-gnome : Depends: vim-gui-common (= ...
2
votes
1answer
80 views

Repair Vim editor

I'm running Ubuntu 14.04 and I have some troubles with Vim editor. First I was using the normal version preinstalled with Ubuntu, then I installed VI Improved from Ubuntu Software Center, with some ...
2
votes
1answer
55 views

vim Different configuration in tty1-6 from tty7

The default configuration for vim seems to be different for tty7. When I open a terminal in the default gui on tty7 and start vim I can hold shift and press the left or right arrows to move the cursor ...
0
votes
0answers
54 views

vim in tmux breaks with cyrillic symbols

So, I have file with russian text. Using Ubuntu 12.04 If I run vim in clear console and open this file - everything is ok, here is screenshot But if I run vim in tmux the result is Here is my tmux ...