简体   繁体   中英

Vim's advance word broken in python, how do I fix this?

Vim works fine for all other languages, but word detection seems wonky in python. For example, in the following snippet, with the cursor on the 'h' in shutil, I would expect prssing the w key to advance me to the period, instead I get moved to the "'" in front of export.

shutil.copytree(os.path.join('export', 'app'), os.path.join('export', 'pacakge'))

Any idea what could cause this? How can I detect the cause? How can I fix it?

Look to see what the option "iskeyword" is set to. Chances are the Python syntax file is changing it. Normally it's set to @,48-57,_,192-255 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM