Re: Spell checking in vim

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

 



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

-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux