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
32 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
33 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 ...
1
vote
1answer
21 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 ...
0
votes
2answers
23 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?
2
votes
0answers
58 views

Vim does not load colorscheme from .vimrc when started from tmux

I got a very simple startup script, that starts a gnome-terminal with a running tmux session. #!/usr/bin/env bash gnome-terminal -e "tmux" --window --full-screen When I run vim inside this ...
3
votes
1answer
82 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 ...
5
votes
3answers
522 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.
21
votes
10answers
13k 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 ...
7
votes
3answers
898 views

Can I get italics in gnome-terminal?

After a lot of searching I cannot find a way to get gnome-terminal to display italic fonts. I'm running version 3.6.2. Specifically I would like vim to display comments in italics; I've added ...
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 ...
0
votes
1answer
18 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
49 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
38 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 ...
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 ...
0
votes
1answer
15 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 ...
2
votes
2answers
214 views

Daily builds for VIM

Is there any PPA that allows to be up to date with the latest changes in VIM, even they are buggy or not? I would like to know that I use the latest VIM build even it is unstable. Also, the ...
0
votes
0answers
27 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 ...
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 ...
0
votes
0answers
27 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
23 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
24 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 ...
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 ...
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 ...
1
vote
0answers
66 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
40 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
1answer
36 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 ...
1
vote
2answers
3k views

Powerline fonts aren't working

I have installed powerline and installed the Ubuntu Mono Powerline fonts and selected the font as the font to use in the terminal. The special characters still aren't working after installing the ...
1
vote
4answers
98 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 ...
4
votes
1answer
211 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 ...
2
votes
3answers
98 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? ...
11
votes
6answers
17k 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? ...
1
vote
1answer
64 views

View .deb package files in vim

vim is capable of reading compressed files (for common methods, at least). However, it sees Debian package files as binary gibberish. The Archive Manager tool can, however, open package files and show ...
0
votes
0answers
151 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
56 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
164 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
1answer
61 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
2answers
30 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
27 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 ...
3
votes
1answer
139 views

How to transform Vim configuration into Emacs one?

I need to setup Emacs editor by preparing the ~/.emacs configuration file. I have been using Vim for years and now I want to switch to Emacs for various reasons that are out of scope of this post. To ...
3
votes
2answers
122 views

Reflect changes to file that .vimrc sources

Here is my set-up. There is a ~/.vimrc that sources several files. I make changes to one of these. And I do :so ~/.vimrc, the changes in the underlying files are not reflected. I need to quit and ...
2
votes
1answer
140 views

How to disable Lazy Preempt in kernel

I'm relatively new to Linux and working on getting a real-time kernel up and running for robot applications. I'm on Ubuntu 14.04, using kernel 3.14.3 and the 3.14.3-rt5 real-time patch. Also using ...
3
votes
1answer
434 views

vim cursor color change only applied upon movement

In my .vimrc I have the following (based upon a tip on the vim Wikia): if &term =~ "xterm\\|rxvt" " use an red cursor in insert mode let &t_SI = "\<Esc>]12;red\x7" " use an ...
3
votes
1answer
57 views

Vim and muscle memory

I made in my vimrc an abbreviation because I want to only write "foo" to write "bar", and thence I mapped "bar" to "NOPE" so that I would be punished if I tried to write directly "bar". iabbrev foo ...
2
votes
4answers
73 views

How do I access files installed with sudo apt-get

I just installed Ubuntu a few days ago and I am trying to download and use VIM. So I went to terminal and ran sudo apt-get install vim, and everything went fine with running the command, the only ...
3
votes
2answers
44 views

Turn off colour while using script(1)

Is there a way to turn off colour while using script(1)? My script file is being filled with unnecessary information regarding colours from commands such as ls. This information is only visible when ...
1
vote
1answer
154 views

How to disable terminal fullscreen padding

When I run vim at full screen mode in gnome-terminal, actually it is not really full screen. There is a little padding on the right and bottom, with the terminal background color. You can reach the ...
2
votes
1answer
171 views

terminal vim colours broken on focuslost

My vim setup uses the csexact plugin to fix match the colors for color schemes that would normally only work in gvim. Everything works fine until gnome-terminal loses focus, and suddenly everything ...
1
vote
1answer
25 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
45 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 ...