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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:12:11+00:00 2026-05-29T05:12:11+00:00

My work setup has several terminals open, at different heights (e.g. number of lines).

  • 0

My work setup has several terminals open, at different heights (e.g. number of lines). How do I make Vim obtain that number of lines so that it can set itself accordingly with set lines?

I’m on bash with iTerm2.

Update: If my .vimrc doesn’t have a set lines statement, Vim should adjust itself by default.

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

    Vim’s default behaviour is to take up all of the available height. Or 24 lines if it can’t get the information from the Terminal emulator according to :h lines.

    set lines=52 works in MacVim/GVim but it’s not really supposed to do anything useful in CLI Vim besides, eventually, changing the terminal’s window height.

    From my limited use of iTerm2 Vim behaves as it should. So do you want Vim to take less vertical space than what is available? Or more?

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

Sidebar

Related Questions

I'´m currently twiddling with an application that has a setup matching the following chat
The company I work for has several clients. I'm currently splitting my time between
What's the best way to setup Maven for a project that has a SmartClient
I have a large HTML file (In ASP.NET) that has several smaller ... tags
Hi there I am currently testing how to develop an application that has several
Okay, here's the setup: I work in HPC, and we're preparing for the need
I've setup IIS6 to work with MVC, added a new virtual web site, entry
I'm trying to setup Tomcat6 to work with JMX on Windows Vista 64. To
I am trying to setup allegro to work with visual studio express 2008 .
Is it possible to setup ASP.NET MVC 2 to work with a MySQL database?

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.