{"id":18896189,"url":"https://github.com/tenable/vim-nasl","last_synced_at":"2026-02-28T04:30:15.317Z","repository":{"id":10104237,"uuid":"12167888","full_name":"tenable/vim-nasl","owner":"tenable","description":"Vim extensions for programming in NASL","archived":false,"fork":false,"pushed_at":"2022-05-31T16:37:24.000Z","size":134,"stargazers_count":9,"open_issues_count":2,"forks_count":11,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-12-31T08:13:24.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2013-08-16T20:43:37.000Z","updated_at":"2022-05-31T16:37:27.000Z","dependencies_parsed_at":"2022-07-11T06:17:47.593Z","dependency_job_id":null,"html_url":"https://github.com/tenable/vim-nasl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fvim-nasl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fvim-nasl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fvim-nasl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenable%2Fvim-nasl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenable","download_url":"https://codeload.github.com/tenable/vim-nasl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239870886,"owners_count":19710808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T08:32:50.568Z","updated_at":"2026-02-28T04:30:15.251Z","avatar_url":"https://github.com/tenable.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"vim-nasl\n========\n\nVim extensions for programming in NASL.\n\nInstallation can be done through [Vundle] or your favourite vim plugin manager.\n\nAlternatively, for a bare-bones or custom install, just clone this repo and copy these folders (indent, syntax, syntax_checkers) into ~/.vim, then proceed with the instructions below.\n\nSyntax Highlighting\n-------------------\n\nAdd the following to your `.vimrc`:\n\n```vim\nlet nasl_space_errors = 1\nautocmd BufNewFile,BufRead *.audit set syntax=xml\nautocmd BufNewFile,BufRead *.nasl set filetype=nasl\nautocmd BufNewFile,BufRead *.inc set filetype=nasl\nautocmd BufNewFile,BufRead *.static set filetype=nasl\nautocmd BufNewFile,BufRead *.inc set indentexpr=\n```\n\nTo set the recommended formatting settings for NASL files, add this too:\n\n```vim\nautocmd FileType nasl setlocal shiftwidth=2 tabstop=2 expandtab softtabstop=2 colorcolumn=120\n```\n\n[Syntastic]\n-----------\n\nCurrently, Syntastic support is provided by `nasl -XLW` (from the nessus package) or `nasl-parse parse` (from the nasl gem). Ensure that one of these is in your path to enable the syntax checker.\n\nIf you want to use both syntax checkers, you might want to add something like this to your `.vimrc`:\n\n```vim\nlet g:syntastic_nasl_checkers = ['nasl_parse', 'nasl']\n```\n\nThis will first run your file through `nasl-parse` and then, if no errors were found, run it through `nasl`.\n\n[Tagbar]\n--------\n\nInstructions here: https://github.com/majutsushi/tagbar/wiki#nasl.\n\nTagbar integration is very crude so far. The simple, regex method has many limitations, so a true parser method would be a huge improvement.\n\n[Syntastic]:https://github.com/scrooloose/syntastic\n[Tagbar]:https://github.com/majutsushi/tagbar\n[Vundle]:https://github.com/gmarik/vundle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fvim-nasl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftenable%2Fvim-nasl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftenable%2Fvim-nasl/lists"}