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

3
votes
1answer
207 views

How to transform Vim configuration into Emacs one?

I need to setup Emacs editor by preparing the ~/.emacs configuration file. I have been using Vim for years and now I want to switch to Emacs for various reasons that are out of scope of this post. To ...
3
votes
1answer
582 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 ...
2
votes
1answer
69 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 ...
2
votes
1answer
246 views

How to disable Lazy Preempt in kernel

I'm relatively new to Linux and working on getting a real-time kernel up and running for robot applications. I'm on Ubuntu 14.04, using kernel 3.14.3 and the 3.14.3-rt5 real-time patch. Also using ...
5
votes
0answers
152 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 ...
2
votes
0answers
81 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 : ...
2
votes
0answers
147 views

Vim does not load colorscheme from .vimrc when started from tmux

I got a very simple startup script, that starts a gnome-terminal with a running tmux session. #!/usr/bin/env bash gnome-terminal -e "tmux" --window --full-screen When I run vim inside this ...
2
votes
0answers
440 views

vim showing weird characters on screen in terminal

So I just installed ubuntu on my Netbook and switched to the openbox window manager. When I open up VIM in a terminal and hit j when I am at the top of the file or hit k from the bottom of the file, ...
2
votes
0answers
360 views

key word remap enter carriage return vim command line

In my .vimrc file I have :imap ii <CR> which allows me to hit ii for enter/carriage return in vim but now i would like to set that same configuration in my .inputrc so that i can just hit ...
2
votes
0answers
325 views

gvim startup slow: huge GUI delay

vim starts up quickly. gvim takes ages, with or without loading plugins. The --startuptime option shows: 733.162 467.301: starting GUI 733.945 000.783: reading viminfo 25801.849 25067.904: GUI ...
2
votes
0answers
188 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 ...
1
vote
0answers
37 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): ...
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
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 ...
1
vote
0answers
126 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
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
0answers
375 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 ...
1
vote
0answers
390 views

vim binary with all libraries statically linked

I want to build vim with all libraries, which vim depends on, statically linked. Vim version is sufficient to run YouCompleteMe. I use the following flags with configure script: $./configure ...
1
vote
0answers
151 views

vim with python3 compatibility

So I followed this way What's the easiest way to get vim with python 3 support? which didn't work and this one http://www.xorpd.net/blog/vim_python3_install.html that did work. the thing is each ...
1
vote
0answers
286 views

install and enabling vim-youcompleteme on Ubuntu 14.10

I did follow instructions for installing vim-youcompleteme. I searched for similar questions and answers, but still not helping me. I have clean install of Ubuntu 14.10. Then I installed vim 7.4, ...
1
vote
0answers
417 views

In a dockerized ubuntu instance how do I get nano to display/work right?

When I apt-get install nano in a docker instance of ubuntu:trusty nano's display is seriously messed up, what do I need to do to fix this? I've tried vi/vim as well, and arrow keys are broken. In ...
1
vote
0answers
234 views

vi issue in SSH TTYs to Ubuntu 14.04.1 LTS

After upgrading my server to Ubuntu 14.04.1 LTS, I can no longer use the vi editor to edit anything in an SSH terminal (I access the server by launching ssh sessions from Cygwin running on Windows). ...
1
vote
0answers
44 views

How to add a genitive phrase to Vim spellchecker?

How can I make Vim's internal spellchecker ignore the genitive form of phrases added to a spellfile? For example, how can I make the spellchecker ignore "Nicolai's" when "Nicolai" has already been ...
1
vote
0answers
101 views

Vim lines get off-by-one

On Xubuntu 13.04, when I execute a VIM command command mode, like [esc] then :w. I'll occasionally find that a bunch of gobbly-gook stays in the very last line of the terminal. The text with the ...
1
vote
0answers
280 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.
1
vote
0answers
115 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
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
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 ...
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
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 ...
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
76 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 ...
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
0answers
132 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
0answers
113 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 ...
0
votes
0answers
35 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 ...
0
votes
0answers
16 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 ...
0
votes
0answers
52 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
102 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 ...
0
votes
0answers
75 views

g++ and vim on Ubuntu phone

Can i install g++ and vim on my ubuntu phone? I have tried running sudo apt-get install vim g++ from the terminal app, but neither were in the repositories.
0
votes
0answers
75 views

How to change toolbar color in gvim?

I've been customizing my gvim but I'm currently stuck since google searches doesn't seen to give me answers about the topic above.
0
votes
0answers
17 views

Can VIM (plugin) give a warning if dead keys are enabled?

I often switch between dead keys and composed key text input/entry. That's easily done by the icon in the top panel. For VIM dead keys make no sense. Is there a plugin for VIM that can give me a ...
0
votes
0answers
207 views

How to install and use vim without messing up with write mode

The terminal app works fine, I can run vi using it. The problem is that I've already get used to vim and don't want to learn all the vi-vim differences just for editing plaintext. I assume there must ...
0
votes
0answers
275 views

What is my problem in VIM?

I am adding to PATH in VIM in terminal but I'm getting an error. I followed this guy's instructions carefully and even though he didnt get the error i did. I was following Android Development for ...
0
votes
0answers
44 views

Need help removing a program

I'd installed vim using apt-get, but in my infinite wisdom, I decided to uninstall it and try installing from source. I don't know why, but the end result was kind of borked up. I'm trying to ...
0
votes
0answers
20 views

vim plugin not activating

I had installed a scala plugin but it is not activating on a .scala file. Here is my .vim directory: 11:49:43/clustering $find ~/.vim /Users/steve/.vim /Users/steve/.vim/.netrwhist ...