In order to enable vim to access clipboard when yanking, I added the following script into ~/.vimrc
.
:set clipboard = unnamedplus
After this, when I tried to use vim, the following error message was always shown:
E518: unknown option: unnamedplus
But unnamedplus
option is common and can be seen in other stackoverflow's questions such as this.
Why my .vimrc
can't find options of clipboard?
My all .vimrc
is below:
1 :set autoindent
2 :set number
3 :imap <C-j> <esc>
4 :noremap! <C-j> <esc>
5 :set clipboard = unnamedplus
6 :colorscheme elflord
The OS is Ubuntu 14.04 LTS. The version of vim is VIM - Vi IMproved 7.4
and Huge version with GTK2-GNOME GUI.