카테고리 보관물: vi

vi

밑줄을 공간처럼 다루는 방법? 밑줄을 처리 할

vim이 공백이나 하이픈과 같은 밑줄을 처리 할 수 ​​있으므로 시퀀스를 사용할 때 커서가 시작 부분에있을 때 dw전체 문장을 삭제하지 some_long_text_with_underscores않습니까?



답변

dw단어를 삭제하고 단어를 구성하는 것은 iskeyword설정에 의해 정의됩니다 . 보낸 사람 :h word:

                                                        word
A word consists of a sequence of letters, digits and underscores, or a
sequence of other non-blank characters, separated with white space (spaces,
tabs, <EOL>).  This can be changed with the 'iskeyword' option.  An empty line
is also considered to be a word.

제거하려면 _에서 iskeyword수행 :

set iskeyword-=_

답변