Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

THOR Log — Vim / Neovim

Syntax highlighting for THOR APT Scanner text log files.

Preview

Dark Theme Light Theme
Dark Theme Preview Light Theme Preview

Installation

Using a Plugin Manager (Recommended)

vim-plug

Add this line to your ~/.vimrc (between call plug#begin() and call plug#end()):

Plug 'Nextron-Labs/thor-syntax-highlighting'

Then restart Vim and run :PlugInstall.

To update after changes:

:PlugUpdate

lazy.nvim (Neovim)

Add this to your plugin list in ~/.config/nvim/lua/plugins.lua (or equivalent):

{ "Nextron-Labs/thor-syntax-highlighting" }

Then restart Neovim or run :Lazy sync.

Vundle

Add this line to your ~/.vimrc (between call vundle#begin() and call vundle#end()):

Plugin 'Nextron-Labs/thor-syntax-highlighting'

Then restart Vim and run :PluginInstall.

Manual Installation

Copy the files to your Vim runtime directory:

# Vim
mkdir -p ~/.vim/syntax ~/.vim/ftdetect
cp vim/syntax/thorlog.vim ~/.vim/syntax/
cp vim/ftdetect/thorlog.vim ~/.vim/ftdetect/

# Neovim
mkdir -p ~/.config/nvim/syntax ~/.config/nvim/ftdetect
cp vim/syntax/thorlog.vim ~/.config/nvim/syntax/
cp vim/ftdetect/thorlog.vim ~/.config/nvim/ftdetect/

File Association

The filetype detection automatically activates for:

  • Files with extensions .thor.log or .thor.txt
  • Files matching *_thor_* or *_THOR_* patterns (e.g. ion.local_thor_2026-01-21_1914.txt)
  • Any .log or .txt file whose first 20 lines contain THOR: or THOR_UTIL: followed by a log level

To force the syntax on any file:

:set filetype=thorlog

What Gets Highlighted

Element Highlight Group Default Color
Timestamps thorTimestampNumber Magenta/Yellow
Hostnames thorHostIdentifier Cyan
Hostname/IP thorHost + thorHostIPConstant Cyan + Red/Magenta
Source (THOR:) thorSourceKeyword Yellow
Alert thorLevelAlert 🔴 Red (bold)
Error thorLevelError 🟣 Purple
Warning thorLevelWarning 🟡 Yellow
Notice thorLevelNotice 🔵 Blue
Info thorLevelInfo 🟢 Green
Field keys thorFieldKeyType Green
Hashes thorHash*Special Magenta
IP addresses thorIPAddressConstant Red/Magenta
Scan IDs thorScanIDConstant Red/Magenta
Numbers thorNumberNumber Magenta/Yellow

Colors adapt to your colorscheme. The syntax uses standard Vim highlight groups with explicit fallback colors for log levels.