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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-16-2009, 02:34 AM
|
#1
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
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?
|
|
|
07-16-2009, 08:38 AM
|
#2
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
You should Google for vi "word list" "en.utf-8.spl" or "en.ascii.spl". Could be a runtimepath problem.
|
|
|
07-28-2009, 01:19 AM
|
#3
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
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.
|
|
|
07-28-2009, 01:33 AM
|
#4
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
Can anybody tell me command for spell checking a file ?
|
|
|
07-28-2009, 01:38 AM
|
#5
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep:
|
:w !spell -b
|
|
|
11-10-2009, 02:59 AM
|
#6
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
Quote:
Originally Posted by linuxlover.chaitanya
: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.
|
|
|
11-10-2009, 03:36 AM
|
#7
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
Quote:
Originally Posted by sumeet inani
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.
|
|
|
11-10-2009, 11:22 PM
|
#8
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
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.
|
|
|
11-11-2009, 08:39 AM
|
#9
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
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
|
|
|
11-12-2009, 01:50 AM
|
#10
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
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.
|
|
|
11-12-2009, 02:14 AM
|
#11
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|