From 223973b2b67eab60121ed519be4c9058a03d10d6 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 2 Oct 2025 19:46:16 -0600 Subject: [PATCH 1/2] Remove legacy hack forcing justfile to be handled as Makefiles Both VIM and Neovim ship with native ftdetect rules to detect justfiles and proper syntax highlighting for them. This modline hack is absolete and actually makes these files *less* accessible in modern editors. --- justfile | 1 - 1 file changed, 1 deletion(-) diff --git a/justfile b/justfile index cfd9400d58..2ddd6dbec6 100755 --- a/justfile +++ b/justfile @@ -233,4 +233,3 @@ test-release-workflow: # Local Variables: # mode: makefile # End: -# vim: set ft=make : From c8be3e0d97f7e64b94389af62f0341b93918c365 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 2 Oct 2025 19:46:16 -0600 Subject: [PATCH 2/2] Drop documentatino of obsolete workaround for lack of VIM support Both VIM and Neovim have shipped with native support and for several releases. This obsolete work around just confuses the issue. --- README.md | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/README.md b/README.md index ee98348101..4112147347 100644 --- a/README.md +++ b/README.md @@ -515,28 +515,6 @@ git clone https://github.com/NoahTheDuke/vim-just.git [Nvim Treesitter](https://github.com/nvim-treesitter/nvim-treesitter) plugin for Neovim. -#### Makefile Syntax Highlighting - -Vim's built-in makefile syntax highlighting isn't perfect for `justfile`s, but -it's better than nothing. You can put the following in `~/.vim/filetype.vim`: - -```vimscript -if exists("did_load_filetypes") - finish -endif - -augroup filetypedetect - au BufNewFile,BufRead justfile setf make -augroup END -``` - -Or add the following to an individual `justfile` to enable `make` mode on a -per-file basis: - -```text -# vim: set ft=make : -``` - ### Emacs [just-mode](https://github.com/leon-barrett/just-mode.el) provides syntax