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

The Archive Base Latest Questions

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

I develop on Linux at home and on Windows at work. I’d like to

  • 0

I develop on Linux at home and on Windows at work. I’d like to use the same vimrc file in both environments. The problem I have with this is that on Windows, I want to have the editor use the Consolas font, and on linux, a different font. How can I check the environment so I can conditionally set the editor font? (I am familiar with the actual command to change font; it’s the conditional I don’t get)

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

    Exception from my .vimrc

    " adjust configuration for such hostile environment as Windows {{{
    if has("win32") || has("win16")
      lang C
      set viminfo='20,\"512,nc:/tmp/_viminfo
      set iskeyword=48-57,65-90,97-122,_,161,163,166,172,177,179,182,188,191,198,202,209,211,230,234,241,243,143,156,159,165,175,185
    else
      set shell=/bin/sh
    endif
    " }}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I develop on both mac and linux and have one network mounted home directory
I would like to develop Mono application for Win/Linux/Mac in C# on Windows. Is
If i want to develop a registry-like System for Linux, which Windows Registry design
I develop on Windows, and I'd like to use beanstalkd. It's only available as
We would like to develop an test tool to work on Linux os systems
I like to develop a Linux OS , what are all the languages i
I want to develop multimedia encoder for Linux. I want to make use of
I would like to develop Adobe Flex applications using Linux and a free environment.
I have to develop a patch for the linux kernel (2.6) for an university
I want to use Eclipse to develop C++ projects on Linux. Particularly I want

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.