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
2answers
2k views

How to build vim with gui option from sources?

I'm having a hard time building a VIM 7.4(obtained from vim's ftp site) with gui option. It builds ok without the gui option. Here's how I'm doing it: cd ~/Downloads/vim74/src ./configure ...
2
votes
1answer
94 views

Reflect changes to file that .vimrc sources

Here is my set-up. There is a ~/.vimrc that sources several files. I make changes to one of these. And I do :so ~/.vimrc, the changes in the underlying files are not reflected. I need to quit and ...
1
vote
1answer
26 views

Turn off colour while using script(1)

Is there a way to turn off colour while using script(1)? My script file is being filled with unnecessary information regarding colours from commands such as ls. This information is only visible when ...
1
vote
1answer
847 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
211 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 ...
0
votes
1answer
11 views

Strange behaviors when loading Vim color themes

Here is some links and screenshots needed by this question. I downloaded two Vim color themes: Lettuce and Monokai. (As seen in the link provided.) In my .vimrc, if I only have colorscheme lettuce ...
0
votes
1answer
24 views

How do I access files installed with sudo apt-get

I just installed Ubuntu a few days ago and I am trying to download and use VIM. So I went to terminal and ran sudo apt-get install vim, and everything went fine with running the command, the only ...
0
votes
1answer
93 views

Why won't Vim source my .vimrc at startup?

I have modified my ~/.vimrc significantly (although some of my initial modifications I made in the system-wide /etc/vim/vimrc). It probably doesn't matter either way since I am really the only user ...
0
votes
1answer
35 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? ...
0
votes
1answer
139 views

Can't start gvim from the launcher

I don't know why I've been having so many problems with gvim lately, but now I can't start it from the launcher. I click on it, and it glows and pulsates for awhile, but after a few seconds it stops ...
0
votes
1answer
152 views

:set title in vim doesn't work in gnome terminal

I need to be able to see what I'm working on. On my sisters laptop using unity, :set title sets the title, but on my GNOME desktop with GNOME Terminal 3.10.2 it doesn't do anything. I can set the ...
0
votes
1answer
72 views

Trying to get Vundle to work with VIM

I am following this tutorial, which is actually the Vundle's homepage in github and in step 3 it's telling me to put some code into .vimrc: "Put this at the top of your .vimrc to use Vundle. Remove ...
0
votes
1answer
114 views

Getting always - “xmpfilter: command not found”

I have installed vim plug-in - t9md/vim-ruby-xmpfilter. My .vimrc contains 1 set nocompatible " We're running Vim, not Vi! 2 syntax on " Enable syntax highlighting 3 filetype ...
0
votes
1answer
339 views

Open files with vim in terminal

Is there any way to open file with vim in the terminal without typing file name, but for example then I see in the directory my file, go with arrow keys or something like that? I think I saw one of ...
0
votes
1answer
213 views

Terminal freezes on running apt-get or vim

I am using Ubuntu 13.04 on my laptop. I ssh to my EC2 instance which is running Ubuntu 12.04.3 and every time I run sudo apt-get update, it prints some lines and then the terminal freezes. ...
0
votes
1answer
323 views

VI Editor messed up.. Even the old vi is not working now

I am a newbie in Ubuntu. I am using a Windows XP machine (32 bit) OS and in that I installed VMPlayer and got iso image of Ubuntu 12.04 (downloaded from online). I started the Ubuntu and everything ...
0
votes
1answer
127 views

Couldn't install packages

I have installed Ubuntu 12.04 on windows 7. I have tried to install vim editor through terminal using sudo apt-get install vim then I got the following error and couldn't install the package. Not ...
0
votes
1answer
320 views

gvim warning: LIBDBUSMENU-GLIB-WARNING

In gvim, if I do gvim . it uses netrw to show directory structure. Then if I open a file and then, without editting, do :E and then open the file again I get, LIBDBUSMENU-GLIB-WARNING **: Trying to ...
0
votes
1answer
2k views

