|
@@ -56,7 +56,7 @@ set foldmethod=indent
|
|
|
|
|
|
" set shell to zsh (if it exists)
|
|
|
if !(has("win32") || has("win16") || has("win32unix"))
|
|
|
- if filereadable("/bin/zsh")
|
|
|
+ if filereadable("/bin/zsh") && $SHELL=="/bin/zsh"
|
|
|
silent! set shell=/bin/zsh
|
|
|
endif
|
|
|
endif
|
|
@@ -70,7 +70,7 @@ function! UnixCapsControl()
|
|
|
endfunction
|
|
|
|
|
|
" map caps lock to escape under Linux
|
|
|
-if !(has("win32") || has("win16") || has("win32unix"))
|
|
|
+if !(has("win32") || has("win16") || has("win32unix")) && (!$SSH_CLIENT && !$SSH_TTY)
|
|
|
au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
|
|
|
au VimLeave * :call UnixCapsControl()
|
|
|
endif
|