Re: Spell checking in vim

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2009-08-23 at 09:30 +0200, Marco Guazzone wrote:
> On Sat, Aug 22, 2009 at 5:48 PM, Aaron Konstam<akonstam@xxxxxxxxxxxxx> 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 nospell<CR>
> map <F6> <Esc>:setlocal spell spelllang=en<CR>
> map <F7> <Esc>:setlocal spell spelllang=it<CR>
> 
> 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: akonstam@xxxxxxxxxxxxx

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

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux