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
37 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
0answers
12 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
1answer
17 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 ...
-4
votes
0answers
32 views

how can i Write a scrip to copy files [on hold]

how can i Write a scrip to copy files. ./mycopy.sh file1 newfile1 And in the script I have to check whether newfile1 already exist. If so, it will exit the program with an error messageTarget ...
1
vote
2answers
23 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
53 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
18 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
69 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
32 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 ...
1
vote
1answer
43 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
34 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
29 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
21 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 ...
3
votes
0answers
61 views

Vim doesn't have 256 colors

I've been experimenting with different colorschemes in vim lately. My problem is that the colors used by the schemes only use the 16 colors in my Profile Preferences, even though my terminal supports ...
1
vote
6answers
419 views

How to open a found file with vi? Piping 'find' output to vi [duplicate]

I have a file, /home/user/important.txt. To find it, I use: find /home/user -type f -name 'important' Then, I want to open the file in the Vim editor using a pipe. How can I do this? Something ...
1
vote
1answer
28 views

How can I create help tags for vim plugins from packages?

I have installed the vim-latexsuite and vim-outliner packages, which are addons for vim. Both come with documentation files, that are installed into the /usr/share/vim/addons/doc directory. Issuing ...
2
votes
0answers
46 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 ...
3
votes
1answer
242 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
1answer
21 views

Copy text between two different sessions of terminal for different users?

I have on my ubuntu two users, user1 and user2. user1 is the main user, but user2 I use it only for development for a specific project that required it like that. I use vim editor, with the ...
1
vote
0answers
98 views

install and enabling vim-youcompleteme on Ubuntu 14.10

I did follow instructions for installing vim-youcompleteme. I searched for similar questions and answers, but still not helping me. I have clean install of Ubuntu 14.10. Then I installed vim 7.4, ...
2
votes
1answer
27 views

Vim - Set number command on startup

What is the file to edit, to show lines number on startup using vim ?
1
vote
2answers
108 views

Vim - Add a character to X next lines

I would like to add a # to the beginning of the 15 next lines (to comment everything). I know how to do it for 1 line : i -> #. My second question would be the opposite, how to delete the first ...
0
votes
0answers
31 views

vim syntax color confuse [spf13-vim]

under the molokai color theme there are some characters would be automatic marked in red color and some tab characters would be automatic marked in white color too how to solve the automatic marked ...
0
votes
1answer
67 views

tmux in terminal forcing 16 color approximation

In the Ubuntu version of gnome-terminal I'm seeing a weird problem with colors that I know is somehow related to gnome-terminal because this same setup works fine with iTerm2 on my Mac. From terminal ...
2
votes
1answer
110 views

VIm: using substitute command

