28 votes
Accepted

How do I use the system clipboard with Vim in Arch Linux?

Ok. Apparently on native vim in Arch there is no support for X so the +clipboard feature is missing. To fix this, install gvim, which although conflicts with vim, which was my initial problem with it,...
user avatar
  • 766
9 votes

How to display Font Awesome in Vim?

First off, Vim can only display a file in a single font, you can't use multiple fonts at the same time. For gVim, you can use guifont to set this to Font Awesome: set guifont=Font\ Awesome\ 14 ...
user avatar
8 votes
Accepted

Why does vim create a new file when opening an existing file?

That line: n indent on means "open the file called indent that is at the root of the working directory". Basically, you tell Vim to do something silly and… it does just that. It should be: ...
user avatar
  • 33.1k
7 votes
Accepted

Prevent colorscheme from changing background color

If the background is changing, then the colorscheme is changing it. You can either choose a colorscheme that doesn't do that, or try overriding the colorscheme. autocmd ColorScheme * highlight ...
user avatar
  • 10.4k
7 votes
Accepted

How can I build vim with just python 3 support?

Thanks to x33a on the Arch forums, I was able to solve my problem. (https://bbs.archlinux.org/viewtopic.php?pid=1596987#p1596987) I changed the python 3 flag from --enable-python3interp=dyanmic to ...
user avatar
5 votes

How can I build vim with just python 3 support?

The problem was not in Vim's default Python interpreter. The real root of the problem is that the last version of jedi-vim (0.7.0) was released in 2013 and did not work well with Python 3. Since ...
user avatar
4 votes
Accepted

How to turn off completion (enabled by default in Arch)?

I unknowingly had installed on my system the set of packages "vim-plugins". Among these was "vim-jedi" which seems to be the one causing behavior I didn't want. I used the package manager to remove ...
user avatar
  • 171
3 votes

How to display Font Awesome in Vim?

Console Vim is using the font from the console terminal. You can use Inconsolata Nerd Font, which includes FontAwesome glyphs. For example, in urxvt including the following: URxvt.font: xft:SF Mono:...
user avatar
3 votes
Accepted

Vim not encoding with UTF-8

I feel like an idiot. The test file doesn't have any non-ASCII characters in it, so there is nothing for file to look for that would tell it the encoding Vim is using. So I repeated the test with ä in ...
user avatar
  • 161
2 votes
Accepted

Error when installing Vim

As suggested by filbranden in the comments, I workarounded the issue by installing Vim from Arch package repository. Not that I had not tried, but the package vim, as you can read here, does not come ...
user avatar
  • 1,670
2 votes

CTRL-V_CTRL-[key], instead of ^[key] gives ^[[27;5;[ASCII code of key]~ in xterm on Arch

As of patch 8.1.2350, Ctrl-V will emit again the translated key, even if modifyOtherKeys has been set. To get the raw escape sequence, you can instead use now Ctrl-Shift-V
user avatar
1 vote
Accepted

How to change foreground color of character underneath cursor?

This is only supported in GUI. For terminal, there is no common way to set it up. If you really need setting cursor colors, you have to figure the right control sequence yourself and tell Vim about ...
user avatar
  • 16.9k
1 vote
Accepted

Vim catching Win-key keyboard shortcuts on XTerm and i3

Add this to your vimrc: set t_fd= set t_fe= Some terminals including xterm support the focus event tracking feature. If this feature is enabled by the 't_fe' sequence, special key sequences are sent ...
user avatar
  • 23
1 vote
Accepted

CTRL-V_CTRL-[key], instead of ^[key] gives ^[[27;5;[ASCII code of key]~ in xterm on Arch

set t_TE= t_TI= This in vimrc disables modifyOtherKeys (:h modifyOtherKeys), which was causing the problems
user avatar
1 vote

Maps literally read < and > instead of the actual character

As mentioned in the comments, you need to make sure cpoptions does not contain the k and < flags before defining your mappings (this explains why netrw broke too). The likely culprit is that vim ...
user avatar
  • 21.4k
1 vote

How can I delete or ignore a test when compiling vim?

I worked around this problem by using the compile switch: --disable-netbeans However, obviously it is just a workaround and the test failure will be a problem for anyone that wants to use netbeans ...
user avatar
  • 1,891
1 vote

Cannot set (let) mapleader and use <leader> in global vimrc

One thing I've just seen is that if cpo contains <, then special characters like <leader> won't be handled right: *cpo-<* < Disable the ...
user avatar
  • 21.4k
1 vote
Accepted

How to use vundle for vim installed from AUR

Well, so after some investigation I finally located a vundle file. It start from a lower-cased letter and that's why I did not find it at the first place. It's located in /usr/share/vim/vimfiles/...
user avatar
  • 283

Only top scored, non community-wiki answers of a minimum length are eligible