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

2
votes
0answers
27 views

Make vim to show line numbers starting from zero at start up in ubuntu 14.04

I know that if you add "set number" in ".vimrc", vim would show line numbers starting from 1 when you open a file for viewing. But I want the line numbers to start from zero. How can I do this? ...
1
vote
0answers
25 views

How to prevent command execution edited with fc

I have FCEDIT set to vim. If I call fc command it will open vim with temporary file and contents of that file will be the last executed command from history. The problem is that even if I exit ...
0
votes
0answers
18 views

upgrading neovim

Can't seem to upgrade neovim. I added the new repo: add-apt-repository ppa:neovim-ppa/unstable And upgraded, but I'm still on nvim 0.1.5-dev, and opening up nvim doesn't pay attention to the .nvimrc ...
2
votes
2answers
345 views

Can't find path to ~/.vimrc file

I've read plenty of post on how to change the tab length in my vim editor, but only temporary changes. I want to make the configuration permanent and my understanding is that I can configure it in ...
0
votes
0answers
21 views

Vim auto-formating code Allman style

I'm asking this question since the internet seems full of incomplete guides on how to do this task. I'm looking for a way to format my entire file Allman style (braces on their own lines, 4 spaces, ...
-2
votes
3answers
43 views

VIM: save file without to close it? [duplicate]

How is it possible to save the vim file without to close it? I do a change, save it immediately and continue to work with the file without to reopen it again... I have found of course the question how ...
1
vote
1answer
81 views

Unmet dependencies. Try 'apt-get -f install' with no packages

I tried to install Google chrome on my Ubuntu 12.04 machine. I just followed the manual installation procedure mentioned in this link and finally when I was about to install the .deb package of google-...
0
votes
1answer
23 views

Tab Autocomplete “Command Substitution error”

I used to never rely on it, but now that I am hooked, this is driving me nutty. When I am in terminal and hit Tab to autocomplete my statement, it works for most commands (cd, mv, rm, etc) but it is ...
0
votes
0answers
25 views

Ubuntu update after recompiled vim

Hello I've got a problem with re-compiled vim. I needed vim to support lua for some plugins so I find some "how to" and it went pretty well. But now Ubuntu updates keep asking to install vim although ...
1
vote
1answer
46 views

How to make vim code folding colors more readable

I use code folding in vim, e.g. za, zc, zR, ZM But when the code is folded the resulting color - light blue on white is very hard to read for me with poor contrast I have tried changing my profile'...
2
votes
0answers
14 views

GVim operator pending commands only work after suspend or waiting an arbitrary amount of time

Basically, on a fresh boot, many of the standard operator pending commands don't act as they should. Instead, they seem to act as if the operator pending command was never issued, sort of. ciw will ...
1
vote
2answers
70 views

Open Vim in Xfce4 Terminal from Thunar

I am using Xubuntu 16.04. I have set the default application to Vim for plain text files in Thunar. By default Vim opens in XTerm and not in Xfce Terminal. I would like for it to default to Xfce4 ...
0
votes
0answers
19 views

How do you remap .vimrc so Ubuntu SDK's fakevim implementation will escape insert mode on <Right>, <Left>, <Home>… etc

Ubuntu SDK has fakevim. Its behavior varies compared to real vim. For example; inoremap <Up> <C-[><Up> inoremap <Down> <Esc><Down> While in Insert Mode, &...
4
votes
0answers
67 views

Installing vim latex-suite plugin?

I have installed vim-gtk and vim-addons-manager on my ubuntu 14.04, and also the latex-suite plugin. This I did with sudo apt-get install vim-latexsuite vim-addon-manager enable latex-suite which ...
0
votes
0answers
29 views

How do I upgrade vim 7.4.52 to a higher version like 7.4.314 on Ubuntu 14.04? [duplicate]

I'd like to use YouCompleteMe in Vim and I have to upgrade to a version higher than 7.4.314. apt-get install vim gives me Vim 7.4.52. Is there a command line method?
1
vote
1answer
59 views

vim syntax highlighting ubuntu touch

I'm trying to get syntax highlighting working while using vim. :version gives me: "Small version without GUI". I installed both "vim-gui-common" and "vim-runtime", but everytime I issue the ...
0
votes
0answers
38 views

How to use vim or mutt as a back-end for Thunderbird?

When I send an email I usually use mutt because that lets me use vim. Sometimes, for longer mail, I open a file in /tmp named wxyz and run that through to correct spelling and capitalization, &c. ...
1
vote
1answer
52 views

How do I undo an action in Vim?

I know that there is a command or something you can type in Vim that does the same as CTRL + Z does in most GUI programs in order to undo what was just typed, but I can't remember what it is. Does ...
2
votes
1answer
26 views

Why do my windows occasionally stop taking keyboard input after alt-tab?

I have recently installed Ubuntu 16.04. Two different applications (Vim and Awesomenauts), on different occasions, have started completely ignoring keyboard input - though mouse input still works. ...
1
vote
2answers
743 views

How to Install vim-full in 16.04?

I cannot find it in apt-get. I need vimdiff. How can you install vim-full in Ubuntu 16.04?
4
votes
3answers
577 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My Bim doesn't have Python support. The thing is that I installed vim, vim-gnome, vim-nox, I surfed net for hours and tried to build vim from source, I deleted some stuff like vim-...
1
vote
1answer
18 views

Maximize Terminal Window on Launcher where Terminal=True

I have searched the internet for a while now, but have not found a suitable answer. I have vim installed with a .desktop file to start vim (not gvim!). In the .desktop file it has a Terminal=True. ...
1
vote
0answers
36 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 ...
5
votes
2answers
3k 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
19 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
80 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). ...
6
votes
3answers
2k 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
1answer
256 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
135 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
63 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
41 views

Vim 7.4: Strange behavior with invalid actions

I have a problem with Vim 7.4 on my laptop installed with Ubuntu 14.04. When I perform any invalid action, I expected that nothing happens, But I always received strange symbols look like quote ...
1
vote
1answer
61 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
115 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
30 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
48 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
1answer
309 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
67 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" ...
4
votes
1answer
50 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
239 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
358 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
45 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
63 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
34 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 ...
2
votes
0answers
127 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 <path-to-this-file>/clang-...
0
votes
0answers
122 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
50 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
86 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
2k 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
20 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
107 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 user@...