OpenLink Software

Usage stats on Spelling suggestions anywhere, even in console mode

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Here's the function I created. " F7 Will give some spelling suggestions for the current word in any mode nmap \ss vmap \ss omap \ss map! \ss noremap \ss :call SuggestWord() "Make some spelling suggestions for the current word, and allow you to change it for the word you prefer "Requires ispell and perl "By Ben Staniford function! SuggestWord () let rw = tempname() let oldspelling = expand("") "Run ispell on the word under the cursor and prompt us for a choice, then save it to a temp file exe '!echo -n '.oldspelling.' | ispell -a -S | perl -e '."\x27".'print " ";'. \ 'while(<>) {if(/.*:\s(.*$)/){$m=1;@a=split ", ",$1;print "Suggestions: [CTL-C to abort] ";'. \ 'for (@a) {print ++$i.")$_ "} print " >"; open (I, "/dev/tty"); $b=; open(RW,">'.rw.'");'. \ 'print RW "$a[$b-1]";}}if($

Graph IRICount
http://dbkwik.webdatacommons.org17
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software