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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:01:25+00:00 2026-05-27T06:01:25+00:00

In the gVim Search window (q/), my screen can fit 100 characters before wrapping

  • 0

In the gVim Search window (“q/”), my screen can fit 100 characters before wrapping the line. (This is apart from the text-wrapping setting in the main editing window.) In building a complex search query (that I would later plug into a command statement) it locks up gVim when I try to run it – which only occurs if the query line wraps within this window. There appears to be nothing in the line I wrote that was out of the ordinary. My first sign that something might be wrong was when I saw gVim’s automatically placed pre “/” (before the search query sentence within the Search Window) was added to the wrapped portion of the query line – but, obviously, I am not sure that’s the issue.

Has anyone else experienced difficulty in developing long search queries in gVim? I’m running 7.3 (w/patches 1-35) on a Ubuntu Natty system.

I realize I can break this line apart into smaller functions, but I was almost done doing it this way and would be interested in discovering a solution – if there is one.

  • 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-27T06:01:26+00:00Added an answer on May 27, 2026 at 6:01 am

    As a workaround, you can use a regular vim script/buffer to assign search patterns

    One ‘simple’ approach:

    1. open a (new) buffer
    2. type the search pattern as you would in the search window, on a single long line
    3. do the following command to set the searchpattern as into the search register:

      :let @/=getline('.')
      

    This has the same effect as pressing enter inside the Search Window, except for the fact that

    • the cursor won’t jump to the first match
    • the pattern won’t be recorded in the search history (effectively avoiding your crash)

    There are a number of variation on this basic theme. The essence of which is: assign your search pattern directly into @/

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

Sidebar

Related Questions

Hi In Gvim I need to insert a blank line or two before every
When I load GVim from the Cygwin command line or when I'm not connected
I'm trying to copy text from my vim search term. I spend a fair
When I start gvim from withing a terminal, I can access my all environment
I use gvim in windows. How do I copy text from the current position
Using Stata my text editor is gVim . Using scripts from here and here
When I run gVim from Terminal in Ubuntu 10.04 with Gnome I get this
I start GVIM in not-maximized window mode and split its window horizontally making sure
I've been forcing myself to use gvim for Windows for much of my text
I am using the css_color.vim script with gvim 7.2 on vista. Because of this

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.