4

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" ?

1
  • The platform is windows10 . The shell is windows terminal which uses wsl2 ubuntu20.04 shell Commented Apr 29, 2021 at 7:43

2 Answers 2

3

You can search control characters by their decimal value:

/\%x01 

See :help \%x and this table.

Sign up to request clarification or add additional context in comments.

Comments

3

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 /.

6 Comments

How to type it on windows ? When I type ctrl v , It pastes things from my clipboard ...
@DachuanZhao :h CTRL-V-alternative
It is a control character, but you don't get it with Ctrl-v and then A. You need Ctrl-v and then Ctrl-a.
CTRL-V-alternative CTRL-Q Since CTRL-V is used to paste, you can't use it to start a blockwise Visual selection. You can use CTRL-Q instead. You can also use CTRL-Q in Insert mode and Command-line mode to get the old meaning of CTRL-V. But CTRL-Q doesn't work for terminals when it's used for control flow. It shows this ......
When I use ctrl q then ctrl a , it shows strange characters all the screen .....
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.