The following line in your .vimrc
is a conflict. Commenting out that line will probably fix the issue.
set nocompatible " vim, not vi
And for automatic wrap, I suggest you use this one and use more of h
and l
than the left & right arrow keys:
set whichwrap+=<,>,h,l,[,]