https://github.com/xvezda/vim-nobin
:mag_right: Plugin to load original source code instead of executable binary
https://github.com/xvezda/vim-nobin
neovim utility vim vim-plugin vim-plugins
Last synced: about 2 months ago
JSON representation
:mag_right: Plugin to load original source code instead of executable binary
- Host: GitHub
- URL: https://github.com/xvezda/vim-nobin
- Owner: Xvezda
- License: mit
- Created: 2020-01-04T13:25:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T13:08:22.000Z (about 4 years ago)
- Last Synced: 2025-02-26T15:40:16.303Z (2 months ago)
- Topics: neovim, utility, vim, vim-plugin, vim-plugins
- Language: Vim script
- Homepage: https://www.vim.org/scripts/script.php?script_id=5889
- Size: 28.3 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nobin.vim
[](https://github.com/Xvezda/vishop)
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`
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. :)
## Installation
Using [vim-plug](https://github.com/junegunn/vim-plug):
`Plug 'Xvezda/vim-nobin'`
or
`make install`
## Global options
| 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 |
## Homepagehttps://github.com/Xvezda/vim-nobin
## Copyright
Copyright (C) 2020 Xvezda
MIT License