[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: Re: any way to integrate dict with vim?
From: Benji Fisher <benji () member ! AMS ! org>
Date: 2002-12-31 14:40:46
[Download RAW message or body]
Sandip P Deshmukh wrote:
> On Tue, Dec 31, 2002 at 07:57:29AM +0000, Colin Keith wrote:
>
>>On Tue, Dec 31, 2002 at 12:22:04PM +0530, Sandip P Deshmukh wrote:
>>
>>>is there a way by which i can integrate vim and dict? so i am positioned
>>>at a word and i pass it to dict command?
>>
>>Sure, the <cword> er character (? what's its called?) will be replaced with
>>the word that your cursor is currently over. You'll find that the keystroke
>>K already does this for man pages. Just define something like:
>>
>> nmap T :!dict <cword><CR>
>
>
> oh - this worked perfectly. how do i implement dict <cword> | less?
>
> map T :!dict <cword> | less <CR> gives an error!
Maybe the error message gives a clue to the problem. Try
:map T :!dict <cword> <Bar> less <CR>
:help :map " in general
:help map_bar " in particular
HTH --Benji Fisher
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic