With the following in your vimrc, you can press gy to toggle between the words shown in the script. function s:ToggleYesNo() let w=expand("") if w=="yes" | let w="no" elseif w=="no" | let w="yes" elseif w=="on" | let w="off" elseif w=="off" | let w="on" elseif w=="manual" | let w="auto" elseif w=="auto" | let w="manual" else | let w="" endif if w!="" exec "normal! \"_ciw\=w\\b" endif endfunc nnoremap gy :call ToggleYesNo() This could be supplemented with: else let n=strpart(w,0,2) if n=="no" let w=strpart(w,2) else let w="no".w endif endif
Graph IRI | Count |
---|---|
http://dbkwik.webdatacommons.org | 14 |