trong vi, tìm kiếm và thay thế, cách bạn thoát khỏi dấu '/' (dấu gạch chéo chuyển tiếp) để nó đúng. Nói trong một con đường./in vi Tìm kiếm và thay thế?
như:/Users/tom/tài liệu/file PDF/
:%s//Users/tom/documents/pdfs//<new text>/g --FAILS (obviously)
:%s/\/Users/tom/documents/pdfs\//<new text>/g -- FAILS with a trailing error
:%s/'/Users/tom/documents/pdfs/'/<new text>/g -- FAILS with a trailing error
tôi đang thiếu gì?
Bản sao có thể có của [Làm cách nào để thoát khỏi dấu gạch chéo ngược và dấu gạch chéo chuyển tiếp trong tìm kiếm/tìm kiếm VIM?] (Http://stackoverflow.com/questions/2465156/how-does-one-escape-backslashes-and-forward-slashes -in-vim-find-search) – Pureferret