On 06/12/12 16:04, richard emberson wrote:
> I get:
>
> E354: Invalid register name: '+'
>
> when I use it.
>
>> :let @+ = getline('.')[:4]
That sounds suspiciously like you're using a non-gui enabled build
of Vim which would point to why your "normal" version isn't working
either. If there's no register named "+", it won't matter whether
you do it in ex mode or in normal mode (or normal-mode from an ex
command), it will fail. Check your output of :version to see
whether you have +clipboard and/or +xterm_clipboard as the build
option. You may be running a "vim-tiny" or "vim-minimal" build on
your box. Usually you'd want to run a "vim-full" or
"vim-gui"/"vim-gtk" or some such build.
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php