> I map F5 to search dictionary with
>
> nmap <F5> :!dict <cword> <CR>
>
> The output is quite long and also it may contain some info that I
> would like to copy. Is it possible to redirect the output to a new
> scratch buffer?
You could do something like the following:
:nmap <F5> :let dictScratch=system('dict ' .
expand('<cword>'))<CR>:new<CR>:0put =dictScratch<CR>:set
buftype=nofile<CR>
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment