DachuanZhao
DachuanZhao

Reputation: 1349

How to search ^A in vim?

I have a text in vim like :

28473^A1619497837375
28473^A1619497837375
28474^A1619497837375
28474^A1619497837375
28474^A1619497837375
28474^A1619497837375

shortcut

How do I search the "^A" ?

Upvotes: 4

Views: 79

Answers (2)

romainl
romainl

Reputation: 196886

You can search control characters by their decimal value:

/\%x01

See :help \%x and this table.

Upvotes: 3

user1350184
user1350184

Reputation:

Due to the syntax highlighting in the screenshot it looks like ^A is a control character.

If that's the case you can search for it by pressing CtrlvCtrlA after /.

Upvotes: 3

Related Questions