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
216 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
590 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
74 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 colors:...
2
votes
1answer
268 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 x86-...
1
vote
1answer
132 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 ...
1
vote
1answer
44 views

Vim in shell allows <alt>[a-z] to circumvent having to press <escape> to get out of INSERT mode. How can I apply this to Gui implimentations of Vim?

Vim in shell allows <alt>[a-z] to circumvent having to press Esc to get out of INSERT mode. For example, Open up a terminal and set its editing mode away from emacs, to vi set -o vi Now ...
4
votes
0answers
41 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 ...
2
votes
0answers
13 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 ...
2
votes
0answers
90 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
164 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
475 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
391 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
350 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
194 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
31 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 ...
1
vote
0answers
37 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
0answers
29 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
159 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
64 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
499 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
451 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 --with-...
1
vote
0answers
252 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 ...
1
vote
0answers
172 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
324 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
452 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
46 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
288 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
118 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
17 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, &...
0
votes
0answers
28 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. ...
0
votes
0answers
17 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
41 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
41 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
32 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
101 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
110 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
40 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
19 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
99 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@...
0
votes
0answers
179 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
131 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
37 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
59 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
116 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
85 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
86 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
21 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 ...