FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hex.vim/autoload/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
/
autoload
/
hex.vim
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (27 loc) · 476 Bytes
Breadcrumbs
hex.vim
/
autoload
/
hex.vim
Copy path
File metadata and controls
31 lines (27 loc) · 476 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
24
25
26
27
28
29
30
31
"
Vim global plugin for editing files as hex
"
"
Last Change:
2020 Mar 05
"
Maintainer:
depsterr <depsterr@protonmail.com>
"
License:
WTFPL 2.0
function
!
hex#ToggleHex
()
if
b:
is_hex
let
b:
is_hex
=
0
:
%
!
xxd
-
r
else
let
b:
is_hex
=
1
:
%
!
xxd
endif
endfunction
function
!
hex#SafeWrite
()
if
b:
is_hex
let
b:
is_hex
=
0
let
b:
was_hex
=
1
:
%
!
xxd
-
r
endif
endfunction
function
!
hex#PostWrite
()
if
b:
was_hex
:
%
!
xxd
let
b:
was_hex
=
0
endif
endfunction
Back
|
FazBrowse Home
|
New Git URL