Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4258858
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:42:20+00:00 2026-05-21T05:42:20+00:00

I wan’t to have a function that turns spell check on then go’s to

  • 0

I wan’t to have a function that turns spell check on then go’s to the next misspelled word and replaces with the first suggestion heres what I’ve got so far:

function! Spell_new_word()
  set spell=true
  exe ']s'
  exe '1z='
  set spell=false
endfunction

but it only seems to set spelling to true and doesn’t do anything…. what am I doing wrong?

UPDATE:

I’ve tired changing exe to normal, but still no luck:

function! Spell_new_word()
  set spell!
  normal ']s'
  normal '1z='
  set spell!
endfunction

UPDATE 2:

I’ve tired this and it still doesn’t work:

function! Spell_new_word()
  set spell
  normal ]s
  normal 1z=
  set nospell
endfunction

But I don’t think that is the problem I think thats its not binding to ,d:

let mapleader = ","
namp ,d Spell_next_word()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:42:20+00:00Added an answer on May 21, 2026 at 5:42 am
    nnoremap ,d :call Spell_next_word()^M
    

    things to note:

    1. choose mode (normal mode, no remapping)
    2. include : to enter command mode
    3. call the function
    4. Execute it! The ^M is normally entered with C-vEnter on linux, or C-QEnter on Windows

    Additionally, perhaps include

    inoremap ,d ^O:call Spell_next_word()^M
    

    (again typeing the ^O as C-vC-o or C-QC-o)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have uitextfield i wan that it should start entering text from top instead
I wan't to divide my CI into multiple applications. I should say that it
i wan to retrieve data from query involving many tables. i have a query
I wan to check if my stateful bean is passivated/activated and the corresponding callbacks
i wan to create a linked list that contains the name , age and
I wan't to animate a view that's shaped as an arrow, and I want
I wan't to perform an animation before quitting a view. The problem is that
I wan't to make a string regexp safe in Ruby. I have: comment =
i wan to ask that if my machine got 1000/10000 of image and each
i wan to create a program that can get the application name i can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.