Is there anyway that vim doesn't count special characters as words?

I use VIM to do my work using macros.

There is a lot of text in the columns, and I want the macro to move between the columns effortlessly by pressing w to "go to the beginning of the next word"

For example:

DataSourceName            string                       ""   
DetailFields              []string                          
DynamicControlBorder      boolean                 empty  may be void 
EscapeProcessing          boolean                    True   
FetchDirection            long                       1000   
FetchSize                 long                         12   
Filter                    string                       ""   
GroupBy                   string                       ""   
HavingClause              string                       ""

However, when I do this, VIM does this only for letters; whenever he encounters "[" or "he interprets it as another word, ruined the macro, because now it appears that there is an additional column.

Is there any parameter that I can change to make vim ignore special characters and treat them exactly like letters, skipping them?

[Update]

I found an even better answer to this question on superuser.com:

https://superuser.com/questions/12679/is-there-anyway-to-have-vim-not-count-special-characters-as-words/12828#12828

+5
2

, . iskeyword. :

:set iskeyword+=[
:set iskeyword+=]
+7

W (Shift + W) , , , Vim "" ( unshifted w).

+7

All Articles