Re: ispell with vim
On 18.05.11 18:35, Christian Brabandt wrote: But since vim own spell checker works good another for me, I don't remember those plugins (that are really outdated for quite some time) and can't give any guidance on their quirks... What impressed me enormously was the auto-install helpfulness, even back in an older vim version. Without first installing any dictionaries, I set vim for Danish spellchecking: :set spell spelllang=da To which vim responded: » Shall I create /home/erik/.vim/spell # Answered y CR Cannot find spell file for da in utf-8 Do you want me to try downloading it? # Answered y CR Downloading da.utf-8.spl... :!curl 'http://ftp.vim.org/pub/vim/runtime/spell/da.utf-8.spl' -o '/tmp/v5STjcI/0.spl' In which directory do you want to write the file: 1. /home/erik/.vim/spell [C]ancel, (1): 1 ~/.vim/spell/da.utf-8.spl [New] 2217L, 895285C written Do you want me to try getting the .sug file? This will improve making suggestions for spelling mistakes, but it uses quite a bit of memory. « That is some in-built spell checking system! Now I just have to find out how to invoke the spelling suggestions. (After resorting to a helpgrep, I've waded through enough of the hits to stumble across spellsuggest(), but I need command-line functionality, not a scripting function.) Oh well, trial and error works well enough, since it's usually the endings or glue letter in compounds which trip me up. Erik -- Meskimen's Law: There's never time to do it right, but always time to do it over.
Re: ispell with vim
Hi Erik! On Fr, 20 Mai 2011, Erik Christiansen wrote: Now I just have to find out how to invoke the spelling suggestions. (After resorting to a helpgrep, I've waded through enough of the hits to stumble across spellsuggest(), but I need command-line functionality, not a scripting function.) Oh well, trial and error works well enough, since it's usually the endings or glue letter in compounds which trip me up. It is actually quite easy to find, if you know how to use Vim's help system. Let's see, since spelling was a new feature for Vim 7, I usually go to :h new-spell There you'll find that z= is mentioned for spell suggestions. So place you cursor on z= and press again Ctrl-] and you'll jump right to the description of the z= help topic. Now z= is a normal node command, as you want a command, you can easily define yourself a command, that does what you want, e.g. :com! Spellsuggest norm! z= Now you can use the new command :Spellsuggest and vim will invoke the spelling suggestion for the word under the cursor. You can also read all about the spelling features, in the help file spell.txt. So :h spell.txt will give you all the glory details on how to use the spelling feature and how to create new spell files. regards, Christian
Re: ispell with vim
On 20.05.11 11:52, Christian Brabandt wrote: It is actually quite easy to find, if you know how to use Vim's help system. Let's see, since spelling was a new feature for Vim 7, I usually go to :h new-spell There you'll find that z= is mentioned for spell suggestions. So place you cursor on z= and press again Ctrl-] and you'll jump right to the description of the z= help topic. Hi Christian! Grateful thanks for the shortcut. (There were only 72 hits in my helpgrep, so I might have got there eventually, but it was becoming tedious.) Time will tell whether z= sticks in my mind. Since s= doesn't appear to be to be used, I might just map it to that, since it's more mnemonic than zpelling. Either way, you've given me some useful reading. Regards, Erik -- California is the US's largest food producer, and is said to be losing agricultural land at an average of 20,200 Ha a year. - The Weekly Times, May 11, 2011. Satellite images show deforestation increased from 103 sq km in March and April 2010 to 593 sq km (229 sq miles) in the same period of 2011, Brazil's space research institute says. - http://www.bbc.co.uk/news/world-latin-america-13449792
Re: ispell with vim
On Tue, May 17, 2011 4:30 am, Elimar Riesebieter wrote: :help search You mean :h spell? :h search turns you to the search() function, which I am sure, isn't what he was looking for. BTW: although vim supports a spell function since version 7 ( see the documentation at :h spell :h new-spell :h spell.txt or online at http://vimhelp.appspot.com/spell.txt.html which is the new online and updated home of the vimhelp site the other link, which was already posted is really outdated. ), there still exist several vimspell plugin for use of ispell/aspell: http://www.vim.org/scripts/script.php?script_id=195 http://www.vim.org/scripts/script.php?script_id=465 http://www.vim.org/scripts/script.php?script_id=135 But since vim own spell checker works good another for me, I don't remember those plugins (that are really outdated for quite some time) and can't give any guidance on their quirks... regards, Christian
Re: ispell with vim
On 16.05.11 16:55, Robert Holtzman wrote: Unfortunately my (Ubuntu's) version of Mutt seems to have been compiled without ispell capability. From mutt -v: -ISPELL. Not having enough background in compiling programs, I'll just stick to this in vimrc. map F6 Esc:setlocal spell spelllang=en_usCR map F7 Esc:setlocal nospellCR That's all I use (except it's ^E for English, and ^D for Danish), and it seems ideal to me. I'm a bit puzzled about how mutt could be expected to come into the spelling picture? Erik -- The surest way to corrupt a youth is to instruct him to hold in higher regard those who think alike than those who think differently. - Nietzsche
Re: ispell with vim
On Sun, May 15, 2011 at 09:28:48PM -0400, Tim Gray wrote: On May 15, 2011 at 05:30 PM -0700, Robert Holtzman wrote: Mutt is compiled with ispell. The documentation I found only talks about it's use with emacs. Being a confirmed vi/vim user, I'm somewhat at a loss. I'm primarily interested, at this point, in adding words to the list. Any pointers appreciated. I don't use ispell but I do use vim. Vim 7.3 has a spell checker built in, and it's easy to add words to it too. Might be worth checking out. That's what I use now but would rather use aspell or in a pinch ispell. Not sure if that's possible for a noncoder. BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer signature.asc Description: Digital signature
Re: ispell with vim
On 16.05.11,00:17, Robert Holtzman wrote: On Sun, May 15, 2011 at 09:28:48PM -0400, Tim Gray wrote: On May 15, 2011 at 05:30 PM -0700, Robert Holtzman wrote: Mutt is compiled with ispell. The documentation I found only talks about it's use with emacs. Being a confirmed vi/vim user, I'm somewhat at a loss. I'm primarily interested, at this point, in adding words to the list. Any pointers appreciated. I don't use ispell but I do use vim. Vim 7.3 has a spell checker built in, and it's easy to add words to it too. Might be worth checking out. That's what I use now but would rather use aspell or in a pinch ispell. Not sure if that's possible for a noncoder. BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. If you have this setting in your .muttrc you can just do i in the compose view to spellcheck your mail: set ispell=/usr/bin/ispell For spell checking in vim see: http://vimdoc.sourceforge.net/htmldoc/spell.html Jostein
Re: ispell with vim
Hi, Le 16-05-2011, à 00:17:36 -0700, Robert Holtzman (hol...@cox.net) a écrit : BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. zg with the word under the cursor (in normal mode). See :h zg Have a nice day, Steve
Re: ispell with vim
On Mon, May 16, 2011 at 09:40:20AM +0200, steve wrote: Hi, Le 16-05-2011, à 00:17:36 -0700, Robert Holtzman (hol...@cox.net) a écrit : BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. zg with the word under the cursor (in normal mode). See :h zg That's what I was looking for and couldn't turn up in a search. Thanks. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer signature.asc Description: Digital signature
Re: ispell with vim
On Mon, May 16, 2011 at 09:40:11AM +0200, Jostein Berntsen wrote: On 16.05.11,00:17, Robert Holtzman wrote: .snip. BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. If you have this setting in your .muttrc you can just do i in the compose view to spellcheck your mail: set ispell=/usr/bin/ispell Unfortunately my (Ubuntu's) version of Mutt seems to have been compiled without ispell capability. From mutt -v: -ISPELL. Not having enough background in compiling programs, I'll just stick to this in vimrc. map F6 Esc:setlocal spell spelllang=en_usCR map F7 Esc:setlocal nospellCR For spell checking in vim see: http://vimdoc.sourceforge.net/htmldoc/spell.html Great link. Thanks. -- Bob Holtzman Key ID: 8D549279 If you think you're getting free lunch, check the price of the beer signature.asc Description: Digital signature
Re: ispell with vim
* Robert Holtzman [110516 16:03 -0700]: On Mon, May 16, 2011 at 09:40:20AM +0200, steve wrote: Hi, Le 16-05-2011, à 00:17:36 -0700, Robert Holtzman (hol...@cox.net) a écrit : BTW, how do you add words to the Vim spell checker? Running a search turned up nothing of value. zg with the word under the cursor (in normal mode). See :h zg That's what I was looking for and couldn't turn up in a search. Thanks. :help search Elimar -- what IMHO then? IMHO - Inhalation of a Multi-leafed Herbal Opiate ;) --posting from alex in debian-user--
Re: ispell with vim
On May 15, 2011 at 05:30 PM -0700, Robert Holtzman wrote: Mutt is compiled with ispell. The documentation I found only talks about it's use with emacs. Being a confirmed vi/vim user, I'm somewhat at a loss. I'm primarily interested, at this point, in adding words to the list. Any pointers appreciated. I don't use ispell but I do use vim. Vim 7.3 has a spell checker built in, and it's easy to add words to it too. Might be worth checking out. pgp6qwA1rCjBS.pgp Description: PGP signature