octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VIM hack for accessing GNU Octave docs


From: Carnë Draug
Subject: Re: VIM hack for accessing GNU Octave docs
Date: Mon, 2 Apr 2012 08:59:38 +0100

On 2 April 2012 01:30, Júlio Hoffimann <address@hidden> wrote:
> Dear all,
>
> I know many Octave developers are also Emacs fans (Jordi is like the nº 1),
> but sorry VIM rocks. \o/
>
> Following is a fast tip for accessing GNU info for Octave names:
>
> $ sudo apt-get install octave3.2-info
> $ echo 'autocmd FileType matlab setlocal keywordprg=info\ octave\ --vi-keys\
> --index-search' >> ~/.vimrc
>
> Now, when editing a *.m file you just need to type uppercase K in normal
> mode and the word under the cursor will be searched for in the Octave
> documentation index. By pressing ',' you go to the next occurrence. It's
> pretty handy. ;-)

There's a page on the wiki for Emacs and another for Gedit[1]. Maybe
you can create one for VIM[2]. I think the old wiki had a section for
VIM but it was empty so it was not copied over into the new wiki..

Carnë

http://octave.org/wiki/index.php?title=Gedit
http://octave.org/wiki/index.php?title=VIM


reply via email to

[Prev in Thread] Current Thread [Next in Thread]