i have a few words and need to copy word length in to clipboard.
Tried :!wc or g and Gv but don't work
If your Vim has:
:help wordcount():echo has('clipboard') echoes 1),you could create a custom mapping:
xnoremap <key> <Cmd>let @+ = wordcount().visual_words<CR>
that you would use like this:
v{motion}<key>
where you:
<key>.See :help <Cmd> and :help wordcount().
Finded solution. Copy word to clipboard. And map copy length to clipboard +
nmap <C-t> :let @+ = len(@+)<CR>