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 8569321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:18:28+00:00 2026-06-11T18:18:28+00:00

Here is what I do :syntax match conceal Test +[A-Z0-9]\{6}+ :set conceallevel=2 :set concealcursor=nvi

  • 0

Here is what I do
:syntax match conceal Test +[A-Z0-9]\{6}+
:set conceallevel=2
:set concealcursor=nvi
So when I write 123456 in vim I expect it to be nothing there. But what actually happens when I move over that area is that I have to move 6 times in the direction I want to move for the cursor to pass that area.

Is there a way to work around this? I want vim to see it as if there is nothing there and that when I move over that area it’s like there is nothing there. But I still want to be able to search for it and delete it.

  • 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-06-11T18:18:29+00:00Added an answer on June 11, 2026 at 6:18 pm

    Currently there is no built-in way to do this. You can use synconcealed() to determine whether there is a concealed character under the cursor and what it is concealed to and remap all moving keys to respect it: like this:

    function! ForwardSkipConceal(count)
        let cnt=a:count
        let mvcnt=0
        let c=col('.')
        let l=line('.')
        let lc=col('$')
        let line=getline('.')
        while cnt
            if c>=lc
                let mvcnt+=cnt
                break
            endif
            if stridx(&concealcursor, 'n')==-1
                let isconcealed=0
            else
                let [isconcealed, cchar, group]=synconcealed(l, c)
            endif
            if isconcealed
                let cnt-=strchars(cchar)
                let oldc=c
                let c+=1
                while c<lc && synconcealed(l, c)[2]==group | let c+=1 | endwhile
                let mvcnt+=strchars(line[oldc-1:c-2])
            else
                let cnt-=1
                let mvcnt+=1
                let c+=len(matchstr(line[c-1:], '.'))
            endif
        endwhile
        return ":\<C-u>\e".mvcnt.'l'
    endfunction
    nnoremap <expr> l ForwardSkipConceal(v:count1)
    

    . Note: this does the thing for one single motion (l) and in normal mode, just to show the way it may be done.

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

Sidebar

Related Questions

Not clear on some fundamental syntax here. define-key accepts a set of inputs, one
I'm struggling with some SQL/php syntax issues here. I'm trying to write two functions.
New to regex syntax here. Trying to write a regex to provide some input
In a vim syntax file I want to name one match foo followed by
im struggling with syntax here: hopefully this question is v simple, im just miising
What's wrong with my syntax here? I'm adhering strictly to the rules in the
What's the proper syntax here? If (@timestamp < (Select PromoStartTimestamp From @promo)) RAISERROR('Code not
Here is the syntax... on the first frame JTextField tf1 = new JTextField(); from
I have JPA entities as outlined here: QueryDSL JPA syntax error with contains on
I'm getting syntax error in firebug here is the code : $('#moderator-attention').live('toogle', function(){ function

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.