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
32 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
2answers
1k views

How to build vim with gui option from sources?

I'm having a hard time building a VIM 7.4(obtained from vim's ftp site) with gui option. It builds ok without the gui option. Here's how I'm doing it: cd ~/Downloads/vim74/src ./configure ...
-1
votes
1answer
27 views

Problem with arrow keys in vim

How to fix arrow keys that display A B C D on remote shell.
0
votes
0answers
14 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 ...
2
votes
0answers
56 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
27 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 ...
2
votes
1answer
1k views

Having problem with fonts in vim-airline

I wanted to install vim-airline but I am having problems with unicode fonts. I have installed it with vundle: .vimrc set encoding=utf-8 Bundle 'bling/vim-airline' let g:airline_powerline_fonts = ...
3
votes
2answers
4k views

How to fix the “Setting locale failed” error while installing vim?

When installing vim through Software Center , I get this error installArchives() failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = ...
1
vote
0answers
35 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 ...
-1
votes
0answers
43 views

Vim Clang_complete does not autocomplete Header Files

Recently I Tried to Install YouCompleteMe vim autocomplete Plugin , but i failed to make it work with my environment ( Ubuntu 14.04 64 bit ) , because It kept bouncing " -- User defined completion ...
3
votes
1answer
169 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
37 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 ...
27
votes
4answers
8k views

How can I change the default text editor from gedit to vim?

How can I change the default text editor from gedit to vim? When I click on a text file, I want it to open in vim under the terminal instead of gedit.
0
votes
1answer
44 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
27 views

how to search tags not matching pattern

In my xml file, i have many location tags. eg: ...
0
votes
1answer
32 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? ...
0
votes
1answer
80 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 ...
4
votes
3answers
158 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
0answers
115 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). ...
27
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.
3
votes
1answer
104 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 ...
7
votes
4answers
568 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 ...
3
votes
2answers
54 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)
1
vote
1answer
82 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
33 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 ...
0
votes
0answers
29 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 ...
17
votes
7answers
9k 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 ...
3
votes
1answer
158 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 * ...
3
votes
2answers
228 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 ...
1
vote
2answers
288 views

vim - make a mapping applicable only if the file name contains specific characters

Say, I want a specific vim mapping to be applicable only if the file name (better still, path) contains specific characters --- irrespective of filetype. Can this be done? How? Or am I asking for too ...
3
votes
2answers
118 views

Switch off search highlighting in gVim

When I do search in gVim (package gnome-vim), the search results are highlighted. How can I turn-off this highlighting when I don't need it any longer? Now it looks like persistent.
1
vote
2answers
165 views

uses vim as an ide

I want plugins for vim so that I can use it as a C language IDE. I used to use qtcreator and I really appreciate his auto-completion (really perfect), but after trying for several months vim I really ...
0
votes
3answers
311 views

Vim AutoComplPop issues?

I need auto-completion in vim for programming languages, for that I downloaded the AutoComplPop followed the instructions mentioned there and copied the files cp -r ...
4
votes
2answers
4k views

How do I get VIM to remember the line I was on when I reopen a file? [duplicate]

I just moved from RH/Fedora to Ubuntu 12.04. In RedHat, when I reopen a file with VIM, it opens with the cursor on the line it was on when I closed the file. However, what I am seeing now is that ...
2
votes
1answer
45 views

Vim-LaTeX runs evince instead of xdvi

I have installed the Vim-LaTeX plugin, which is great for editing LaTeX documents in Vim. However, I have one problem with viewing the output file. The tutorial says to use the \lv command. However, ...
0
votes
0answers
40 views

Bold colors not matching text

On Ubuntu 13.10 I have my terminal profile preference checked to have bold color Same as text color. Yet when I run a script to check my colors I get the following output: This is really throwing ...
1
vote
2answers
46 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.
-1
votes
1answer
114 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
78 views

Gnome-terminal vim gruvbox [closed]

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
66 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 ...
0
votes
1answer
165 views

Need good example of .vimrc file [closed]

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
vote
1answer
24 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 ...
1
vote
1answer
43 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.
8
votes
1answer
2k views

vi, getting multiple “Sorry, the command is not available in this version…” after reinstall

From my .vimrc, getting: line 16: E319: Sorry, the command is not available in this version: filetype on line 17: E319: Sorry, the command is not available in this version: filetype plugin on ...
0
votes
1answer
26 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.
0
votes
1answer
123 views

Vim and terminal in the same tab

I'm not an experienced programmer but i'd like to become one, one day : ) I've seen a video in which a programmer is using a Vim session with 2 windows (and I know how to do, with :vsplit) and ...
3
votes
0answers
63 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 ...
1
vote
2answers
341 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 ...
29
votes
4answers
21k views

vi shortcut to delete “until the next X character”

I understand that vi has shortcut keys to delete character, word and line with various options. However, I could not find this: to delete from cursor to the next specified character. I might type ...
6
votes
4answers
961 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 ...