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

Make vim version 7 edit xml files

I'm using old linux an vim version 7.1.314. I would like to edit eclipse .cproject file that build using XML syntax. Currently vim shows not colored information. I found vim plugin that I hope wil ...
0
votes
0answers
4 views

Combined spell check dictionary for two languages

I regularly write texts in two different languages. Instead of switching every time the language of the spell check, I would prefer a combined dictionary. This would mean that every word included in ...
-2
votes
1answer
18 views

How do i use a color scheme on vim and gvim?

Both are installed on: ~/.vim/colors And are found on the command line: Link do Colorscheme - solarized Link do Colorscheme - sky
0
votes
0answers
22 views

Blank Screen On Boot

I tried installing LAMP using the following tutorial: http://techlimbo.blogspot.com/2012/11/how-to-install-concrete5-on-ubuntu-1204.html Upon testing if the apache install worked (directing browser ...
0
votes
0answers
20 views

How can I find the directory to clang-format

I use gvim to code and want to use clang-format as a plugin. As I read it is already integrated in vim. I just need to add this line to my .vimrc: map <C-K> :pyf ...
0
votes
0answers
15 views

Can't copy from vim to clipboard inside tmux

I am using vim vim 7.4, tmux 2.1 and ubuntu 14.04. I can yank from vim and copy to clipboard when using vim directly from my terminal with "+y. When I use vim from inside tmux, I can't yank-copy from ...
0
votes
0answers
13 views

Vim copy to clipboard not working

Trying to copy text from vim to clipboard and paste to another application. Vim should support copying to clipboard (:echo has('clipboard') returns 1) I do: in visual mode select required lines type ...
1
vote
1answer
27 views

How to redraw terminal window after wall command displays message

I have a script that will send wall notification to all open terminal sessions when battery gets bellow certain percentage,and will continue doing so every minute until power source is plugged in. ...
3
votes
5answers
450 views

Difference between Nano and Vim [closed]

I have recently started using Ubuntu and hence, the terminal. As text editor, I have used the pre-installed nano. Now I wonder whether I should install and use vim as well. What are each of those ...
0
votes
0answers
16 views