I'm trying to use the substitute command in VIm but don't get the result I excpect: I'm editing an html file, and for example I'd like to replace all "é" characters by the é code (yes it's in ...
1
vote
2answers
116 views

VIm : copy all file to paste it in web browser

I'm trying to find and answer using search but nothing's working. What I try to do: I'm editing a part of a html file using VIm, by creating a local file. Then, from VIm, I'd like to copy all (Ctrl+A ...
0
votes
0answers
21 views

Why do my A, N, Enter, Shift Keys seem to have reduced sensitivity to touch?

I recently installed PyCharm, Emacs, and Vim in order to start programming. However, I noticed that my A, N, SHIFT, and ENTER keys on my keyboard seem to not always work when I press them. There was ...
0
votes
0answers
32 views

Vim colorscheme with .ino files

On my Ubuntu 14.04 system, I'm working on an Arduino project and I'm using vim as the editor rather than Arduino's IDE. I'm currently using solarized colorscheme in vim. It seems like the color for ...
0
votes
0answers
32 views

clear Konsole color scheme

When I open this file in vim class Program : Object { static int _I = 1; /// <summary> /// The quick brown fox jumps over the lazy dog /// THE QUICK BROWN FOX JUMPS OVER THE ...
0
votes
1answer
68 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, ...
0
votes
0answers
16 views

when to source vimrc?

kinda a vim newbie, used vundle not so long ago but couldn't install all the plugins that i want correctly, maybe it's me doing things wrong. Anyway now using pathogen, it's doing its job, well when ...
0
votes
0answers
35 views

Gvim shows wrong color for highlight color names on 14.04

Freshly installed Ubuntu 14.04 and built gvim 7.4 on it, I just discovered that the colors gvim picked were all wrong for the pre-defined color names, like the name "Green" within: :hi _Green_NONE ...
1
vote
1answer
119 views

Upgrading VIM 7.3 to latest release via apt-get

I'm currently using Ubuntu 12.04 and have Vim 7.3 installed and I want to update it to the latest version. I'm still new to how all these package manager stuff works, but I was wondering why can't I ...
0
votes
1answer
21 views

Turning Ubuntu Server into a Typewriter

I'm attempting to set up a partition on my laptop that, when I boot into it, functions like a typewriter - straight into vim with no other functionality. I have a partition with ubuntu server ...
0
votes
1answer
47 views

Error installing vim [duplicate]

I am running Ubuntu 14.04, as Xubuntu, in an AMD 64 pc, configured as dual boot with Windows 7. I tried installing vim with this: This was the output: E: Could not get lock /var/lib/dpkg/lock - open ...
4
votes
1answer
280 views

unicode characters do not appear in gnome terminal for vim airline

I know this has been asked a few times but none of the answers worked for me. I use the gnome terminal as default in Ubuntu 14.10 and I can't get unicode characters to show properly, mainly in vim ...
0
votes
1answer
131 views

Vim: Supertab not working

I'm trying to make supertab working, it's not working when I press tab, not autocompleting python. Here's vimrc set autoindent set cindent execute pathogen#infect() syntax on colorscheme flattr set ...
3
votes
1answer
68 views

Problem setting VIM as standard text editor

I want to set vim (not gvim, not vi) as standard text editor. In the net there are the following suggestions to associate programs with file types. use sudo update-alternatives --config editor link ...
0
votes
0answers
23 views

Can't edit file in Vim netrw

Suddenly I cannot edit any files accessing FTP files using Vim's netrw. I can normally browse the folders but whenever I press Enter the terminal stops, the screen divides into two and on the top its ...
2
votes
1answer
31 views

Which are the vim key notations?

Is there a list of the key notations and combination for vim. Something like this: <Right> Right arrow <C-t> Ctr+t etc.. I found a somewhat incomplete table here: ...
1
vote
0answers
93 views

In a dockerized ubuntu instance how do I get nano to display/work right?

When I apt-get install nano in a docker instance of ubuntu:trusty nano's display is seriously messed up, what do I need to do to fix this? I've tried vi/vim as well, and arrow keys are broken. In ...
3
votes
2answers
222 views

How to create php files in /var/www folder?

I am new to Ubuntu(Linux) and I am trying to create a php file in /var/www, file name hello.php. I am typing vi hello.php and then I write my code <?php......?>, however, when I am trying to ...
0
votes
1answer
33 views

Strange behaviors when loading Vim color themes

Here is some links and screenshots needed by this question. I downloaded two Vim color themes: Lettuce and Monokai. (As seen in the link provided.) In my .vimrc, if I only have colorscheme lettuce ...
1
vote
1answer
336 views

When I install packages, I keep getting fontconfig warning

I'm running Ubuntu 14.04 LTS on a virtual machine, and I was installing packages, specifically text editors in this case (emacs23, sublime, vim..). Anyways, I get this massive warning of font ...
1
vote
1answer
53 views

Apache 2 virtual host pointing to index.html

I tried to create a virtual host whitecrm.local by the following procedure: First I created host using sudo vim /etc/hosts 127.0.0.1 localhost 127.0.0.1 whitecrm.local Created a file ...
1
vote
0answers
41 views

Vim does not load coloerscheme 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 ...
0
votes
0answers
31 views

Extension to submit problem codes on Hackerearth, Codechef from editor

Is there any extension available in any editor to submit code directly from editor to the competitive programming sites like codechef, hackerearth, hackerrank, topcoder, codeforces etc.?
0
votes
0answers
134 views

ubuntu 14.04 : VIM with YouCompleteMe plugin, throw “ImportError: No module named _io”

I was using python2.7.6, VIM 7.4 and YouCompleteMe plugin on my Ubuntu14.04. Today I did some update on my Ubuntu, but after that, I found my VIM cannot work properly with YouCompleteMe. When I start ...
1
vote
1answer
38 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 ...