
Using an External Editor 
The external editor is set on the Journal tab of the Utilities and Settings Menu:
On a Mac with Vim.app installed, these settings work for the editor command:
open -a /Applications/Vim.app ~/mcj/
|
To edit an entry with an external editor, push ctrl and click on the entry from the journal entry page:
A dialog box will pop up letting you know to click OK when you are done editing:
Your specified external editor will start:
The MCJ creates text files with DOS formatted text; however, the MCJ will retain the formatting of the editor. To replace the ^M characters use this command in vi:
Use ctrl-v ctrl-m to create ^M. Change the file format to unix, if you desire:
The curly red underlines are misspelled words. One cool thing about
VIM is that it will do syntax highlighting and spelling. I like to use this .vimrc file:
srv-5:~/edit usr4$ cat ~/.vimrc
syntax enable
ab szh <br /><br /><table BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><tr ><td><pre>
ab ezh </pre></td></tr></table><br />
set nocompatible
set visualbell
if has("gui_running")
syntax off
colorscheme elflord
setlocal spell spelllang=en_us
set guifont=Monaco:h14
set lines=25
set columns=80
set background=dark
set selectmode=mouse,key,cmd
else
colorscheme elflord " use this color scheme
set background=dark " adapt colors for background
endifcolorscheme elflord
map <F10> <Esc>:setlocal spell spelllang=en_us<CR>
map <F11> <Esc>:setlocal nospell<CR>:syntax enable<CR>
|
Here is what the syntax highlighting looks like: