LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2009, 02:34 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
spell check in vi give error


Hi i am using openSUSE 10.3 & spell check in vi editor gave following error.
warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
What should I do?
 
Old 07-16-2009, 08:38 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
You should Google for vi "word list" "en.utf-8.spl" or "en.ascii.spl". Could be a runtimepath problem.
 
Old 07-28-2009, 01:19 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Attention all readers

For open-SUSE users
Code:
I found out that you have to install 
vim-data from dvd version of openSUSE10.3
then spell check works.

Last edited by sumeet inani; 01-06-2010 at 03:04 AM.
 
Old 07-28-2009, 01:33 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Can anybody tell me command for spell checking a file ?
 
Old 07-28-2009, 01:38 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638

Rep: Reputation: Disabled
:w !spell -b
 
Old 11-10-2009, 02:59 AM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Quote:
Originally Posted by linuxlover.chaitanya View Post
:w !spell -b
Don't you think running ':set spell' inside vi editor is easier.

Last edited by sumeet inani; 01-06-2010 at 03:05 AM.
 
Old 11-10-2009, 03:36 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by sumeet inani View Post
i tried but output is

/bin/bash: spell: command not found
shell returned 127
Press ENTER or type command to continue
Try aspell -- or look for an ubuntu package that includes the spell command.
 
Old 11-10-2009, 11:22 PM   #8
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
I ran
sudo apt-get install spell

Then on running :w! spell -b in vi I got following error

spell: /usr/lib/ispell/british.hash: cannot open
shell returned 1

I think I have american dictionary then what should be change in command for spell check?

Last edited by sumeet inani; 11-11-2009 at 12:41 AM.
 
Old 11-11-2009, 08:39 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Find what dictionaries you do have by looking in /usr/lib/ispell and then configure /etc/aspell.conf to suit. For English as she is Americanised you may need (not tested) lang en_US
 
Old 11-12-2009, 01:50 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
SOLUTION FOR ALL
Code:
ANSWER)run 'select-default-ispell' as super user
to set dictionary.
Now you can 
run ':set spell' in vi 
then you can use ']s' to see next misspelled word
& '[s' for previous  misspelled word.
(Question)I want that whatever file I open with vim should be spell checked by default.how can i do it?
Code:
(Answer)Create file .vimrc in home directory.
Add following line in it
set spell
Now whenever you will open file with vim you will
see red highlighted wrong words.
If you find this useful then thank me by pressing thumbs up button.Thank You.

Last edited by sumeet inani; 02-10-2010 at 12:12 AM.
 
Old 11-12-2009, 02:14 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
HOW TO ERASE HISTORY OF VI
(Question 2)I saw command ':set history=10' to save only last 10 commands but how can I clear history(like in terminal we do 'history -c').

Last edited by sumeet inani; 12-14-2009 at 09:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
spell check in OO 3.01 ahurd Linux - Newbie 1 03-12-2009 08:16 AM
Spell Check error Juanita Libranet 5 10-01-2006 04:14 PM
spell check in kword jimjamjahaa Debian 1 04-27-2006 10:58 AM
no spell check in HCL? titanium_geek LQ Suggestions & Feedback 2 04-12-2005 09:13 PM
vi spell-check? jeri Linux - General 2 09-01-2001 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration