Outils pour utilisateurs

Outils du site


tech:vim-hex

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:vim-hex [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:vim-hex [2025/03/24 19:39] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 {{tag>vim Encodage}} {{tag>vim Encodage}}
  
-Vim hex+Vim hex
  
-Date: 2014/06/28 
  
-[[http://www.kevssite.com/2009/04/21/using-vi-as-a-hex-editor]]+http://www.kevssite.com/2009/04/21/using-vi-as-a-hex-editor
  
  
Ligne 14: Ligne 14:
 So, open a file in vi as usual, hit escape and type: So, open a file in vi as usual, hit escape and type:
  
-<code ->:%!xxd</code> to switch into hex mode+~~~ 
 +:%!xxd 
 +~~~ 
 +to switch into hex mode
 And when your done hit escape again and type: And when your done hit escape again and type:
  
-<code ->:%!xxd -r</code> to exit from hex mode.+~~~ 
 +:%!xxd -r 
 +~~~ 
 +to exit from hex mode.
 Okay, so this isn’t actaully switching to vi’s ‘hex mode’; vi doesn’t Okay, so this isn’t actaully switching to vi’s ‘hex mode’; vi doesn’t
  have one. What the above actually does is to stream vi’s buffer through  have one. What the above actually does is to stream vi’s buffer through
tech/vim-hex.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki