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
12 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
15 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
12 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
12 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
23 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
13 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
19 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
101 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
33 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
36 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
7 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
27 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
27 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
85 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
19 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 ...
0
votes
1answer
81 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
35 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
29 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
15 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
101 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 ...
0
votes
1answer
27 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 ...
2
votes
1answer
78 views

How to configure vim for quickfix

I am getting the following error: /bin/bash: ccfilter: command not found when I issue the :make command in vim. I need to install (or build) the ccfilter binary but I can't find it. Where can I ...
4
votes
3answers
300 views

Replace text inside quotes in vim

I have a large sql file and I would like to rename the table name from `feedback` to `comments` but I don't want to replace the word feedback in case any row has that text so I was trying to select it ...
1
vote
0answers
117 views

vim showing weird characters on screen in terminal

So I just installed ubuntu on my Netbook and switched to the openbox window manager. When I open up VIM in a terminal and hit j when I am at the top of the file or hit k from the bottom of the file, ...
0
votes
1answer
21 views

open markdown files in vim: only a few lines shown

I'm facing the problem while displaying the markdown file content. When i opens the .md file in vim , it just displays few lines and there is s bottom bar which display line info,rest of the lines ...
0
votes
0answers
60 views

Problem with Vim's colorschemes

I have started using Vim in Ubuntu 14.04 64bit. I tried to change the colorscheme but the result was peculiar. The colors were as if there were random and a lot of times I couldn't even look at Vim or ...
1
vote
2answers
84 views

Compile a LaTeX file from Vim and not from terminal

I am compiling my LaTeX files from terminal and it gets a little annoying to go every time in terminal and use: xelatex "file-path" Is there a way to do this from inside Vim?
2
votes
2answers
732 views

How to change visudo editor from nano to vim? [duplicate]

When I use visudo, it always opens it with nano editor. How to change the editor to vim?
1
vote
2answers
234 views

Open an existing file in Vim

I would like to open a file that already exists while already in Vim. What is the command to do this?
0
votes
1answer
30 views

Install colortheme in Vim

I am a new user of Linux Ubuntu and I am trying to copy and paste a colortheme in Vim's folder color but it seems to be owned by root and I can't paste it in there. What can I do?
1
vote
3answers
78 views

Replace a specific section of code

I don't know what could do this, sed, vim, whatever. Lets say I have 30 functions, to keep it simple, i'll show 3 #first function AddOne = [ a+1==b, b+1==c ] # second function ...
1
vote
1answer
81 views

How do I set gvim as default application? [duplicate]

I compiled and installed vim 7.4 in Ubuntu 12.04. I want to set gvim as the default application for all text and C/C++ files. I tried : Right click > Open With Other Application. But couldn't find ...
1
vote
3answers
161 views

Deleting column in vim

I have a tab-delimited file like: name1 verb1 name2 verb2 etc... I want to delete the second column. I tried editing one of these answers, but being not familiar with sed and awk, I ...
5
votes
1answer
205 views

Change the default editor when sudo visudo

When doing sudo visudo, the default editor is nano. I want to change it to vi or vim. I already made vim be the default application to replace gedit upon opening php, plain text, c and h files, by ...
1
vote
2answers
157 views

Window contents corrupt when scrolling in Chrome and vim/gvim

I am running 14.04 as a guest on a Win8.1 host (over VirtualBox 4.3.17), 3D acceleration is enabled. Since upgrading from 12.10 I have noticed that text/content will sometimes corrupt when I scroll a ...
0
votes
1answer
45 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 ...
1
vote
1answer
139 views

vim NERDTree | Auto fresh the directory pane

How can you auto refresh the directory panes automatically in vim NERDTree? I know you can press R to refresh manually but I want to have it refresh automatically. This is particularly helpful when ...
1
vote
0answers
103 views

key word remap enter carriage return vim command line

In my .vimrc file I have :imap ii <CR> which allows me to hit ii for enter/carriage return in vim but now i would like to set that same configuration in my .inputrc so that i can just hit ...
4
votes
1answer
358 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 ...
0
votes
1answer
135 views

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

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 way since I am really the only user ...
-1
votes
1answer
36 views

how to search tags not matching pattern

In my xml file, i have many location tags. eg: ...
0
votes
1answer
497 views

Why do I get these .vimrc errors in Ubuntu 14 after upgrade from Ubuntu 13?

I get errors for all these commands when I try to use vim (though vim then works): autocmd BufWritePre *.rb :%s/\s\+$//e set filetype off filetype plugin on filetype indent on syntax on " Turn on ...
1
vote
0answers
183 views

vi issue in SSH TTYs to Ubuntu 14.04.1 LTS

After upgrading my server to Ubuntu 14.04.1 LTS, I can no longer use the vi editor to edit anything in an SSH terminal (I access the server by launching ssh sessions from Cygwin running on Windows). ...
8
votes
4answers
1k views

how to redirect bash command output to vim

I am trying to redirect the output of a bash command into a new file. If I try the pipe as below : ls -la | vim Bash shows me the errors : Vim: Error reading input, exiting... Vim: preserving ...
2
votes
1answer
635 views

Uninstalled vim, now can't install it again

I have removeded vim-tiny to get full installation following this tutorial and now I can't install vim by: $ sudo apt-get install vim Reading package lists... Done Building dependency tree ...
1
vote
2answers
52 views

how does ! effect sort in vim

I am trying to sort the contents in my text file using the command :1,$sort This results in lines arranged in order based on the starting character - symbols, capital letters and then small letters ...
3
votes
2answers
77 views

Is it possible to edit Textboxes in a browser using VIM or a VIM-Style-Editor?

Is it possible to edit Textboxes in a browser using VIM or a VIM-Style-Editor? (On Ubuntu of course)
3
votes
1answer
115 views

how to re-use last vi command

How does one re-use a just-executed command in vim? For example, I open a file with: vi myTestFile Then in normal mode, I search for a word using: /mysearchword\c <Enter> Now I want to ...
0
votes
0answers
93 views

Console Mode VIM 256 Color Support

This question is about using the console mode (i.e. ctrl+alt+f1) and not about using a terminal emulator. When running from a terminal emulator, my VIM uses 256 colors without a problem. I've tried a ...
3
votes
1answer
431 views

vim command does not work

I am trying to open vim on my Ubuntu 14.04 64 bit by entering the command in the terminal : vim But i get the response : The program 'vim' can be found in the following packages: * vim * ...