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

1
vote
0answers
5 views

Gnome-terminal vim gruvbox

Just installed gruvbox color scheme for Vim on Ubuntu, but the color scheme is not fully supported in the terminal. It works fine on a fedora box. Do I need any additional settings?
2
votes
1answer
22 views

Vim No GUI and clipboard

I have Gnome Ubuntu 14.04 and I reinstalled vim (without GUI, I did not enable gui because I don't think I need it) and replaced netrw with the latest to have :Lexplorer. Now when I use vim's File ...
1
vote
1answer
26 views

Need good example of .vimrc file

I wanted to start using Vim, and need to create .vimrc configuration file for it. Where can I find some ready to use, good quality examples with described every option?
-1
votes
1answer
22 views

Vundle - Plugins installed but not loading

I've installed vundle on my ubuntu box but when I load vim none of the plugins load. My .vimrc from my home directory [some commented lines edited out]: runtime! debian.vim set nocompatible ...
1
vote
1answer
35 views

Pair Programming in Ubuntu SDK?

How do you do collaborative code editing, aka pair programming, in the Ubuntu SDK? I heard you can do this in Vim, and I wonder if the Vim functionality in QtCreator makes this possible.
0
votes
1answer
16 views

make the line bold or highlight on find command on vim

I know by /foo you can find and go on foo. So what I am looking for is highlighting that line. I mean when vim find foo and the courser points to foo, also highlight that line which include foo.
1
vote
1answer
12 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 ...
2
votes
0answers
26 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 ...
25
votes
5answers
2k views

Access to the terminal while you are on Vim

Is there a way to access the terminal while using Vim? I do not like to open another terminal or save and exit the current terminal.
0
votes
2answers
43 views

Vim installation in Ubuntu 14.04

I am unable to install Vim and need help. I've tried the following: root@cbitlab1:/home/cbitlib1# sudo -s root@cbitlab1:/home/cbitlib1# apt-get install vim Reading package lists… Done Building ...
1
vote
0answers
19 views

Why is vim's colorscheme not coloring the entire window?

Only the portions of the terminal with text on it is colored. Not sure how to describe it, please see the attached screenshot.
0
votes
0answers
16 views

go back to vim's default color

I read this :highlight Normal ctermfg=grey ctermbg=darkblue from http://stackoverflow.com/questions/1117526/setting-the-vim-background-colors But I change the darkblue to white!! What I done? OMG? ...
3
votes
2answers
56 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 ...
3
votes
1answer
77 views

Can I open two or more files in vim at once?

I have a file with the name First.txt, which I opened that by vim. Now I want to go another file which its name is Second.txt . How to open Second.txt while I do not close First.txt. How to switch ...
0
votes
2answers
49 views

go on the line where a variable define on any editor

Is there any add-on or ability on geany or any known linux editor for this purpose : when you click on one variable . The mouse coursor goes to when it initialize. My code is c language. what I am ...
0
votes
1answer
47 views

Trying to map <Ctrl>+<hjkl> to <Left Down Up Right> globally (Vim-like arrow keys) with xmodmap

I am trying to map Ctrl+H,J,K,L to arrow keys Left,Down,Up,Right, respectively, on Ubuntu OS (globally, not inside Vim). I've attempted the solution posted here, but the modifier commands are not ...
1
vote
2answers
39 views

Unable to run shell script inside VI/VIM

I am trying to run a shell-script say test from vim #!/bin/sh echo good morning Now when I am using :!% I am getting a pop like shell returned 1 Press ENTER or type command to continue instead ...
0
votes
1answer
39 views

Can't start gvim from the launcher

I don't know why I've been having so many problems with gvim lately, but now I can't start it from the launcher. I click on it, and it glows and pulsates for awhile, but after a few seconds it stops ...
0
votes
1answer
25 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 ...
2
votes
3answers
29 views

Resuming a vim session I have accidentally Disconnected from

I came across an unusual problem today, I was using vim, had created a new alias in bash, and wanted to try it out. so I ctrl-z, exec bash (I do this because I don't like nesting it with bash. and my ...
0
votes
1answer
19 views

Color code of s file in vim

I am writing a .s file in vim. When the string '8d' is written, it is coloured in yellow. Why? Does '8d' have any particular meaning in machine code?
2
votes
0answers
24 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 ...
0
votes
1answer
44 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) ...
0
votes
1answer
38 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 ...
0
votes
0answers
59 views

Ubuntu 14.04 Emacs installation problem

I have emacs 24 installed, and trying to obtain package from melpa, but the archive won't download. I am running Ubuntu in virtual box 4.3 on Windows 8. I then returned to my old standby Vim 7.4, ...
-1
votes
1answer
49 views

how to solve Unmet dependencies?

I am using Ubuntu 12.04. I am trying to install vim editor. When I run sudo apt-get install vim command then I got error like follow: Reading package lists... Done Building dependency tree ...
0
votes
0answers
16 views

Install vim offline [duplicate]

I have Ubuntu 12.04.02 desktop in my college Lab of around 15 pcs with no internet connection. I used to install packages : sudo apt-get install vim It was just fine. But, now I want to install ...
5
votes
4answers
618 views

How to edit files in a terminal with vim? [closed]

It is not always possible to edit and create files in a terminal , and I would like to get answers of the basics of manipulating files in a terminal using vim under Ubuntu Linux. Specific questions I ...
0
votes
3answers
65 views

How to copy file and paste its path in Vim in normal and insert mode?

Ubuntu has this feature that copy a file and pasting it into a text field pastes its path in the text field. Good. But how to do to that in Vim (launched using vim -g after installing vim-gtk) both in ...
4
votes
3answers
307 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 ...
1
vote
1answer
106 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 ...
0
votes
0answers
29 views

Why is this key remapping not working in Vim?

This problem is getting me really crazy. I used Gvim and Autohotkey under Windows 7 in the past. For various reasons, I mapped CTRL+D to behave likes Enter. This worked well so far. In Gvim I mapped ...
1
vote
1answer
26 views

how to close help in vim

I wrote :help x11-selection on vim. Help appear for that command . Now my Vim screen split to two part first is the vim help below that there is my previous text file. Now I want to come back to my ...
3
votes
2answers
117 views

Geany symbol menu in VIM

On the Geany editor there is symbol tab which when you pass one C program to Geany it shows all functions and classes and variables and macros in the list . So is there any ability like that in VIM? ...
0
votes
0answers
61 views

How to view UTF-8 Unicode characters in VIM

I am using VIM 7.4 on an Ubuntu 14.04 64 bit machine. In my .vimrc file, I have the following lines: " Use UTF-8 without BOM set encoding=utf-8 nobomb The config file basically uses Unicode ...
2
votes
1answer
52 views

Why does it take a long time to open certain small text files in Vim?

Why does it take a long time to open certain config files accessible only to superuser in Vim? For example: $ sudo vim /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla It takes ...
0
votes
1answer
81 views

Qt5-default package not found

I am trying to do: sudo apt-get installl qt5-default Reading package list... Done Building dependency tree Reading state information... Done E: unable to locate package qt5-default On a Qt-forum I ...
1
vote
1answer
58 views

Why does Vim highlight Javadoc comments like this?

I am using vim to edit Java code. I added a Javadoc header above the class definition, but the syntax highlighting is very strange: read the Javadoc comment above Why is the first sentence ...
0
votes
0answers
118 views

vim in 14.04 (Trusty) starts up in Replace mode

I just deployed a handful of 14.04 systems and I'm noticing that whenever I vim something, vim is already in replace mode. As I'm used to being in command mode on starting, this is rather ...
0
votes
0answers
60 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 ...
1
vote
1answer
66 views

Keeping color from vim with grep

I like the way vim highlights the output from syslog. However, I only want the most recent outputs to be opened. I tried grep --color=always "$@" /var/log/syslog > /tmp/fileOUT vim /tmp/fileOUT ...
1
vote
2answers
311 views

How to install and use jedi-vim python IDE for vim on ubuntu

How to install jedi-vim python plugin on vim installed on ubuntu and use it's features from remote terminal window. I have gone through documentation as describe but my vim acts in the same normal was ...
1
vote
1answer
23 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 ...
0
votes
1answer
85 views

:set title in vim doesn't work in gnome terminal

I need to be able to see what I'm working on. On my sisters laptop using unity, :set title sets the title, but on my GNOME desktop with GNOME Terminal 3.10.2 it doesn't do anything. I can set the ...
1
vote
1answer
314 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 ...
0
votes
1answer
35 views

Trying to get Vundle to work with VIM

I am following this tutorial, which is actually the Vundle's homepage in github and in step 3 it's telling me to put some code into .vimrc: "Put this at the top of your .vimrc to use Vundle. Remove ...
0
votes
1answer
399 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 ...
4
votes
1answer
54 views

Open several vim-encrypted files with the same password

Let's say I have three files in the same folder, a.txt, b.txt and c.txt, all of them encrypted (with Vim) with the same password ("asdf" for example). Is there a way to open the three of them entering ...
0
votes
1answer
129 views

Ctrl+Space mapping broken in Vim after upgrade to 14.04

I recently upgraded to Trusty via reformatting my system partition and keeping my home partition intact. Everything has gone smoothly except my mapping of Ctrl-Space to Escape in Vim no longer works. ...
0
votes
1answer
18 views

VIM stopped accepting a keyboard command

For some reason as of 3 days ago my VIM stopped accepting Ctrl-x from me. I have this combo mapped to Copy to X clipboard. It worked perfectly before 3 days ago. I have not changed my .vimrc file at ...