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
15 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
11 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
7 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
16 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 ...
14
votes
3answers
9k 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
8k 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 ...
4
votes
1answer
915 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 ...
1
vote
0answers
46 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
22 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
23 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
2k 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
64 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
181 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
15k 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? ...
0
votes
1answer
55 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
68 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
34 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
98 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
votes
0answers
41 views

Vim installation 14.04

first i want to mention, i've read through several other threads discussing problems with vim installation, but none did help me. Secondly, i'm a newbie to ubuntu. apt-get update apt-get install vim ...
1
vote
1answer
42 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
23 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
18 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
125 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
115 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
131 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
402 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
56 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
68 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
42 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
140 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
169 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
23 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
36 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
55 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 ...
4
votes
4answers
9k views

No Terminal Library Found when Compiling Vim

I am running Ubuntu 12.04. I'm trying to a get a particular plugin for vim working and it requires that vim has ruby support enabled (the plugin is command-t). People tell me that I must go into my ...
1
vote
1answer
63 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 ...
21
votes
9answers
12k 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 ...
0
votes
2answers
404 views

Open files with vim in terminal

Is there any way to open file with vim in the terminal without typing file name, but for example then I see in the directory my file, go with arrow keys or something like that? I think I saw one of ...
1
vote
2answers
28 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
83 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 ...
5
votes
2answers
817 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 ...
1
vote
2answers
1k views

Disable keybindings in byobu using tmux backend

I've setup the alt + arrow keys bindings for changing tab in vim (in .vimrc): map <silent><A-Right> :tabnext<CR> map <silent><A-Left> :tabprevious<CR> this ...
0
votes
1answer
317 views

Why won't Vim source my .vimrc at startup?

Note: edited to provide more info. I have modified my ~/.vimrc significantly (although some of my initial modifications I made in the system-wide /etc/vim/vimrc). It probably doesn't matter either ...
67
votes
4answers
48k 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 ...
0
votes
1answer
29 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.
2
votes
1answer
43 views

Navigate vim help with CTRL-]

I am using Ubuntu 14.04 with default settings for shell. When I use gnome-terminal to open vim help, it does not work when I hit CTRL-] when being on a tag (note that this works with tty1). Vim help ...
0
votes
0answers
93 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
65 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
14 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 ...