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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:55:43+00:00 2026-05-14T20:55:43+00:00

I’m switching from Notepad++ to Vim as my main text editor. In Notepad++, you

  • 0

I’m switching from Notepad++ to Vim as my main text editor.

In Notepad++, you can have multiple cursors by holding down Ctrl and clicking anywhere in the text, so that if you type, the text appears in multiple locations.

Is it possible in Vim? Something like insert after selecting multiple rows in Visual mode, but with the possibility to have cursors anywhere in the text.

It’s a feature I rarely use, and it’s also quite easily avoidable; I’m just curious, since it’s the only one I could’t find a replacement for in Vim yet.

  • 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-14T20:55:44+00:00Added an answer on May 14, 2026 at 8:55 pm

    There is not a built-in feature of that kind.

    Let me suggest a function that repeats command (for example . repeating last
    change command) at the positions of given marks. Both marks and command are
    specified as string arguments. Marks specified in the way ranges in regular
    expressions or scanf-format specifier are defined. For example, za-dx
    means marks z, a, b, c, d, x.

    function! MarksRepeat(marks, command)
        let pos = 0
        let len = strlen(a:marks)
        let alpha = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
        let beta =  '1234567899bcdefghijklmnopqrstuvwxyzzBCDEFGHIJKLMNOPQRSTUVWXYZZ'
        while pos < len
            if a:marks[pos + 1] != '-'
                exe 'norm `' . a:marks[pos] . a:command
                let pos += 1
            elseif a:marks[pos] <= a:marks[pos+2]
                let mark = a:marks[pos]
                let stop = a:marks[pos+2]
                if mark =~ '[0-9a-zA-Z]' && stop =~ '[0-9a-zA-Z]'
                    while 1
                        exe 'norm `' . mark . a:command
                        if mark == stop
                            break
                        endif
                        let mark = tr(mark, alpha, beta)
                    endwhile
                endif
                let pos += 3
            endif
        endwhile
    endfunction
    

    In your case, the function could be used as follows.

    1. Mark all places for simultaneous insertions (except one) using Vim
      marks (by means of m command).
    2. Actually insert text in the one place that has not been marked.
    3. Run the function:

      :call MarksRepeat(‹marks›, '.')
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm switching from MySQL to PostgreSQL and I was wondering how can I have
I am switching from plain mysql in php to PDO and I have noticed
Ever since switching from TABLE-layout to DIV-layout, one common problem remains: PROBLEM : you
We are considering switching from MS Visual Studio 2003 to MS Visual Studio 2005
For my school work, I do a lot of switching computers (from labs to
We're considering switching our site from Prototype to jQuery. Being all-too-familiar with Prototype, I'm
Is DirectSound the best audio abstraction layer for Windows? Switching my app from a
My group is thinking about switching our platform for web UI from ASP.net to
Switching from JVM 1.4 to 1.5 has performance benefits as per release notes. http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#performance
Switching from Microsofts Oracle Driver to ODP.NET version 10.2.0.100. After changing the data types

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.