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
25 views

Caps-Lock remaps to ESC doesn't desactivate the capslocking

I'm the happy owner of a Asus ZenBook Prime UX31A-R4005P running kubuntu 13.04. I'm also a happy vim user, that mean I'm lazy and don't like for my hands to move more than they should. I did remap ...
6
votes
2answers
121 views

Backspace in insert mode in vi doesn't erase the character

I am new to vi, actually I have started learning vi from today and I have got stuck at the behavior of the backspace key. Actually when I fired up vi on my Ubuntu 12.04 for the first time my ...
3
votes
5answers
437 views

How to paste text from Vim editor to browser?

I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening an sql file. How do I get this done?
1
vote
4answers
57 views

Problem installing latest vim on ubuntu 12.10

I am trying to install the latest version of vim on Ubuntu 12.10. But when I use this command sudo apt-get install vim It gives me such an error How to solve this?
2
votes
2answers
32 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? ...
1
vote
0answers
26 views

Why the same arabic string shows differently in Windows 7 and Ubuntu Linux?

The same arabic string, in windows 7 Notepad: in ubuntu linux vi: They are the same string in a file, but the display order is opposite, why?
0
votes
1answer
19 views

More up to date vim repo

The vim I currently have installed is version 7.3.547, however I need at least version 7.3.584. I cannot find a repo for a more up to date version. Does one exist or must I build vim myself?
0
votes
0answers
26 views

Terminal Vim no longer starts after upgrading from 12.04 -> 12.10 -> 13.04: undefined symbol: init_hashlib

When I attempt to run Vim from a terminal, I get the following error: vim: symbol lookup error: vim: undefined symbol: init_hashlib I did some searching and the general consensus is that this is ...
0
votes
3answers
84 views

Unable to install VIM

I am running Ubuntu 13.04 and I assumed that vim comes by default. There is a /etc/vim on my system (assuming it refers to the same thing). However, I was unable to do a vim abc.txt. Instead, I got a ...
0
votes
2answers
40 views

How can I add a PPA from a previous release?

I've been trying to get vim with the breakindent patch applied, but it's only available through Quantal, and I'm running Raring. Is there a way to force-install a PPA from a previous release? I tried ...
0
votes
0answers
22 views

Powerline: How to add weather indicator to vim

I'm new to powerline. How to add weather indicator to vim. I'm following official documents but I get following errors: powerline 'module' object has no attribute 'weather'
1
vote
1answer
39 views

Can't recover my desktop environment

Good evening Everyone, I am having problems recovering my desktop. Before it came to this desktop without the taskbar at the top, and the sidebar. Also the title bar for applications are gone. What ...
0
votes
1answer
173 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 ...
0
votes
0answers
16 views

vim color theme does not color “=” and other operators

I'm switching from sublimetext2 to vim for my python coding, and I try to use vim version of the color scheme monokai which I like. unfortunately none of the vim monokai/molokai color schemes do not ...
0
votes
1answer
23 views

vim and consolle in the same terminal tab

i'm not an experienced programmer but i'd like to become, one day : ) i've seen a video in which a programmer is using a vim session with 2 tab (and i know how to do, with :vsplit) and another ...
3
votes
1answer
187 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 ...
1
vote
1answer
62 views

txt file and linebreaks

I used antiword >filename.txt To convert a .doc word document to a txt file. Then I edited the file in nano (also tried vim) and when the document is viewed in libre office and gvim or even text ...
3
votes
1answer
111 views

What is the difference between the different vim packages available in Ubuntu

The difference between vim-gtk and vim-gnome has been discussed here. Ubuntu usually offers more than these two options for vim : vim-nox vim-athena vim-* It is not clear which one depends on ...
0
votes
1answer
28 views

disable a key on an OS level

I have a volume control wheel on the basse of my laptop which I always spin by mistake. When spun, the letters 6~ start to pop up in rapid succession. Annoying as this is, when in my vim ...
36
votes
5answers
20k views

How do I enable full-color support in Terminal?

I have a lovely Vim colorscheme (xoria256) and it looks brilliant in GVim, but when I use normal vim in Terminal, the colorscheme is only partially supported -- for example, the default ...
0
votes
2answers
32 views

After quitting vim show the original text in vim

Either quitting vim or ctrl-z vim, should display the content and not display the previous commands in xterm. I am pretty sure it's a vimrc setting and not Xresources setting but can't remember... ...
1
vote
1answer
50 views

/sys/bus/usb/drivers/r8712u/new_id is unchangable

I got my newly purchased wireless stick to work, but I had to change the /sys/bus/usb/drivers/r8712u/new_id file during the process. I somehow managed to add the string "050d 11f1" to it, but it seems ...
3
votes
1answer
45 views

Does vim support unicode?

I recently changed my system language to Tamil (a language used in India) from English. While I was enjoying Ubuntu in Tamil, my favorite editor vim has run into an issue because of the system ...
2
votes
3answers
135 views

How to see object code generated by g++?

g++ -c xyz.cpp creates an object file xyz.o But when I open it in vim editor it shows some crazy text... How can I see the machine code? What package can use to open and see that machine code?
1
vote
1answer
33 views

Birds of Paradise in vim - doesn't work

I want to add this theme Birds of Paradise to vim. I tried to it do with sudo gedit birds_of_paradise.vim in /usr/share/vim/vim73/colors. Then I tried colorscheme birds_of_paradise in .vimrc , but ...
2
votes
1answer
1k views

How can I get colors in TTY working correctly?