Powerline fonts aren't working

I have installed powerline and installed the Ubuntu Mono Powerline fonts and selected the font as the font to use in the terminal. The special characters still aren't working after installing the ...
0
votes
1answer
85 views

How can I get the specific colors that are being used in my vim ruby plugin / theme?

I looking for the specific hex colors that are being used in my color scheme when I'm editing ruby files with vim. How would I find such information?
-1
votes
1answer
322 views

Vundle - Plugins installed but not loading

I've installed vundle on my ubuntu box but when I load vim none of the plugins load. My .vimrc from my home directory [some commented lines edited out]: runtime! debian.vim set nocompatible ...
3
votes
0answers
82 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 ...
2
votes
0answers
93 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 ...
2
votes
0answers
313 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
0answers
156 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 ...
2
votes
0answers
140 views

terminal vim colours broken on focuslost

My vim setup uses the csexact plugin to fix match the colors for color schemes that would normally only work in gvim. Everything works fine until gnome-terminal loses focus, and suddenly everything ...
1
vote
0answers
20 views

Vim does not load coloerscheme 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 ...
1
vote
0answers
58 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, ...
1
vote
0answers
77 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
179 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
99 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
0answers
26 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
143 views

use <tab> to autocomplete with vim plugin AutoComplPop

so i installed this plugin http://www.vim.org/scripts/script.php?script_id=1879 in vim which allows your vim to automatically opens popup menu for completions when you enter characters or move the ...
1
vote
0answers
79 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
70 views

Custom keyboard shortcut variation question

I already have a keyboard short-cut that works for tmux I mapped: Ctrl+Alt+B to the command: gnome-terminal -e tmux BUT when I open up vim in the tmux session started by this the colors don't ...
1
vote
0answers
143 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 ...
1
vote
0answers
133 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
73 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
9 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
75 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
50 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
75 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 ...
0
votes
0answers
275 views

Ubuntu 14.04 Emacs installation problem

I have emacs 24 installed, and trying to obtain package from melpa, but the archive won't download. I am running Ubuntu in virtual box 4.3 on Windows 8. I then returned to my old standby Vim 7.4, ...
0
votes
0answers
100 views

Why is this key remapping not working in Vim?

This problem is getting me really crazy. I used Gvim and Autohotkey under Windows 7 in the past. For various reasons, I mapped CTRL+D to behave likes Enter. This worked well so far. In Gvim I mapped ...
0
votes
0answers
17 views

Backspace behaves oddly in text editors with screen

I have no idea why but backspace sends ^? to my text editor (nano, vim, emac, sublime, doesn't matter which one) when I run them inside of screen but not otherwise. Any ideas as to why this is and ...
0
votes
0answers
270 views

How can I generate tags file with exuberant ctags in ubuntu's C/C++ include directories for using with gvim?

I use GVim 7.4 with TDM-GCC 64 in Windows 7. I know the include directories of this compiler, and added the paths suitably to gvim's tags search path. Everything is fine in Windows. But I am new to ...
0
votes
0answers
323 views

Syntax highlighting not working in Vim?

Can someone help me out. I recently installed Vim for C development and would like to get the syntax highlighting on. I've tried various commands including "syntax on" but none seem to be working. I ...
0
votes
0answers
76 views

vim expandtab not set by fortran filetype

In /usr/share/vim/vim74/ftplugin/fortran.vim I see: " Tabs are not a good idea in Fortran so the default is to expand tabs if !exists("fortran_have_tabs") setlocal expandtab endif But when I ...
0
votes
0answers
2k views

Installing and uninstalling vim ?

Have vim installed wanted auto complitions in vim so i downloaded the addon somehow I messed it up misplaced the files and it started giving the errors whenever I start vim so i decided to uninstall ...
0
votes
0answers
198 views

VIM not working

I m trying make a file using VIM but the error is coming VIM is not installed. When i have tried installing it by command sudo get-apt install vim it's showing error. I tried using Vi it is working ...