Next: Subversion, Previous: Compiling from UNIX source, Up: Installation
Users of emacs can edit Asymptote code with the mode
asy-mode, which is installed and enabled by default in the Debian
package.
Particularly useful key bindings in this mode are C-c C-c, which compiles
and displays the current buffer, and the key binding C-c ?, which
shows the available function prototypes for the command at the cursor.
For full functionality you should also install the Apache Software Foundation
package two-mode-mode:
http://www.dedasys.com/freesoftware/files/two-mode-mode.el
Fans of vim can customize vim for Asymptote with
cp @value{Datadir}/doc/asymptote/examples/asy.vim.gz ~/.vim/syntax/asy.vim.gz
gunzip ~/.vim/syntax/asy.vim.gz
and add the following to their ~/.vimrc file:
augroup filetypedetect au BufNewFile,BufRead *.asy setf asy augroup END filetype plugin on
If any of these directories or files don't exist, just create them.
To set vim up to run the current asymptote script using :make
just add to ~/.vim/ftplugin/asy.vim:
setlocal makeprg=asy\ % setlocal errorformat=%f:\ %l.%c:\ %m