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

  • Home
  • SEARCH
  • 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 307437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:33:30+00:00 2026-05-12T07:33:30+00:00

I use horizontal and vertical window splits in religiously in VIM and up until

  • 0

I use horizontal and vertical window splits in religiously in VIM and up until recently, I enjoyed the comfort of two commands to effectively hide (or minimize) my horizontal splits. I set them up adding the following lines to my .vimrc file:

set winminheight=0
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_

Hitting Control-j or Control-k navigates through horizontal splits by going up or down. What I’d like to accomplish is the same thing for vertical splits by showing or hiding the left or right split using Control-Shift-h and Control-Shift-l; h moving to the left, l moving to the right. I have tried the following with little to no success:

set winminwidth=0
map <S-C-L> 500<C-W>h<C-W>_
map <S-C-H> 500<C-W>l<C-W>_

The action would be similar to utilizing Control-w-< and Control-w->, only moving the vertical split completely to the left or write, not just one line at a time.

Any ideas on how to accomplish this? Thanks.

  • 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-12T07:33:31+00:00Added an answer on May 12, 2026 at 7:33 am

    First up, you won’t be able to use <S-C- (shift + control) in your code (see below). But you can use the ‘mapleader’ as your “shift” and then use the <C-h> and <C-l> like you want to. Like this:

    set winminwidth=0
    nmap <Leader><C-h> <C-W>h500<C-W>>             
    nmap <Leader><C-l> <C-W>l500<C-W>>               
    

    The common leader keys in vim are comma and back-slash:

    :let mapleader = ","
    

    But you’ll find that this gets annoying to require 3 keystrokes for this, so you might as well just drop the control key stroke. This way (if your leader is comma) you can just press “,h” and “,l” to go to the splits to your left and right:

    set winminwidth=0
    nmap <Leader>h <C-W>h500<C-W>>             
    nmap <Leader>l <C-W>l500<C-W>>       
    
    " (FTW) :D
    

    …

    A guy named Tony Chapman answers why you can’t use control + shift:

    Vim maps its Ctrl+printable_key
    combinations according to ASCII. This
    means that “Ctrl+lowercase letter” is
    the same as the corresponding
    “Ctrl+uppercase letter” and that
    Ctrl+<key> (where <key> is a printable
    key) is only defined when <key> is in
    the range 0x40-0x5F, a lowercase
    letter, or a question mark. It also
    means that Ctrl-[ is the same as Esc,
    Ctrl-M is the same as Enter, Ctrl-I is
    the same as Tab.

    So yes, Ctrl-s and Ctrl-S (i.e. Ctrl-s
    and Ctrl-Shift-s) are the same to
    Vim. This is by design and is not
    going to change.

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

Sidebar

Related Questions

'''use Jython''' import shutil print dir(shutil) There is no, shutil.move, how does one move
Use case: A does something on his box and gots stuck. He asks B
Use case: 3rd party application wants to programatically monitor a text file being generated
We use a data acquisition card to take readings from a device that increases
I use Firebug and the Mozilla JS console heavily, but every now and then
I use rsync to synchronize files to Windows clients in a server agnostic way.
I use emacs to edit my xml files (nxml-mode) and the files were generated
I use the VS2008 command prompt for builds, TFS access etc. and the cygwin
I use a stream reader to import some data and at the moment I
We use QuickBooks for financial management, and feed it from a variety of sources.

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.