sponsor Vim development Vim logo Vim Book Ad

nasl.vim : syntax highlighting for Nessus nasl scripts

 script karma  Rating 10/8, Downloaded by 1142  Comments, bugs, improvements  Vim wiki

created by
Markus DeShon
 
script type
syntax
 
description
Performs syntax highlighting for Nessus Attack Scripting
Language (NASL) scripts.

This is still in rapid development, and by no means finished.  But, it's already useful, so I thought I would share it.
 
install details
Put the script in the same place where your other syntax scripts are located (on my Debian Linux system that would be /usr/share/vim/vim61/syntax).   If you don't have access to that directory, then you can put it somewhere in your ~/.vim directory, not sure where...

To have the nasl files be automatically recognized by the .nasl filename, you will need to edit the filetype.vim file on your system, adding an entry like this:

" Nasl script file
au BufNewFile,BufRead *.nasl                    setf nasl

That way, the nasl.vim file will load automatically upon running :syntax enable, as long as you're editing a file which ends in .nasl (I'll work on having .inc files recognized as well).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
nasl.vim 0.3 2003-12-12 6.0 Markus DeShon Have now added all the functions from all the .inc files.
nasl.vim 0.2 2003-12-05 6.0 Markus DeShon This is a much better version, includes all builtin functions.  I will add the functions from all the standard .inc files next.
nasl.vim 0.1 2003-12-04 6.0 Markus DeShon Initial upload
ip used for rating: 52.15.59.163

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github