Plugin to load original source code instead of executable binary
MIT License
I made this plugin because of auto-completion on shell environment always lead me to open a binary, not a source code.
gcc test.c -o test
In this case, there are two files in the same directory. test.c
and test
.
vim t<Tab>
Now, if I press tab to edit test.c
again, test
will appears.
I need to press tab again to make test
to test.c
But most of times, I accidently open test
binary instead.
It's way too frustrating. :(
This plugin will automatically finds original source code of executable binary, which you opened by mistake. :)
Using vim-plug:
Plug 'Xvezda/vim-nobin'
or
make install
Flag | Description |
---|---|
g:nobin_always_yes |
Automatically select [y]es on select screen |
g:nobin_well_known_files |
Regular expression list for well known binary patterns |
g:nobin_except_files |
Exception patterns of non-binary files |
https://github.com/Xvezda/vim-nobin
Copyright (C) 2020 Xvezda
MIT License