Why does ^[k appear in vim?

Occasionally my fingers will twitch in vim and these characters appear: ^[k (I'm not typing the characters, and they're not part of the text - deleting the line doesn't remove them) What are they ...
0
votes
0answers
29 views

SSH secure shell not working with vim colors

The script: 256colors2.pl when run from putty returns the correct colors, from SSH secure shell nothing happen, it doesn't open, on-screen appears nothing. user@ubuntu:~$ ./256colors2.pl ...
0
votes
1answer
21 views

Text scaling / clipboard issue

I am having some difficulty understanding some issues with dia, perhaps better posted as two questions, however I do get the impression that they are related in gnome somehow; they are as follows: ...
1
vote
0answers
70 views

Bash shell doesn't display Python output

I started using vim + tmux for my programming and suddenly after accidentally smashing couple of keys [Forgive me I am a klutz] the bash shell started acting weirdly. When I run my unittest written ...
1
vote
1answer
44 views

Open all files in directory in vim

To open several files in separate tabs in vim I need to execute command vim -p file1 file2 I fave directory that contains many files and I would like to open all files with extension c in vim ...
0
votes
2answers
34 views

What does % and ! mean in Vim commands?

In Vim, :%!ls executes ls command and prints its output to the current editable file. But what do % and ! mean separately in vim? Is it possible execute ls and not put its output to document?
1
vote
1answer
192 views

How do I set line number in VI Editor [duplicate]

I am using the VI editor in Ubuntu and I have maximum usage of VI editor. to see the line number in vi i am using like below: :set nu I want to set it default when I open a file in vi editor, that ...
0
votes
1answer
58 views

Vim-LatexSuite: /bin/bash: latex command not found

TeXLive 2015: I installed TeXLive 2015 following the simplest instruction sudo ./install-tl-ubuntu (without any options) of scottkosty/install-tl-ubuntu@GitHub. Vim-Latex-Suite: I installed ...
1
vote
1answer
49 views

Remote SSH command requires a terminal

So for one of my servers, most of what I do is edit files with vim. Is it possible to do something like ssh me@myserver vim ? When I try to do that, I get "Warning, output is not to a terminal", and ...
3
votes
1answer
56 views

update-alternatives: error: /var/lib/dpkg/alternatives/vim corrupt: invalid status

Whenever I try to install, update, or do anything with apt-get, I always get a error message similar to this, griping about vim: 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. 1 not ...
0
votes
0answers
26 views

Unable to install vim 1 [duplicate]

The error I get while doing sudo apt-get install vim; I have used sudo apt-get update as well.
4
votes
0answers
66 views

How can I change the cursor in vim depending if I'm in insert mode or normal mode?

I'm used to working on GVim, but I want to make most of vim+tmux too. Therefore I have decided to switch to vim. But in vim the cursor style does not change depending on the mode. I use zsh and ...
0
votes
1answer
29 views

Vim behavior differences in Server VS Desktop [duplicate]

I work on a number of different server version 10, 12 & 14 and use Vim extensively with only the default options and no special settings. I just deployed a small PC with Ubuntu Desktop 15 and the ...
2
votes
0answers
28 views

I want to use Ruby built from source, and also use Gvim [duplicate]

vim-gtk and vim-gnome both have libruby1.9.1 as a package dependency (in trusty), which in turn depends on ruby1.9.1 and I fear doing sudo apt-get install vim-gtk will cause commands such as irb and ...
0
votes
1answer
101 views

How can I print from Vim to pdf?

I would have thought this is rather simple, but I don't get it done: I use gVim and would like to get the text as a pdf-file. In other applications like Firefox the print-dialog shows me available ...
1
vote
0answers
50 views

cant locate vim in usr/share or /bin

Wanted to do a clean install of vim as I had messed up the usr/share/vim files quite a bit installing plugins and messing with things there, instead of creating a .vim in my home directory like I ...
1
vote
1answer
146 views

Why do vim and less have such similar keybindings?

Do they share code, or is that just a tradition? Are there any other programs with similar keybindings?
3
votes
2answers
107 views

Getting <ctrl> + <backspace> to delete words in gnome-terminal and vim insert mode

It seems like <ctrl> + W deletes backwards one word at a time. That's great, but I'd really really this work with <ctrl> + <backspace> like most other apps. What's the best way to ...
1
vote
2answers
112 views

Setup vimrc with solarized color theme

I just started with vim in ubuntu, and have some trouble setting up my .vimrc file. This is what I currently have: "============= Solarized color theme ============= ...
2
votes
1answer
122 views

How to write comment in .vimrc file?

I'm going through a .vimrc file and there everything is written like this : - " Better copy & paste " When you want to paste large blocks of code into vim, press F2 before you " paste. At the ...
0
votes
1answer
51 views

Remove the blank space in vi editor created by “set nu” option

I have used vi editor several times on many different machines, but I have never seen such an behavior of set nu option. This is what my vi editor looks after I set the set nu option in .vimrc file ...
2
votes
2answers
37 views

Why every new file is automatically encoded with ASCII while everything is set to UTF-8?

My system locale is set to UTF-8:US, this is confirmed by running the locale command. But it is very strange that every time I type the vim FILENAME command (the file does not exist, I'm using this ...
0
votes
0answers
61 views

Installing Vim Plugin for Codeblocks

I'm currently trying to install a vim plugin for codeblocks from here. I have installed wxWidgets and codeblocks but I'm unsure about the installation steps that are provided at the bottom of the ...
0
votes
1answer
48 views

.vimrc isn't changing vimtutor

I am starting with Vim. I started a ~/.vimrc file in my home directory and started adding preferences. When I save and start the file again I can see the preferences taking effect in my file. ...
7
votes
1answer
139 views

Where to put xmodmap command execution for remapping CapsLock to Esc?

I am a vim user and I use Esc frequently so I mapped Caps Lock to Esc. I currently have this in my ~/.profile: # remap Esc to Caps Lock xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' The ...
0
votes
1answer
210 views

Invalid eclipse home when installing Eclim

I am encountering a issue when installing the Eclim. It is not able to detect the location of the Eclipse. At the installation screen, I select the Eclipse home folder, but the Eclim installer has an ...
0
votes
0answers
90 views

Change terminal vim and nautilus open with

I installed terminator, because I didn't like how vim looked with the default. I set terminator as system the system default following the instructions here. Now when I press CTRL ALT T terminator ...
1
vote
0answers
68 views

How to select inside curly braces in vim

I use Vim version 7.4. I'd like to sort the first css snippet to the second. 1: html { margin : 0; padding : 0; border : 0; } 2: html { border : 0; margin : 0; padding : ...
0
votes
0answers
33 views

VIM: Not able to copy complete line

I am using VIM version 7.4.52 on UBUNTU 14 LTS. to copy pasting I followed VIM Documentation instructions. It says: Position the cursor where you want to begin cutting. Press v to select characters ...
1
vote
0answers
209 views

Install vim-latex on Ubuntu 15

I've tried to install vim-latex via: sudo apt-get install vim-latexsuite vim-addon-manager install latex-suite I have added to my .vimrc filetype plugin on let g:tex_flavor='latex' When I start ...
0
votes
0answers
14 views

How can I execute a binary program by using gnome terminal in gvim?

I'm preparing for a ACM-ICPC regional recently, and I use gvim as my routine editor. I wanna compile my C++ code inside vim, that quite easy, But I want to execute it on the gnome terminal instead the ...
2
votes
1answer
68 views

Column selection mode (CTRL+V) on vim doesn't work as expected

I'm trying to select & edit these text: pick e17a1b1 test 1 pick 37d4ccb test 2 pick c7ab952 test 3 pick 905617f test 4 pick 1c77d56 test 5 pick 1805ffa test 6 What I do: ctrl + v (not V, ...
0
votes
0answers
38 views

gvim not rendering lines when opening new file/scrolling

I am running VirtualBox Ubuntu guest with Windows 10 host with extensions installed. I'm running into a weird issue with gvim not redrawing lines, blocks at a time. The lines appear to draw when the ...
0
votes
0answers
72 views

gpm service Failed

I want to allow the use of the mouse on the terminal so I made an apt-get install gpm and then I'm having an issue with the activation of gpm service. I'm getting this message: Creating config file ...
1
vote
1answer
138 views

How can I compile an 4.2.x version of Guest Additions on Ubuntu 14.04.3 LTS?

I would like to compile the Guest Additions from Virtual Box 4.2.12 on Ubuntu 14.04.3 LTS. It is required to run gvim properly (see addendum below). I can confirm that I was able to do so in 13.04 ...
1
vote
3answers
203 views

Alias to search files by name and open them in vim

I already have an alias to (more) quickly search files : alias f='find . -iname' I use it as such: $ f *statis* ./main/statistics.py ./test/test_statistics.py Now, I would like to have another ...
2
votes
1answer
53 views

How to make the shell aware of the terminal profile

I am using gnome-terminal 3.6 on Ubuntu 14.04. I recently decided to try the Solarized color scheme. This involves making a few changes: Making a Gnome terminal profile with the Solarized ...
1
vote
1answer
88 views

Script to open terminal in particular directory, in particular workspace, then VIM to a particular file

Bonus: vsplit to another file. ;) I have 9 workspaces, and often have multiple terminals running VIM on different files. The setup is pretty standard for a project—but I have to go about opening ...
0
votes
1answer
52 views

Is it possible to have a unique theme for Vim in Ubuntu Server

I recently started managing my own Ubuntu Server and I'm constantly using Vim to edit my files and I was wondering if it was possible to install a them to use overtime I login to my server? The ...
0
votes
1answer
68 views

"+y not copyes to clipboard

Trying to copy piece of text to system clipboard. I do visual select then pres " then + then y. Then have message 7 lines yanked. When I press p data is pasted in vim, but when I'm trying to paste ...
0
votes
1answer
69 views

Jump to corresponding html tag in vim

I am editing an html file in vim. How do I jump to a corresponding tag? So, from <b>, go to </b>, etc. % takes me to the corresponding closing element i.e. from < to > or from ( to ...