fi
+vim() {
+ command vim "$@"
+ rc=$?
+ cd "`cat \"$HOME/tmp/vim/cwd\"`" && rm "$HOME/tmp/vim/cwd" &&
+ return $rc
+}
+
+
if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then
X() { startx >> .Xserver.log 2>&1; cyr; rm -f .Xauthority; }
fi
call timer_start(500, 'SetLazyRedraw')
endif
+autocmd VimLeave * call writefile([getcwd()], expand('~/tmp/vim/cwd'))
+
" This has to go to the very end of ~/.vimrc to allow reading the .vimrc
set secure " safer working with script files in the current directory