how to add feature to vim?
My vim doesn't have the clipboard feature and so i can't copy to the system's clipboard. how to i add that feature to vim?
asked 2014-03-17 13:18:12 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
My vim doesn't have the clipboard feature and so i can't copy to the system's clipboard. how to i add that feature to vim?
I think you might want to look into vim-x11, I think that one is compiled with x11 clipboard support.
sudo yum install vim-X11
My .vimrc
has this line in it.
set clipboard=unnamedplus " shared system clipboard.
you might also want to try unnamed
instead of unnamedplus
I have to say, that it works with certain shells and not others (eg. works well with bash, doesn't work so well with fish).
You might also want to look into paste mode
" <F2>: enter paste mode (while in insert mode) to paste from outside vim safely
noremap <F2> :set invpaste paste?<cr>
set pastetoggle=<F2>
You should not modify /etc/vimrc
- use the personal settings in ~/.vimrc
instead. If you modified /etc/vimrc
do: yum remove vim-common; yum install vim-common
. yum reinstall vim-common
won't restore the original `/etc/vimrc
due to the fact that %config(noreplace) (see https://ask.fedoraproject.org/en/question/35805/pamdrpmnew-on-first-update/ and http://pkgs.fedoraproject.org/cgit/vim.git/tree/vim.spec ) does not apply to yum reinstall
.
Asked: 2014-03-17 13:18:12 -0500
Seen: 826 times
Last updated: Oct 07 '15
in vi editor infedora 25 version how to change the colour of characters please resolve it
Why does yum info not recognize vim?
How I can swap between buffers in vim when editing a spec rpm file?
How to get autocompletion in Vim (c++)
Downgraded Vim versions in Fedora 24 [closed]
Alternative to install vim with dnf package-manager
do you use shift+insert to paste to the vim ?