Sitaram Chamarty wrote:
>> :cnoremap <expr> <CR> ((getcmdtype == '/' <Bar><Bar> 
>> getcmdtype == '?')?"<Bslash>CR>:set fdm=expr":'')
>
> Can someone explain this a bit more slowly for me please?

The 'getcmdtype' should be 'getcmdtype()'. I can't offer more help at
the moment, except that Tim gave a reply where he said he had updated
the command to (one line):

:cnoremap <buffer> <expr> <cr> (getcmdtype()=~'[/?]')
?"\r:setlocal fdm=expr fde=(getline(v:lnum)=~@/)?0:1 fdl=0\r":"\r"

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to