Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for How To Avoid Getting Stuck in Vim as a New git User
Sam E. Lawrence
Sam E. Lawrence

Posted on

     

How To Avoid Getting Stuck in Vim as a New git User

I started a new job recently. When I set up a new work machine, I immediately install zsh and pull down a few repos to get digging into code. It's all fun and games until you rungit branch and BLAM, you're stuck in Vim-land now, hope you brought a towel. I've seen more than a few new developers get stuck here, and I've had to embarrassingly ask for help myself, so if you're finding yourself stuck in this situation, know that you're not alone and you'll be ok. Just type:wq and you should return to the terminal. However, if you want to prevent this happening again, read on.

WARNING: This change is global and will affect all your git repositories. See the link below for details if you want to control this setting per repo.

git config--global core.pagercat
Enter fullscreen modeExit fullscreen mode

This command modifies the global git configuration to use the toolcat as theterminal pager for all your future git commands. By default, on a new Mac with zsh installed, Vi is used... or Vim... I still don't really understand the difference, but it's one of them and you can't get out without:wq.

Remember that after changing any configurations, you will need to re-launch your terminal to see changes take effect.

Source:StackOverflow

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hi, I'm Sam and I'm an advocate for quality software. I'm a Cypress Ambassador and I work as the QA Lead at Pointivo where we're digitizing real-world infrastructure for analysis and maintenance.
  • Location
    ATL
  • Education
    Georgia Tech
  • Pronouns
    He/him/his
  • Work
    QA Lead @ Pointivo
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp