Vim is an open-source text editor which is typically run from the command line. Questions should relate to using Vim on Ubuntu.
1
vote
2answers
45 views
Cannot Install vim with apt-get
sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may ...
1
vote
1answer
27 views
How to open scripts from Second Life viewer into console vim
I want everything that has to do with text to be edited within console vim with tabs.
My problem is that I can't open files in console vim from GUI, I can only open them in gvim.
Does anyone know ...
1
vote
2answers
42 views
Installing vim text editor on ubuntu
just installed LAMP server and need to use vim editor to edit php.ini
the cli command 'sudo apt-get install vim' gives me the following error:
<Package 'vim' is not available but is refered to by ...
3
votes
1answer
30 views
How to recompile Vim?
I want to recompile Vim the exact same way Ubuntu has compiled it, but with one difference (ruby support). I have already compiled with Ruby support, but by using my own configure options, Vim ...
1
vote
1answer
15 views
How can I make vim ignore the global config?
I do not like the settings the sysadmin put in the system vim config file located in /etc/vim/vimrc.
How can I avoid loading that file and rum my instances of vim with different settings?
-1
votes
1answer
41 views
When I try to install VIM i am getting this error. Pls suggest solutions
When I try to install VIM I am getting this error:
sandy@sandy-Rev-1-0:~$ sudo apt-get update
[sudo] password for sandy:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource ...
2
votes
1answer
70 views
2
votes
0answers
31 views
vim cursor color change only applied upon movement
In my .vimrc I have the following (based upon a tip on the vim Wikia):
if &term =~ "xterm\\|rxvt"
" use an red cursor in insert mode
let &t_SI = "\<Esc>]12;red\x7"
" use an ...
1
vote
1answer
35 views
Problems with vim-r
Getting the following error when opening an .R file in vim (vim-r installed).
Error detected while processing /home/johnros/.vim/r-plugin/common_global.vim:
line 3106: E484: Can't open file ...
0
votes
0answers
13 views
Mapping Windows key in Gvim
How do I map the Windows key in Gvim? I've tried referencing it as T as suggested here and it doesn't seem to work.
0
votes
1answer
41 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 ...
8
votes
2answers
299 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
102 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
40 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
27 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
28 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
49 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
38 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
186 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
55 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
34 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
55 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
19 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
28 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 ...
4
votes
1answer
634 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
64 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
298 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
211 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
31 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
56 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
37 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
35 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
73 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
53 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
121 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
75 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
129 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
38 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
136 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
57 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
40 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 ...
3
votes
1answer
61 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
57 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
93 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
264 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
112 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
161 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
98 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
82 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
57 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 ...