I use vim a lot and it occurs to me that most of the time I don't even really need a GUI, since I'll only use my computer to take notes in VIM. The problem is, though, is that colors don't show up ...
4
votes
3answers
54 views

I want to add background color to vimrc but it's not working

I am forced to run this in my vim editor everytime I work. highlight Normal ctermfg=grey ctermbg=black What I want is for this to be automatic, I already have background set to dark but nothing is ...
0
votes
1answer
50 views

How can I make '/etc/vim/vimrc' writeable?

I tried with chmod u+w vimrc but it doesn't work. I also tried :w! and still doesn't work. The point is that I make a mistake deleting some " in vimrc and now I don't know how to write it back there. ...
0
votes
1answer
36 views

How can I make F9 key to compile (in C++) in VIM?

I tried imap < F9 > :!g++ % - (without spaces), but it doesn't work. EDITED: So stupid, I wanted to say map < F9 > :!g++ % - without spaces... But I figured out that the spaces are the ...
1
vote
0answers
107 views

How can I test if a variable matches another value and move to another function?

I am writing a script where I store a predetermined line of text into a string (we will call abc). I am storing the results from grep -iqs $USER file (we will call def) into another string. How can ...
0
votes
2answers
66 views

I can't save my vim file?

I'm new in VIM editor, and i want to know how to save a file after editing, i entered :x after finishing my modification, but nothing is happening !! so where should i put this command :x to be ...
4
votes
4answers
2k 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? ...
2
votes
1answer
94 views

running python in vim

I have tried Googling but I couldn't find anything relevant. Is it possible to program in Python on VIM and do something like :!iPython to have Python execute the code? Last time I tried that, ...
0
votes
0answers
33 views

guake terminal cuts off at the right

Is there a way to keep the guake terminal from cutting off text at the far right? At the edge of the terminal I have the words elevator that and on the right all I see is elevato and continuing on ...
4
votes
1answer
91 views

setting up vim with latex suite

I am trying to setup vim with latex suite. I have installed vim from the terminal prompt sudo apt-get install vim but sudo apt-get install latex-suite or latexsuite doesn't do anything. What ...
4
votes
3answers
292 views

How do I format code from the web using Vim?

For example, to render: while (head == tail) { head++; a[head] = 0 } into while (head == tail) { head++; a[head] = 0 }
3
votes
1answer
326 views

How do I install the runtime version of vim?

How do I go about installing the runtime version of Vim?
0
votes
2answers
53 views

Start vim automatically as root in home folder

Is it possible to start vim automatically with root permission if I start it in my home folder (or in a subdirectory of that folder)?
2
votes
1answer
36 views

bash prompt has become vim? How to reset?

I installed dotfiles from a guy on GitHub (https://github.com/sontek/dotfiles). I didn't like some of the customizations, so I tried uninstalling it by running ./install.sh restore However... my ...
2
votes
1answer
50 views

Why doesn't ctrl-pgup and ctrl-pgdn change tabs in vim when started in byobu?

From what I have read of the documentation, byobu does not use ctrl-pgup or ctrl-pgdn for anything, so why is it that when I start "vim -p file1 file2", and try to move among the different tabs with ...
3
votes
1answer
136 views

How to make cursor change in different modes in vim?

How can I make Vim change cursor in different modes so that these conditions are satisfied: Without using gconftool or such tools. I need this affect only one instance of Vim, not the whole ...
1
vote
1answer
43 views

Vim - up-down line movements the cursor changes column position

While editing a simple text file where every line is nearly to the end of screen, I was expecting vim to retain the column position as I used j and k to move up and down. Surprisingly, it does not ...
2
votes
0answers
78 views

Why is Cinnamon blocking function keys? F1-12 aren't getting to the terminal

I map the function keys in vim to modify a ton of stuff, from syntax line numbering to autoindenting to changing the tab width and syntax highlighting. Unity was a major problem here because if I ...
5
votes
1answer
176 views

What plugins are recommended for Vim for PHP developers? [closed]

As a PHP developer what plugins should I install for Vim? What functionalities I can expect from Vim? From Oli: Per this meta topic, "infinite list" questions must follow a strict outline. If you ...
3
votes
2answers
85 views

Changing Vim editor settings?

How do I change default settings of Vim editor such as setting auto indent, setting Tab space to 4 and changing text colors? Also how to set vim as the default code editor?
3
votes
1answer
983 views

How to fix an error using a colorscheme for gvim? [closed]

My vim directory: >:/usr/share/vim$ ls -al total 28 drwxr-xr-x 5 root root 4096 2010-09-26 00:03 . drwxr-xr-x 352 root root 12288 2010-09-25 14:35 .. drwxr-xr-x 7 root root 4096 2010-09-25 ...
1
vote
1answer
898 views

How to install the taglist plugin in Vim?

I downloaded the taglist plugin and extracted it in my .vim folder. I also installed exuberant-ctags from Synaptic. I did :TlistToggle but it gives me the following message: /bin/bash: ...
1
vote
0answers
47 views

How to disable or replace a specific vim plugin while using the spf13 vimrc?

I use spf13 as my vim plugin collection. Here is the spf13 .vimrc file. How can I only override just 'general' group bundles? Or to be specific, how can I disable or replace just one plugin ? ...
0
votes
0answers
78 views

Error trying to install vim on ubuntu 12.04 w:failed to fetch http://us.archive.ubuntu.com/ubuntu [closed]

I am trying to install vim on ubuntu 12.04 w:failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-backports/universe/i18n/Translation-en something wicked happened resolving ...
2
votes
0answers
78 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 2 3 4