||11 months ago|
|.gitignore||11 months ago|
|LICENSE||11 months ago|
|README.md||11 months ago|
|norvimette||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
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.