Re: Spell checking in vim

2009-08-23 Thread Marco Guazzone
On Sat, Aug 22, 2009 at 5:48 PM, Aaron Konstamakons...@sbcglobal.net wrote:
[cut text]

 I am missing something. If you get the file how do you get vim to
 correct the misspelled words?


Once you have the dictionary file in $HOME/.vim/spell (in this case
the file is de.utf-8.spl) you can spell check inside ViM by issueing
the command:

:setlocal spell spelllang=de

After that ViM will mark (in red for me) all misspelled words in
real-time (i.e. while you're typing).

Since I frequently use this feature I've created some key bindings
inside my $HOME/.vimrc:

map F5 Esc:setlocal nospellCR
map F6 Esc:setlocal spell spelllang=enCR
map F7 Esc:setlocal spell spelllang=itCR

If you want a list of possible candidates of a misspelled word, move
the cursor on that word and (in command mode) type: z=.
Instead if that word is right (e.g. e technical word) and you want to
insert in the dictionary file type zg
If you want to remove a word from a dictionary type zw.
Finally for moving to the next/previous misspelled word type ]s and
[s respectively.

-- Marco

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Spell checking in vim

2009-08-23 Thread Aaron Konstam
On Sun, 2009-08-23 at 09:30 +0200, Marco Guazzone wrote:
 On Sat, Aug 22, 2009 at 5:48 PM, Aaron Konstamakons...@sbcglobal.net wrote:
 [cut text]
 
  I am missing something. If you get the file how do you get vim to
  correct the misspelled words?
 
 
 Once you have the dictionary file in $HOME/.vim/spell (in this case
 the file is de.utf-8.spl) you can spell check inside ViM by issueing
 the command:
 
 :setlocal spell spelllang=de
 
 After that ViM will mark (in red for me) all misspelled words in
 real-time (i.e. while you're typing).
 
 Since I frequently use this feature I've created some key bindings
 inside my $HOME/.vimrc:
 
 map F5 Esc:setlocal nospellCR
 map F6 Esc:setlocal spell spelllang=enCR
 map F7 Esc:setlocal spell spelllang=itCR
 
 If you want a list of possible candidates of a misspelled word, move
 the cursor on that word and (in command mode) type: z=.
 Instead if that word is right (e.g. e technical word) and you want to
 insert in the dictionary file type zg
 If you want to remove a word from a dictionary type zw.
 Finally for moving to the next/previous misspelled word type ]s and
 [s respectively.
 
 -- Marco
 
Seems more complicated than using aspell ot ispell on the vim file.
--
===
The story you are about to hear is true. Only the names have been
changed to protect the innocent.
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Spell checking in vim

2009-08-23 Thread Marco Guazzone
On Sun, Aug 23, 2009 at 10:38 AM, Aaron Konstamakons...@sbcglobal.net wrote:

 Seems more complicated than using aspell ot ispell on the vim file.
 --
 ===
 The story you are about to hear is true. Only the names have been
 changed to protect the innocent.
 ===
 Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

 --
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Don't know what is *best.*.. But the ViM-way is good for me, ;)

With the key bindings above, I simply press F6 or F7 for the English
or Italian language respectively and then I'm able to check for
misspelled words on real-time (i.e., while I'm just typing them).
The spell checker remain active until you exit from ViM or disable
with the command given above

Instead, for using aspell/ispell I have to invoke it explicitly and it
does not work at real-time.
This is what made me move from ispell/aspell to ViM-spell :)


-- Marco

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Spell checking in vim

2009-08-23 Thread Christoph Höger
Am Sonntag, den 23.08.2009, 09:30 +0200 schrieb Marco Guazzone:
 On Sat, Aug 22, 2009 at 5:48 PM, Aaron Konstamakons...@sbcglobal.net wrote:
 [cut text]
 
  I am missing something. If you get the file how do you get vim to
  correct the misspelled words?
 
 
 Once you have the dictionary file in $HOME/.vim/spell (in this case
 the file is de.utf-8.spl) you can spell check inside ViM by issueing
 the command:
 
 :setlocal spell spelllang=de

Did you test that with fedora 11 and vim 7.2? On my machine vim says
 the file would not look like a language file.


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Spell checking in vim

2009-08-23 Thread Marco Guazzone
2009/8/23 Christoph Höger choe...@cs.tu-berlin.de:
 Am Sonntag, den 23.08.2009, 09:30 +0200 schrieb Marco Guazzone:
 On Sat, Aug 22, 2009 at 5:48 PM, Aaron Konstamakons...@sbcglobal.net wrote:
 [cut text]

  I am missing something. If you get the file how do you get vim to
  correct the misspelled words?
 

 Once you have the dictionary file in $HOME/.vim/spell (in this case
 the file is de.utf-8.spl) you can spell check inside ViM by issueing
 the command:

 :setlocal spell spelllang=de

 Did you test that with fedora 11 and vim 7.2? On my machine vim says
  the file would not look like a language file.


Hmmm... Sorry I've only tested the download of the file.
Actually it seems you're right ... ViM complains about the file me too

I've tried to download it manually from:

http://ftp.vim.org/pub/vim/runtime/spell/

but I get the same error.

Then I dig into the ViM repo and I've found this:

http://ftp.vim.org/pub/vim/unstable/runtime/spell/de.utf-8.spl
http://ftp.vim.org/pub/vim/unstable/runtime/spell/de.utf-8.sug

Note: the sug file is not important but should improve spelling
(don't know how)

I've downloaded those files and saved into $HOME/.vim/spell
Then I've tried
:setlocal spell spelllang=de
and now it seems to work

-- Marco

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Spell checking in vim

2009-08-23 Thread Christoph Höger
 http://ftp.vim.org/pub/vim/unstable/runtime/spell/de.utf-8.spl
 http://ftp.vim.org/pub/vim/unstable/runtime/spell/de.utf-8.sug
 
 Note: the sug file is not important but should improve spelling
 (don't know how)
 
 I've downloaded those files and saved into $HOME/.vim/spell
 Then I've tried
 :setlocal spell spelllang=de
 and now it seems to work
 
 -- Marco

Ah, thanks alot, that was what I needed!



signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Spell checking in vim

2009-08-22 Thread Christoph Höger
Hi folks,

I just wanted to spellcheck some files with vim.
set spelllang=de reports that de.utf-8.spl is missing. 

Is there a package that provides that file or do I have to search
upstream for it?

regards

Christoph


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Spell checking in vim

2009-08-22 Thread Marco Guazzone
2009/8/22 Christoph Höger choe...@cs.tu-berlin.de:
 Hi folks,

 I just wanted to spellcheck some files with vim.
 set spelllang=de reports that de.utf-8.spl is missing.

 Is there a package that provides that file or do I have to search
 upstream for it?


If you enter ViM and in command mode type:

:setlocal spell spelllang=de

ViM should tell you the following:

  Cannot find spell file for de in utf-8
  Do you want me to try downloading it?
  (Y)es, [N]o:

If you type Y ViM should downlod the file for you.

Cheers,

-- Marco

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: Spell checking in vim

2009-08-22 Thread Christoph Höger
problem solved:

mkdir -p ~/.vim/spell

simple enough - if you know it.


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: Spell checking in vim

2009-08-22 Thread Aaron Konstam
On Sat, 2009-08-22 at 19:26 +0200, Marco Guazzone wrote:
 2009/8/22 Christoph Höger choe...@cs.tu-berlin.de:
  Hi folks,
 
  I just wanted to spellcheck some files with vim.
  set spelllang=de reports that de.utf-8.spl is missing.
 
  Is there a package that provides that file or do I have to search
  upstream for it?
 
 
 If you enter ViM and in command mode type:
 
 :setlocal spell spelllang=de
 
 ViM should tell you the following:
 
   Cannot find spell file for de in utf-8
   Do you want me to try downloading it?
   (Y)es, [N]o:
 
 If you type Y ViM should downlod the file for you.
I am missing something. If you get the file how do you get vim to
correct the misspelled words?
 
 Cheers,
 
 -- Marco
 
--
===
Yow! It's some people inside the wall! This is better than mopping!
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines