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

0
votes
0answers
12 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 ...
1
vote
1answer
39 views

How to edit /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts and similar files and why they can (not) be edited

I a trying to edit the following file (ls -alstr output): 0 -rw-r--r-- 1 root root 0 Apr 15 17:07 /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts Unfortunately, if I try to edit it with vim or simply ...
0
votes
1answer
24 views

Vim cannot find syntax.vim

Recently, I needed to build Vim from source to use a plugin that required Lua interpreting. This worked fine on my laptop, but my tower computer is having some issues. Any time I run Vim, I recieve ...
2
votes
1answer
17 views

vi/vim/view /etc/alternatives loop

I wanted to understand the difference between the executables vi and vim. which has led me to /usr/bin/, and there I've found the following symlinks: /usr/bin/vi -> /etc/alternatives/vi ...
0
votes
1answer
16 views

less.vim not working on my Ubuntu 12.04 lts

I found many sites saying that vim can be used as a pager like less with syntax highlighting. So to make it work I added this line to my .bash_aliases file: alias vless='vim -u ...
0
votes
2answers
44 views

Vim Syntax Highlighting Question

I have a doubt about vim, I installed the editor on my ubuntu 13.10 and everything is ok. but when I create a file ".txt, or .conf" the highlighting isn't enabled, I put "#" and " but not change ...
8
votes
2answers
338 views

How to display the name of file which I am currently editing with vim on terminal title?

I am editing multiple files located in the same folder, in multiple tabs, on a single terminal. pwd(directory in which I am currently working) is displayed on the top of the heading of the terminal, ...
8
votes
3answers
436 views

Which application does the vi command open?

When you type vi in the terminal, the following output is shown ~ VIM - Vi IMproved ~ ...
1
vote
0answers
18 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 ...
0
votes
1answer
25 views

Preventing “pasting” (p) from copying selected text to register in Vim

What I want is: Copy some part of text Replace some other parts of text with copied part. What I do is: Make a selection: v Yanking the selection: y Making another selection: v Paste the yanked ...
0
votes
0answers
51 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 ...
1
vote
1answer
23 views

Vi/Vim Headers in files

Recently I've come across several files with vim headers in them, and I have been unable to locate the source of what they are used for. As an example: # vi: set ft=ruby : I understand that set ...
1
vote
2answers
99 views

Number of columns in a vim file

Is there an equivalent for wc -l to have the number of columns of a vim file? (I have a file with several rows and columns separated by spaces)
0
votes
0answers
45 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 ...
1
vote
2answers
39 views

What is the difference between Vi and Vim?

This might sound like an idiotic question. I would appreciate it if someone can let a newbie know what the differences are between "vi" and "vim". I've heard vim is a successor to vi but whenever I ...
0
votes
0answers
40 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
1answer
32 views

Colorscheme vim depending on Project

I have a project that uses Ruby & Javascript and I am really comfortable with a particular colorscheme. However I have another project in PHP + HTML, and I would like to use another colorscheme. ...
1
vote
1answer
101 views

VIM does not refresh properly

I have a VM box with LAMP installed I use the shell (with ubuntu 12) to connect to the VM box and real server (dell poweredge), every time I press page up or page down, the screen does not get ...
0
votes
1answer
98 views

Vim and screen: background color not reset when exiting vim

I use vim in a screen session. Whenever I end editing a file and exit vim the background of my terminal stays the same as in vim, rather than resetting correctly as it does when I am not using ...
2
votes
2answers
102 views

Unable to use 'vi' on Ubuntu 12.04

Whenever I try to open any text file using vi or vim, I get the following error, vim: error while loading shared libraries: libtcl8.5.so.0: cannot open shared object file: No such file or directory ...
3
votes
2answers
60 views

zsh doesn't open vim or gvim until terminal is closed [closed]

When I try to launch vim or gvim from the terminal (or a program tries to do it such as git rebase --interactive). It doesn't open until the terminal closes, it just sits there thinking the program ...
1
vote
1answer
97 views

uses vim as an ide

I want plugins for vim so that I can use it as a C language IDE. I used to use qtcreator and I really appreciate his auto-completion (really perfect), but after trying for several months vim I really ...
0
votes
3answers
72 views

What is the command in the terminal to update VIM on ubuntu?

I'm on ubuntu 12.04 and want to know how do you update VIM via the command line. what is the command to update this?
1
vote
0answers
86 views

vim colorschemes don't appear correct when using sudoedit

