Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 106: | Line 106: | ||
e.g. |
e.g. |
||
β | + | cat /usr/share/vim/vim61/syntax/sh.vim | grep keyword | grep -v nextgroup | awk '{ $1=""; $2=""; $3=""; print}' | perl -pe 's/\s+/\n/g' | grep -v contained | grep -v '^$' | sort | uniq > /home/user/.vim/dict/sh.dict |
|
the above command will probably need tweaking depending on the syntax file. |
the above command will probably need tweaking depending on the syntax file. |
||
Line 183: | Line 183: | ||
What about this to dump all the syntax files into properly formatted dict files |
What about this to dump all the syntax files into properly formatted dict files |
||
β | for i in /usr/share/vim/syntax/*;do |
+ | for i in /usr/share/vim/syntax/*;do cat $i | grep keyword | grep -v nextgroup | awk '{ $1=""; $2=""; $3=""; print}' | perl -pe 's/\s+/\n/g' | grep -v contained | grep -v '^$' | sort | uniq>~/.vim/dict/`basename $i .vim`.dict;done |
---- |
---- |