Opps forgot to mention Once you create the editor.sh script, make it executable by
$chmod +x ~/editor.sh Then add the path to this editor.sh in the ItsAllText preferences Good explanation here: http://iheartryan.com/post/its-all-text Best, tony On Friday, February 3, 2017 at 12:36:48 AM UTC-8, tony wrote: > > Hi, > > This is what i do to use vim as the editor for long tiddler bodies or run > a quick s/find/replace/g > > Using vim as one editor helps me keep continuity working between > TiddlyWiki and VimWiki > > On windows cygwin, you can call vim directly with the path to the vim.exe > in the ItsAllText preferences just like you normally do. > > I don't remember the path offhand. > > but if I'm on my Chromebook running Linux via Crouton > > I make a shell script, called say editor.sh > > Where editor.sh is > > #!/bin/bash /usr/bin/xfce4-terminal -e "vim '$1'" > > I then put the path to this editor.sh script in the ItsAllText preferences > in my case it is > > /home/<myusername>/editor.sh > > Basically the script just tells the terminal to open vim and is called by > ItsAllText as set in the preferences. > > Depending on your setup you may need to substitute with the name of your > terminal > > Other configs are found here: > https://github.com/docwhat/itsalltext > https://docwhat.org/its_all_text_v06/#comment-2054 > http://iheartryan.com/post/its-all-text > http://blog.asyd.net/2009/09/using-its-all-text-on-mac-os-x/ > > hth > > Best, > tony > > > On Thursday, February 2, 2017 at 2:11:19 PM UTC-8, kelsang sherab wrote: >> >> on linux >> the whereis command retruns: >> >> >> whereis vim >>> vim: /usr/bin/vim /usr/bin/vim.tiny /usr/bin/vim.basic /etc/vim >>> /usr/share/vim /usr/share/man/man1/vim.1.gz >>> >>> >> the which command returns >> >> /usr/bin/vim >> >> I added the path to the firefox addon its all text >> and when i try working with it here's what firefox returns: >> >> I ran this command: /usr/bin/vim >>> /home/sherab/.mozilla/firefox/mwad0hks.default/itsalltext/tiddlywiki.com_.1w1x371h.txt >>> >>> ...and it exited with a status of 1. >>> >> >> any ideas what to do? >> >> Also any advice on how to use TW with vim? >> >> I know there is a plug in but it says to add it to vim/syntax/ >> and i just cannot find /.vim/syntax. >> cheers >> >> >> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/906cc9c4-a7fe-41cd-b9cb-63ab330ea55c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

