Skip to content

Commit b659af3

Browse files
author
niufeilong
committed
update XxdToggle
1 parent 5cb3e3f commit b659af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vimrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" My vimrc for Mac/Linux/Windows * GUI/Console
22
" Author: Francis Niu (https://github.com/flniu)
3-
" Last Change: 2017-12-17
3+
" Last Change: 2018-07-01
44

55
" Global variables {{{
66
if has('win32') || has('win64')
@@ -222,7 +222,7 @@ nmap <Leader>wr :set wrap!<CR>
222222
nmap <Leader>xxd :call XxdToggle()<CR>
223223
function! XxdToggle() "{{{
224224
let mod = &mod
225-
if getline(1) =~ "^0000000:"
225+
if getline(1) =~ "^000000"
226226
exe '%!xxd -r'
227227
set ft=
228228
doautocmd filetypedetect BufReadPost

0 commit comments

Comments
 (0)