A small script allowing you to get the norminette output in the same format as gcc output, so that you can use it to jump from issue to issue quickly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pohl 099e9762bb Update 'README.md' 11 months ago
.gitignore Created .gitignore 11 months ago
LICENSE Initial commit 11 months ago
README.md Update 'README.md' 11 months ago
norvimette Added the norvimette file 11 months ago



Save time looking for norm errors

norvimette is a small script allowing you to get 42's norminette (v3) output in a format usable by vim's makeprg. This can be used to jump from error to error very fast and easily.


Clone the repo wherever you like (or just the norvimette file). Optionnaly, add it to your $PATH so that you can use it system-wide, but it is not necessary.

Tip: a custom_scripts folder

I created a custom_scripts folder in the ~/.config/ folder and added it to my $PATH variable (export PATH="$PATH:$HOME/.config/custom_scripts/"), this way I can download/create scripts and easily use them system-wide.

Add it to your vimrc

To use the power of vim's makeprg, you have to call the function :cexpr {expr}.

Using this function along with norvimette, we get:

:cexpr system('norvimette ' . shellescape(expand('%')))
:cexpr system('norvimette .')

The first line is to use norvimette for the current file, the second one for the folder you are in.

You can call these functions using remaps:

nnoremap <Leader>n :write<CR>:cexpr system('norvimette ' . shellescape(expand('%')))<CR>
nnoremap <Leader><Leader>n :write<CR>:cexpr system('norvimette .')<CR>

If you didn't add norvimette to your $PATH, you can write the absolute path instead of just norvimette.