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

Coloured view in vim editor not working in ubuntu 12.04

My Vim editor version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:19:52) When I open a file(shell script, etc) with it, all the text are on same color. It's not user friendly. How can ...
6
votes
2answers
164 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 ...
1
vote
4answers
64 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
33 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
21 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
29 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
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 ...
0
votes
3answers
92 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
24 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
40 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
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
25 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
232 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 ...
0
votes
1answer
179 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 ...
3
votes
1answer
118 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
29 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 ...
3
votes
1answer
46 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 ...
0
votes
2answers
33 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
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 ...
0
votes
1answer
54 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
39 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 ...
4
votes
3answers
56 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
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 ...
2
votes
1answer
97 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
100 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 ...
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
37 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
53 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 ...
1
vote
1answer
44 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
80 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
181 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
86 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
141 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 ...
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
79 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
vote
1answer
52 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 ...
2
votes
2answers
110 views

Exit file explorer in Vim without closing

I have been trying to figure out how to exit the file explorer in Vim. :q works, but it closes Vim as well, not just the file browser. Am I missing something or is this a bug?
3
votes
1answer
84 views

Unable to set mouse in vim under Ubuntu 12.04

For some reason, I am unable to perform the :set mouse=a command in vim. I have installed pretty much every vim related package from apt that seems applicable. Vim version is 7.3 (Huge version with ...
1
vote
0answers
109 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 ...
1
vote
1answer
131 views

Going to a virtual terminal disables Vim color scheme

When I'm going into a virtual terminal my Vim color scheme is ignored. I've configured it by following this blog. Heres all of my ~/.vimrc if $COLORTERM == 'gnome-terminal' set ...
2
votes
1answer
104 views

Using Vim as external editor using only one instance

I'm playing a game that has a scripting language. It has a button to open the scripts in external editor. You can set the command that will trigger the editor from within the game's interface. ...
1
vote
1answer
73 views

How do I stop color changes when quitting vi from a terminal emulator?

I have a problem with colors when using vi under Ubuntu 12.04. I'm connecting to my Ubuntu server from a PC, using PowerTerm terminal emulation software. I have PowerTerm set up to display black ...
3
votes
3answers
249 views

vim is not remembering last position

My Ubuntu LTS 12.04 has vim editor. If I open a file, move to a paragraph and reopen vim, then the cursor goes to beginning of the file always. This is not the expected behavior. How the vim can ...
1
vote
2answers
98 views

vim struggles when copy-pasting large blocks of text in from an external window

I select and copy a large block of plain text from some file (e.g. gedit). I run :set paste and then enter insert mode, and paste the text in using the right mouse-button menu. vim them uses 100% ...
0
votes
1answer
161 views

How can I read the sourcecode of a PDF

I want get the sourcecode of a PDF File. Unfortunately once I open the PDF with a texteditor some lines doesn't make sense... just like.... %PDF-1.6 %âãÏÓ 3 0 obj <</Ff 0/F ...
3
votes
3answers
450 views

I can't install vim on my terminal

whenever i try to execute vim, the terminal shows this: The program 'vim' can be found in the following packages: * vim * vim-gnome * vim-tiny * vim-athena * vim-gtk * vim-nox Try: sudo apt-get ...

1 2 3 4