I've been trying to be a good little sysadmin and use sudoedit, instead of sudo vim, or sudo -i;vim, when making changes to root owned files (ex /etc/profile), but my vim colorscheme doesn't seem to ...
0
votes
0answers
163 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 ...
1
vote
0answers
73 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 ...
2
votes
4answers
153 views

No ~/.vim folder in ubuntu 13.04 where to go for it

I am trying to install different plug-ins in vim. I have installed vim using sudo apt-get install vim. But the downloaded files for these plug-ins need to be placed in ~/.vim folder. But there is no ...
0
votes
1answer
69 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
0answers
47 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 ...
1
vote
2answers
121 views

Checking if vim is installed successfully in Ubuntu 12.04

I am a newbie in linux,maybe it's a silly question but could not make it though. I have ubuntu 12.04 installed without GNOME and now as i wanted to know more about linux am facing few queries. I ...
0
votes
1answer
306 views

Having problem with fonts in vim-airline

I wanted to install vim-airline but I am having problems with unicode fonts. I have installed it with vundle: .vimrc set encoding=utf-8 Bundle 'bling/vim-airline' let g:airline_powerline_fonts = ...
1
vote
1answer
333 views

How do I get vim to indent all HTML tags?

I was using vim on Debian 7 to edit an HTML document. I started typing: <HTML>Return… After the initial return, the cursor was indented one level, so that as I typed <head>, and ...
1
vote
1answer
76 views

How to hide or remove the bar which is top of the terminal?

I always press ALTH when I am using vim. But the terminal have a help button at the top blocking me use ALTH when using vim. I want to hide or remove that bar. Any ideas?
0
votes
0answers
28 views

Bold colors not matching text

On Ubuntu 13.10 I have my terminal profile preference checked to have bold color Same as text color. Yet when I run a script to check my colors I get the following output: This is really throwing ...
0
votes
2answers
176 views

Is there any command line interactive tool like meld?

I usually work on someone else's code base on a remote system and often need to merge code from two different files. For that I have to pull files to my system and meld it and push it back to the ...
1
vote
0answers
64 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
52 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
94 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 ...
0
votes
2answers
136 views

Vim AutoComplPop issues?

I need auto-completion in vim for programming languages, for that I downloaded the AutoComplPop followed the instructions mentioned there and copied the files cp -r ...
0
votes
1answer
160 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
120 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. ...
1
vote
2answers
226 views

Compiled Vim from source, removed via make uninstall now cannot apt-get anything… What to do? [closed]

All apt operations insist on performing apt-get -f install but that does not work in correcting. sudo apt-get -f install only returns the error in the error log: user@computer:~$ sudo apt-get -f ...
1
vote
1answer
50 views

Daily builds for VIM

Is there any PPA that allows to be up to date with the latest changes in VIM, even they are buggy or not? I would like to know that I use the latest VIM build even it is unstable. Also, the ...
2
votes
1answer
139 views

Make VIM reload file as soon as it changes on disk

I don't want to have to keep reloaded a log file manually, I want to automatically see my logs as they come in. Apparently, VIM has this feature built in, something called autoread, but I can't get ...
1
vote
1answer
3k views

How to fix the “Setting locale failed” error while installing vim?

When installing vim through Software Center , I get this error installArchives() failed: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = ...
1
vote
1answer
49 views

Do I need to start vim with sudo?

When I start vim with $ vim the changes I made to .vimrc are not in effect; but when I start with $ sudo vim the changes are in effect. What is the cause of this? Do I need to start vim with sudo ...
0
votes
2answers
46 views

Retrieving first elements of lines

I have a text file for which each line looks like: number, description1, description2,..., How can I retrieve in a file the numbers only?
2
votes
2answers
2k views

Increase Font size in Vim editor

Actually I practice C programs in vim editor.But font size in it is very small.Is there any option to increase the font size in vim editor?
15
votes
3answers
4k views

Gvim GLib-GObject-WARNING in ubuntu 13.10

I upgraded from ubuntu 13.04 to ubuntu 13.10 this afternoon. And when I try starting vim form the terminal after the upgrade, I get these warnings (gvim:4054): GLib-GObject-WARNING **: Attempt to ...
1
vote
1answer
315 views

vim-airline status bar not shown when only single file is open

I am recently start using Vim (Vim-gnome) and also use plugin vim-airline. Everything is fine but when i have only single file open, Status bar shown but not rendered correctly(not exact airline bar, ...