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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:15:28+00:00 2026-06-15T05:15:28+00:00

Is there any way in gvim to obtain a clickable code folding margin, similar

  • 0

Is there any way in gvim to obtain a clickable code folding margin, similar to the one available in diff mode? Please refer the diff mode screenshots attached.

Note that I am comfortable using the keyboard commands for code folding, but sometimes clicking is more convenient.

I have searched on the internet and also here. I have only found material which explains the keyboard commands, but nothing about the clickable option.

Edit I use gvim version 7.0.

Screenshot demonstrating the clickable code-folding margin (not folded)Screenshot demonstrating the clickable code-folding margin (folded)

  • 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-15T05:15:29+00:00Added an answer on June 15, 2026 at 5:15 am

    Assuming that folding has been set up for your filetype (i.e. you can use keyboard commands like za), you just need to enable the fold column with a specified width, e.g.:

    :set foldcolumn=4
    

    If you set this globally, it will always be there. If you only want to enable it for certain filetypes (that actually have folding), and/or adapt the width to the amount of nested folding, use :setlocal foldcolumn=... instead, and put the corresponding commands into ~/.vim/after/ftplugin/<filetype>.vim, where <filetype> is the actual filetype (e.g. java). (This requires that you have :filetype plugin on.)

    Alternatively, you could define an :autocmd FileType <filetype> setlocal foldcolumn=... directly in your ~/.vimrc, but this tends to become unwieldy once you have many customizations.

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

Sidebar

Related Questions

Is there any way to achieve compiling Node.js scripts as native code, like Hip-Hop
In Gvim is there any way to trace back a series of files opened
Is there any way of shortening line #2 of the code below? for i
Is there any way I can have intellisense enabled in VIM (gvim). I wish
Is there any way in gVim to rearrange tabs by dragging and dropping them
Is there any way to turn off the monitor screen light using java code
Is there any way to get a xev -like mode where I can hit
Is there any way in Notepad++ (or even with another tool) to change the
Is there any way I can set a formatter on models that will convert
Is there any way to use Google's API to retrieve a user's current zipcode

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.