On Wed, 27 Jul 2011, Cameron Simpson wrote:
> (I presume you've set EDITOR in your shell environment
No. I have been set it in muttedit script. After you tell me, I test
it and got no success!
If I set it to : ${EDITOR=vi}, I got this:
(... there are somethings upper here that I don't see on the window)
E319: Sorry, the command is not available in this version: function!
MapToggle(key, opt)
line 216:
E319: Sorry, the command is not available in this version: let cmd =
':set '.a:opt.'! \| set '.a:opt."?\<CR>"
line 217:
E319: Sorry, the command is not available in this version: exec
'nnoremap '.a:key.' '.cmd
line 218:
E319: Sorry, the command is not available in this version: exec
'inoremap '.a:key." \<C-O>".cmd
line 219:
E319: Sorry, the command is not available in this version: endfunction
line 221:
E319: Sorry, the command is not available in this version: command!
-nargs=+ MapToggle call MapToggle(<f-args>)
line 223:
E492: Not an editor command: MapToggle <F4> foldenable
line 224:
E492: Not an editor command: MapToggle <F5> number
line 225:
E492: Not an editor command: MapToggle <F6> spell
line 226:
E492: Not an editor command: MapToggle <F7> paste
line 227:
E492: Not an editor command: MapToggle <F8> hlsearch
line 228:
E492: Not an editor command: MapToggle <F9> wrap
Press ENTER or type command to continue
E319: Sorry, the command is not available in this version: function!
MapToggle(key, opt)
line 216:
E319: Sorry, the command is not available in this version: let cmd =
':set '.a:opt.'! \| set '.a:opt."?\<CR>"
line 217:
E319: Sorry, the command is not available in this version: exec
'nnoremap '.a:key.' '.cmd
line 218:
E319: Sorry, the command is not available in this version: exec
'inoremap '.a:key." \<C-O>".cmd
line 219:
E319: Sorry, the command is not available in this version: endfunction
line 221:
E319: Sorry, the command is not available in this version: command!
-nargs=+ MapToggle call MapToggle(<f-args>)
line 223:
E492: Not an editor command: MapToggle <F4> foldenable
line 224:
E492: Not an editor command: MapToggle <F5> number
line 225:
E492: Not an editor command: MapToggle <F6> spell
line 226:
E492: Not an editor command: MapToggle <F7> paste
line 227:
E492: Not an editor command: MapToggle <F8> hlsearch
line 228:
E492: Not an editor command: MapToggle <F9> wrap
Press ENTER or type command to continue
E319: Sorry, the command is not available in this version: function!
MapToggle(key, opt)
line 216:
E319: Sorry, the command is not available in this version: let cmd =
':set '.a:opt.'! \| set '.a:opt."?\<CR>"
line 217:
E319: Sorry, the command is not available in this version: exec
'nnoremap '.a:key.' '.cmd
line 218:
E319: Sorry, the command is not available in this version: exec
'inoremap '.a:key." \<C-O>".cmd
line 219:
E319: Sorry, the command is not available in this version: endfunction
line 221:
E319: Sorry, the command is not available in this version: command!
-nargs=+ MapToggle call MapToggle(<f-args>)
line 223:
E492: Not an editor command: MapToggle <F4> foldenable
line 224:
E492: Not an editor command: MapToggle <F5> number
line 225:
E492: Not an editor command: MapToggle <F6> spell
line 226:
E492: Not an editor command: MapToggle <F7> paste
line 227:
E492: Not an editor command: MapToggle <F8> hlsearch
line 228:
E492: Not an editor command: MapToggle <F9> wrap
Press ENTER or type command to continue
If I comment the : ${EDITOR=vi}, like this #:${EDITOR=vi}, I got an
editor that tell me "to end the message with a dot (.) in a blank
line"
If I set the : ${EDITOR=emacs -nw}, it work well. The only issue is
the signature duplicated on the bottom.
My environment EDITOR is:
:~$ update-alternatives --config editor
Existem 5 escolhas para a alternativa editor (disponibiliza
/usr/bin/editor).
Selecção Caminho Prioridade Estado
------------------------------------------------------------
0 /bin/nano 40 modo automático
1 /bin/ed -100 modo manual
2 /bin/nano 40 modo manual
3 /usr/bin/dtemacs 0 modo manual
* 4 /usr/bin/emacs22 0 modo manual
5 /usr/bin/vim.tiny 10 modo manual
Pressione enter para manter a escolha actual[*], ou digite o número da
selecção:
Cheers
--
Marcelo
Brazil
Linux user number 487797