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

YouCompleteMe plugin of VIM not working with NLTK

I have recently installed the YouCompleteMe plugin for vim through Vundle. It works really well for Python. Problem starts when I import the third party library nltk. For example if I do the following ...
0
votes
2answers
97 views

Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that: The default VIM package has been built against python3 instead of python2. Yet after I installed vim with the following command: sudo apt-get ...
0
votes
0answers
9 views

Are there any downsides/risks to using vim-gtk on production server?

I know this seems to be considered blasphemy but I really don't like editing server files with vi. If I install vim-gtk on my production server so I can use gvim and use x11 forwarding in putty to ...
1
vote
2answers
46 views

vim.desktop - changes lost when terminal exits

I was thrilled to notice a GNOME launcher for vim in the vim-common package after I upgraded to Ubuntu 16.04, since it offers an alternative to gvim (a solid app, though not perfect for my workflow). ...
3
votes
1answer
487 views

No python intepreter in vim for Ubuntu 16.04

I've recently installed Ubuntu 16.04 and in the Release Notes it says VIM defaults to python3 On my fresh install of Ubuntu 16.04 I installed vim with the following commands $ python3 -V Python ...
1
vote
0answers
38 views

GLib-GObject-WARNING when closing gvim

I set my computer up new with Ubuntu 16.04 today. I already installed vim-gnome. While working with it, everything is fine. But when I close gvim I get this message in the terminal: (gvim:5834): ...
0
votes
1answer
46 views

badwolf color scheme does not work on ubuntu 14.04

I want to use color scheme badwolf for my vim so I downloaded it from here https://github.com/sjl/badwolf and copied colors/badwolf.vim to my ~/.vim/colors directory. But it does not work. It does not ...
0
votes
3answers
55 views

Is it possible to have both vi and vim installed so that they can be used separately?

I can't use vi, well, I can, but I would much prefer vim, however I need to share a computer with someone who hates vim and can only use vi... After installing vim I find that if I use the vi command ...
1
vote
0answers
23 views

Vim 7.4: Strange behavior with invalid actions

First of all: English isn't my mother language, please excuse any error on my post. Thanks! I have a problem with Vim 7.4 on my laptop installed Ubuntu 14.04. When I perform any invalid action ...
1
vote
1answer
34 views

Edit crontab with an editor other than the default

I would like to edit crontab with vi once. My default editor is nano, and I want to keep it that way. I only want to edit with vi one time. I don't want to change the default to vi then back to ...
1
vote
1answer
43 views

How to install Emmet (or any web development Plugins) for vim editor

I am trying to develop my Website but I am not interested on using graphical interfaces. I would like to use vim only. I went on this page http://www.vim.org/scripts/script.php?script_id=2981, but, I ...
1
vote
0answers
25 views

Setting vim background mode depeding on time of day

Several colorschemes in vim have two modes, which change the colors when you do set bg=light/dark. I'm wondering if it's possible to setup my .vimrc file such that it sets an appropriate mode ...
0
votes
0answers
20 views

Open file in vim using symbolic link

I have symbolic link in current directory that points to text file. How to open file in vim using that symbolic link? command vim linkname not works.
0
votes
0answers
69 views

unable to install vim on docker's ubuntu container

Using ubuntu 14.04 platform, installed docker: ubuntu@ubuntu:~$ docker --version Docker version 1.10.2, build c3959b1 in docker, running ubuntu image/container root@2a14c4a7b565:/# uname -a ...
0
votes
1answer
45 views

vim theme showing up strange in tmux

My vim is configured like so: syntax on colorscheme brogrammer set nu set expandtab set tabstop=4 set autoindent My tmux is configured like so: set -g default-terminal "xterm-256color" ...
3
votes
1answer
42 views

When writing a Bash script, how do I create then open a file with the date as part of the name?

I want to use a script to open a list of URLs, then create an empty text-file called "[today's date].homework" and then open that text file in Vim. Here's the script I have now: #!/bin/bash ## Open ...
-3
votes
1answer
96 views

How can I view a text file with Chinese characters in Vim?

I have a text file with Chinese characters. I can view it in gedit and it works fine, but when I try to open it with Vim I see things like: »¹Ã»ºÃºÃ¸ßËÑÑ©»¨ÕÀ·ÅµÄÆøºò£¬ÄôÀÚ¹âÈáÈõºì´øÉÏÀ­²»Éϵľ糡°æ, ...
0
votes
2answers
139 views

Can't save .bashrc file in VIM (“The swap file ”.bashrc.swp“ already exists!”)

I have problem with .bashrc file I can't save changes by command :wq. When I put command to terminal vim .bashrc I have message like below. And when I choose "Edit" I am in .bashrc but :wq isn't save ...
0
votes
0answers
31 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 ...
-2
votes
1answer
39 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
27 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
52 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
77 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
29 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
54 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
797 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
17 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
78 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
24 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
128 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
59 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
56 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?
2
votes
1answer
276 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
109 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
102 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 ...
4
votes
1answer
172 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.
5
votes
0answers
153 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
39 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
39 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 ...
1
vote
1answer
229 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
60 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
166 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
215 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
307 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
282 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
81 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
59 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
135 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
81 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. ...