| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Vim / Neovim plugin for PureBasic and SpiderBasic — syntax highlighting, smart indentation, and syntax-based folding.
Keyword database generated directly from:
| Feature | PureBasic | SpiderBasic |
|---|---|---|
| Syntax highlighting | ✅ | ✅ |
| Built-in functions | ✅ 1,808 | ✅ 777 |
| #PB_* constants | ✅ 1,655 | ✅ 674 |
| Indentation | ✅ | ✅ |
| Folding (syntax) | ✅ | ✅ |
| matchit % jumps | ✅ | ✅ |
| :make integration | ✅ | ✅ |
| Inline JS (! lines) | — | ✅ |
| EnableJS/DisableJS | — | ✅ |
cp -r syntax indent ftdetect ftplugin autoload doc \
~/.vim/
# Neovim: use ~/.config/nvim instead of ~/.vimThen rebuild the help tags:
:helptags ~/.vim/docPlug 'DNSGeek/vim-purebasic'{ 'DNSGeek/vim-purebasic' }use 'DNSGeek/vim-purebasic'| Extension | Language |
|---|---|
| .pb .pbi .pbf .pbp | PureBasic |
| .sb .sbi .sbf .sbp | SpiderBasic |
Set the compiler location via environment variable before starting Vim:
# PureBasic
export PUREBASIC_HOME=/Applications/PureBasic # macOS
export PUREBASIC_HOME=/usr/local/purebasic # Linux
# Windows: set PUREBASIC_HOME=C:\Program Files\PureBasic
# SpiderBasic
export SPIDERBASIC_HOME=/Applications/SpiderBasicThen :make compiles the current file and populates the quickfix list with any errors.
Or override makeprg directly:
autocmd FileType purebasic setlocal makeprg=/path/to/pbcompiler\ \"%\"
autocmd FileType spiderbasic setlocal makeprg=/path/to/sbcompiler\ \"%\"" 4-space indent instead of 2
autocmd FileType purebasic,spiderbasic setlocal shiftwidth=4 tabstop=4
" Start with all folds open
autocmd FileType purebasic,spiderbasic setlocal foldlevelstart=99
" Disable folding entirely
autocmd FileType purebasic,spiderbasic setlocal foldmethod=manualFolding is syntax-based and enabled automatically. Every major block type folds:
Procedure · If · For · ForEach · While · Repeat · Select · Structure · Macro · Module · DeclareModule · With · CompilerIf · EnableJS (SpiderBasic)
| Key | Action |
|---|---|
| za | Toggle fold under cursor |
| zR | Open all folds |
| zM | Close all folds |
| zj / zk | Jump to next/previous fold |
GPL v2
| Back | FazBrowse Home | New Git URL |