Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检索文件中字符的字符位置。我怎样才能做到这一点,使用 Vi?
搜索您想要的角色:
/<char_you_want>
然后按Ctrl-g。45,28你应该在左下角看到类似的东西。第二个数字是字符的位置。第一个数字是行号。
Ctrl-g
45,28