เป็นไปได้หรือไม่ที่กลุ่มจะจัดการกับขีดล่างเช่นช่องว่างหรือไฮเปอร์ดังนั้นเมื่อฉันใช้ลำดับdwมันจะไม่ลบทั้งประโยคsome_long_text_with_underscoresเมื่อเคอร์เซอร์อยู่ที่จุดเริ่มต้น?
เป็นไปได้หรือไม่ที่กลุ่มจะจัดการกับขีดล่างเช่นช่องว่างหรือไฮเปอร์ดังนั้นเมื่อฉันใช้ลำดับ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-=_
*/ #หายไป