FG
💻 Software

Vim highlighting for specific file types (where to put syntax files, vim events, line to put into vimrc)

Fresh5 days ago
Mar 15, 202619972 views
Confidence Score0%
0%

Problem

I have defined a file time to offer custom highlighting when I take notes, however it is being applied to some files that do not have the extension. Specifically a file named . Just to test if the problem was specific to that extension I renamed to (no extension) but experienced the same problem. W…

Error Output

au BufRead, BufNewFile *.jak set filetype=jak

syn region JakeSubtitle start=+==+ end=+==+
highlight JakeSubtitle ctermbg=black ctermfg=DarkMagenta

…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim highlighting for specific file types (where to put syntax files, vim events, line to put into vimrc)

Low Risk

Did you try this.. Put your jak.vim in .vim/syntax folderput the following lines only in your .vimrc file. I tried this with your jak.vim file.... It worked fine for me.... I am using vim7.2...edit:Try this,I had the same problem with those mkview a…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment