Hot answers tagged

6 votes

Install Vim with +clipboard support but without Gvim?

Building Vim from the source with the right flags is the general solution. git clone https://github.com/vim/vim.git cd vim/src ./configure --with-x=yes --disable-gui The last command will probably ...
Quasímodo's user avatar
  • 2,416
4 votes

Install Vim with +clipboard support but without Gvim?

If you don't mind having gvim installed you can run gvim in commandline mode with gvim -v. Then you should have a version of commandline vim able to access the keyboard. Also if gvim is invoked as vim ...
cachehash's user avatar
4 votes

How to safely switch from vim-athena to vim-gtk?

You don't have to uninstall any of the existing packages. The vim-{athena,gtk,gtk3,nox} etc. packages just provide the Vim binary built with different feature sets and linked against different GUI ...
jamessan's user avatar
  • 10.9k
3 votes

Colorscheme's background not correct in terminal

Seems like you found your answer. I had this same problem and nothing above worked. What worked for me was using altercation's terminalrc, as opposed to sgerrand's. My relevant vimrc is simply: ...
ohsonice's user avatar
3 votes

Raise window holding swap file

Long lost and almost forgotten. Meant to re-factor the code etc. but post is as is. This code is used on a 32-bit system. Not sure how it would behave on 64-bit (or other). Have a hack in C-code ...
Runium's user avatar
  • 1,227
3 votes

Scroll the screen, not the cursor, when using scrollwheel

I know this is a few years late, but you can use nmap <Down> <C-e> nmap <Up> <C-y> This worked for me.
user32140's user avatar
2 votes

How can I make gvim keyboard language-agnostic in command mode?

One option is to use the plugins https://github.com/lyokha/vim-xkbswitch or https://github.com/rlue/vim-barbaric, which switch the input method in vim's input mode using xkbswitch.
Mass's user avatar
  • 13.9k
1 vote

How do the * and + registrers behave in the virtual console?

Even though it doesn't show in the output of :display, when you use the plus or star registers in TTS (i.e., a mode without clipboard feature), it stores the content in the 0 register. The code is in ...
3N4N's user avatar
  • 5,544
1 vote
Accepted

Disable Shift+Insert from pasting from Primary

I found a solution which relies on Vim's +clientserver capability. It just took a small addition to a script I already used. The final result is this vimserver.sh: #!/bin/sh if [ -z "$(vim --...
Quasímodo's user avatar
  • 2,416

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