LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Spell Check using Vi macro (https://www.linuxquestions.org/questions/linux-software-2/spell-check-using-vi-macro-650680/)

paragkalra 06-21-2008 01:41 AM

Spell Check using Vi macro
 
Hi Friends,

I have placed following entry in the file "/root/.exrc"
Quote:

map V :w^M:!ispell % ^M:e!^M^M
Then I am opening a file using "vi" editor and on pressing "shift" key + "V" key, I am getting following string at the bottom:
Quote:

:w^M:!ispell % ^M:e!^M^M
What to do next? How could I use this spell check macro? Please guide.

druuna 06-22-2008 10:12 AM

Hi,

Are those ^M's correct? Did you use a literal ^ followed by a M?

Try replacing them with <CR>.

Hope this helps.


All times are GMT -5. The time now is 11:27 PM.