2

How do I use a visual selection in an ex command in vim? For example, suppose I have selected the text foo, and I want to use this to run :! open http://hackage.haskell.org/package/foo.

4

1 回答 1

1

您可以使用vmapyank 文本并从寄存器 0 中使用它:

 vmap <F2> y:!open http://hackage.haskell.org/package/<C-R>0<CR>
于 2013-06-19T22:19:34.533 回答