use setlocal instead of set for completopt