Like the places pointed by the arrows, these places look like there are spaces or not. The spaces are not highlighted, and the W
moving position is difficult to control.
%
to replace spaces. 仅有的幸福2017-05-16 16:36:25
Method found on stackoverflow:
Settings:
:set listchars+=space:␣
Display:
:set list
Effect:
Before setting up:
After setting up:
Similarly, you can set the display of other hidden characters:
:set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
Note that vim is only supported after version 7.4-710! The latest version of CentOS 7 is only 7.4-160, Ubuntu 15.10 is only 7.4-712, and some versions of Raspberry Pi are only 7.3. It is currently confirmed that the latest version of Ubuntu 16.04 is 7.4-1689 (what a damn conscience!). Only this platform is available for actual testing, and other distributions cannot be used because the versions are too low.
Reference: http://stackoverflow.com/ques...
Addition: I just noticed that the questioner uses gvim instead of vim. gvim is not clear. Since there is a GUI, why not use other more efficient editing tools.
怪我咯2017-05-16 16:36:25
:/ + Enter ->(Last line mode input:/space, enter to highlight all spaces)