Reputation: 10050
I love the dragvisuals
vim plugin introduced in Damien Conway's OSCON 2013 talk. There is a github clone for the plugin here: https://github.com/atweiden/vim-dragvisuals. The problem is I can't get it to work. Here are the steps that I have taken:
1.Drop the script in my $VIMRUNTIME/plugin
path and added the relevant settings to my .vimrc
ru plugin/dragvisuals.vim
vmap <expr> <LEFT> DVB_Drag('left')
vmap <expr> <RIGHT> DVB_Drag('right')
vmap <expr> <DOWN> DVB_Drag('down')
vmap <expr> <UP> DVB_Drag('up')
vmap <expr> D DVB_Duplicate()
let g:dvb_trimws = 1
2.The script gets loaded successfully because it is output by :scriptnames
/vim/runtime/path/dragvisuals.vim
But all of the functions (DVB_Drag, DVB_Duplicate) are not loaded. Am I missing anything?
EDIT:
At first I tried putting the script in ~/.vim/plugin
as well as as ~/.vim/bundle/vim-dragsvisual/plugin
because I use vundle
to manage my plugins. But it didn't work; that's why I put the script in $VIMRUNTIME
as the last resort.
Upvotes: 0
Views: 294
Reputation: 196566
Start again by placing the plugin in ~/.vim/plugin
and removing the ru plugin/dragvisuals.vim
from your ~/.vimrc
.
Installed correctly, that plugin seems to work perfectly and does exactly what it's supposed to do, here.
Never touch $VIMRUNTIME
.
Upvotes: 2