Archive

Nessus Audit File Editing - VIM Syntax Plugin

You can down load the NASL .audit file syntax plugin for VIM here:

http://www.vim.org/scripts/

Small syntax file for the Nessus Attack Scripting Language. It uses the built-in functions and constants found in nasl_init.c and the keywords found in nasl_grammar.tab.c. Arguments like english:, deutsch:, data:,etc are matched using regexes instead of fixed names.
 
install details

add this to your .vimrc: (Ubuntu vimrc is located /etc/vim/vimrc for mac /usr/share/vim/.vimrc)

syntax on 
au BufEnter *.nasl setfiletype nasl 

and place nasl.vim inside your ~/.vim/syntax/ directory (or any 
other syntax directory below your 'runtimepath') 

 

VIM is Vi IMproved. You can download VIM here:

 

MS-Windows: self-installing executable
Unix: Mercurial
Mac: MacVim

Details and options for: