View Single Post
Old 09-01-2012, 11:06 AM   #29
Lydovig
Zealot
Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.Lydovig shapes the world with his or her thoughts.
 
Posts: 106
Karma: 105764
Join Date: Aug 2012
Device: kindle touch
Quote:
Originally Posted by twobob View Post
assuming this is where you put it yes.

Via SSH:

cd /mnt/us
./vim

If something is going to go wrong (i.e. missing config files, bad paths etc) it would happen then. At the point you attempt to run the file.

I suppose you could inject that call into something like kite or launchpad and wrap it in a tidy configured shell. HTH
Vim has started in the terminal, but works incorrectly. Perhaps made ​​an error in the files sh.

start_vim_shell.sh

#!/bin/sh

# modified from xterm
XTERM_EXT=/mnt/us/extensions/xterm
vim_EXT=/mnt/us/extensions/vim
export MB_KBD_CONFIG=${XTERM_EXT}/layouts/keyboard.xml
export XFILESEARCHPATH=${XTERM_EXT}/layouts/Xresources
export PS1="[\W]\\$ "
export PATH=$PATH:/mnt/us/vim

/usr/bin/xset fp+ ${XTERM_EXT}/fonts
/usr/bin/xset fp rehash

${XTERM_EXT}/bin/xterm -name kterm -e ${vim_EXT}/bin/vim_shell.sh &
${XTERM_EXT}/bin/matchbox-keyboard &

vim_shell.sh

#!/bin/sh

sleep 1

size=$(stty size)
set -- $size
h=$(expr $1 - 12)
shift
w=$(expr $@ - 4)

vim -d

-----------------------------

Everything correctly?
Lydovig is offline   Reply With Quote