Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using this addon manager for vim. After installation, I can install scripts like taglist.vim, but I can't install the script octave.vim: vim-addon-manager complained that No repository location info known for plugin octave.

According to this page, I ran :call vam#install#LoadKnownRepos(), but vim complained that there are not enough arguments for the function.

Can anyone give hints for me? Thank you.

share|improve this question
    
The problem has been solved. Because there are several vim scripts for octave so one have to press 'tab' after typing 'octave' to view the candidates and decide which one is preferable. –  ziyuang Feb 26 '12 at 7:19
add comment

1 Answer

up vote 1 down vote accepted

Nano can extended to highlight octave code.

~/.nanorc
# Octave syntax colors
syntax "octave" "\.m$" "\.octaverc$"

# keywords
color brightyellow "(case|catch|do|else(if)?|for|function|if|otherwise|switch|try|until|unwind_protect(_cleanup)?|vararg(in|out)|while)"
color brightyellow "end(_try_catch|_unwind_protect|for|function|if|switch|while)?"
color magenta "(break|continue|return)"

# storage-type
color green "(global|persistent|static)"
# data-type
color green "(cell(str)?|char|double|(u)?int(8|16|32|64)|logical|single|struct)"

# embraced
color brightred start="\(" end="\)"  # this line needs to be fixed to work properly in all cases
color blue start="\[|\{" end="\]|\}"

# strings
color yellow ""(\\.|[^\"])*"|'(\\.|[^\"])*'"

# comments
color brightblue "#.*|%.*"

read the Octave Wiki.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.