FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hex.vim/plugin/hex.vim at master · rachelambda/hex.vim · GitHub
rachelambda
/
hex.vim
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hex.vim
/
plugin
/
hex.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (18 loc) · 603 Bytes
Breadcrumbs
hex.vim
/
plugin
/
hex.vim
Copy path
File metadata and controls
23 lines (18 loc) · 603 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"
Vim global plugin for editing files as hex
"
"
Last Change:
2020 Feb 19
"
Maintainer:
depsterr <depsterr@protonmail.com>
"
License:
WTFPL 2.0
if
exists
(
"
g:loaded_hexvim
"
)
finish
endif
let
g:
loaded_hexvim
=
1
"
Alias the hextoggle function to a hextoggle command
command
HexToggle
call
hex#ToggleHex
()
"
Defualt each buffer to not be hex
au
BufReadPost
,
BufNewFile
*
let
b:
is_hex
=
0
au
BufReadPost
,
BufNewFile
*
let
b:
was_hex
=
0
"
Restore to raw data before writing
au
BufWritepre
*
call
hex#SafeWrite
()
"
Go back to hex editing after writing if needed
au
BufWritepost
*
call
hex#PostWrite
()
Back
|
FazBrowse Home
|
New Git URL