if has("gui_running")
" any code here affects gvim but not console vim
else
" any code here affects console vim but not gvim
endif
One problem I found is that console vim (using cygwin) will complain if I have "for" statement inside anywhere in vimrc, as (taken from sample spell script)
for sug in s:suglist
exe 'amenu 1.5.'.pri.' PopUp.'.s:changeitem.'.'.escape(sug, ' .')
\ . ' :call <SID>SpellReplace(' . pri . ')<CR>'
let pri += 1
endfor
