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

Vim and muscle memory

I made in my vimrc an abbreviation because I want to only write "foo" to write "bar", and thence I mapped "bar" to "NOPE" so that I would be punished if I tried to write directly "bar". iabbrev foo ...
3
votes
1answer
147 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
448 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
145 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 ...
1
vote
1answer
27 views

When exiting Byobu, close all non-exited vim sessions

I have configured Byobu to open a dozen text files at startup: new-session -n memo /home/nico/bin/vim-my-memo.sh; new-window -n client1 /home/nico/bin/vim-client1.sh; [...] It works well, but ...
1
vote
1answer
25 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 ...
1
vote
1answer
27 views

Vim buffers not unloading

I can't make vim to delete or unload buffers when there are not active on a vim panel anymore. I tried placing this on my .vimrc set bufhidden=delete and also set bufhidden=unload But none of ...
1
vote
1answer
48 views

How to copy from vim visually with terminator?

I would like to be able to visually select in vim in terminator, right click and copy whatever is highlighted to the clipboard. In OSX for example, I can do this by holding down the "alt" key and ...
1
vote
1answer
63 views

go back to vim's default color

I read this :highlight Normal ctermfg=grey ctermbg=darkblue from http://stackoverflow.com/questions/1117526/setting-the-vim-background-colors But I change the darkblue to white!! What I done? OMG? ...
1
vote
1answer
162 views

How to disable terminal fullscreen padding

When I run vim at full screen mode in gnome-terminal, actually it is not really full screen. There is a little padding on the right and bottom, with the terminal background color. You can reach the ...
1
vote
1answer
1k views

Can't recover my desktop environment

Good evening Everyone, I am having problems recovering my desktop. Before it came to this desktop without the taskbar at the top, and the sidebar. Also the title bar for applications are gone. What ...
1
vote
1answer
275 views

Vim - up-down line movements the cursor changes column position

While editing a simple text file where every line is nearly to the end of screen, I was expecting vim to retain the column position as I used j and k to move up and down. Surprisingly, it does not ...
3
votes
0answers
185 views

Vim doesn't have 256 colors

I've been experimenting with different colorschemes in vim lately. My problem is that the colors used by the schemes only use the 16 colors in my Profile Preferences, even though my terminal supports ...
2
votes
0answers
65 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
227 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
216 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
177 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
79 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
159 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
226 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
238 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 ...
1
vote
0answers
199 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
38 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
92 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
185 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
96 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
20 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
16 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
6 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
49 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 ...
0
votes
0answers
63 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
31 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
32 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
11 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 ...
0
votes
0answers
205 views

I want to install vim with ruby support on Ubuntu 15.04 vivid vervet

I have installed Ubuntu 15.04 and am trying to set up my Ruby on Rails environment to program. I use vim as the IDE and it comes pre-installed without ruby support: vim --version | grep -i ruby ...
0
votes
0answers
127 views

Compiling vim with python support on ubuntu 14.04, no errors and no support

I'm trying to compile vim with support for YouCompleteMe as per the github guide [redacted because no reputation] and I'm having strange results. Vim compiles correctly as best I can tell and doesn't ...
0
votes
0answers
19 views

Character key 'T' prints 7 in vim

I am using Ubuntu 13.10 x86_64 with VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 12 2013 00:23:19). Whenever I press the key 'T' in VIM it prints 7 like a leetspeak. The key works fine outside ...
0
votes
0answers
54 views

vim in tmux breaks with cyrillic symbols

So, I have file with russian text. Using Ubuntu 12.04 If I run vim in clear console and open this file - everything is ok, here is screenshot But if I run vim in tmux the result is Here is my tmux ...
0
votes
0answers
107 views

vim syntax color confuse [spf13-vim]

under the molokai color theme there are some characters would be automatic marked in red color and some tab characters would be automatic marked in white color too how to solve the automatic marked ...
0
votes
0answers
25 views

Why do my A, N, Enter, Shift Keys seem to have reduced sensitivity to touch?

I recently installed PyCharm, Emacs, and Vim in order to start programming. However, I noticed that my A, N, SHIFT, and ENTER keys on my keyboard seem to not always work when I press them. There was ...
0
votes
0answers
59 views

Vim colorscheme with .ino files

On my Ubuntu 14.04 system, I'm working on an Arduino project and I'm using vim as the editor rather than Arduino's IDE. I'm currently using solarized colorscheme in vim. It seems like the color for ...
0
votes
0answers
52 views

clear Konsole color scheme

When I open this file in vim class Program : Object { static int _I = 1; /// <summary> /// The quick brown fox jumps over the lazy dog /// THE QUICK BROWN FOX JUMPS OVER THE ...
0
votes
0answers
27 views

when to source vimrc?

kinda a vim newbie, used vundle not so long ago but couldn't install all the plugins that i want correctly, maybe it's me doing things wrong. Anyway now using pathogen, it's doing its job, well when ...
0
votes
0answers
61 views

Gvim shows wrong color for highlight color names on 14.04

Freshly installed Ubuntu 14.04 and built gvim 7.4 on it, I just discovered that the colors gvim picked were all wrong for the pre-defined color names, like the name "Green" within: :hi _Green_NONE ...
0
votes
0answers
62 views

Can't edit file in Vim netrw

Suddenly I cannot edit any files accessing FTP files using Vim's netrw. I can normally browse the folders but whenever I press Enter the terminal stops, the screen divides into two and on the top its ...
0
votes
0answers
42 views

Extension to submit problem codes on Hackerearth, Codechef from editor

Is there any extension available in any editor to submit code directly from editor to the competitive programming sites like codechef, hackerearth, hackerrank, topcoder, codeforces etc.?
0
votes
0answers
194 views

ubuntu 14.04 : VIM with YouCompleteMe plugin, throw “ImportError: No module named _io”

I was using python2.7.6, VIM 7.4 and YouCompleteMe plugin on my Ubuntu14.04. Today I did some update on my Ubuntu, but after that, I found my VIM cannot work properly with YouCompleteMe. When I start ...
0
votes
0answers
127 views

Problem with Vim's colorschemes

I have started using Vim in Ubuntu 14.04 64bit. I tried to change the colorscheme but the result was peculiar. The colors were as if there were random and a lot of times I couldn't even look at Vim or ...
0
votes
0answers
177 views

Console Mode VIM 256 Color Support

This question is about using the console mode (i.e. ctrl+alt+f1) and not about using a terminal emulator. When running from a terminal emulator, my VIM uses 256 colors without a problem. I've tried a ...
-1
votes
0answers
19 views

How to install Vim plugins in Ubuntu?

I am new to Ubuntu Linux environment. I want to install Vim plugins and I am not understanding the method to do so.