Skip to content

Commit

Permalink
Create vimrc file
Browse files Browse the repository at this point in the history
We want to unlock the full potential of vim. That's what

    set nocompatible

does. It needs to be set before all other options.
  • Loading branch information
jez committed Feb 25, 2015
1 parent cb9b756 commit 0673f0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
" Gotta be first
set nocompatible

4 comments on commit 0673f0c

@jez
Copy link
Owner Author

@jez jez commented on 0673f0c Feb 26, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(next step -->)

This is how it's gonna work: you'll see a description of what's happening in the commit message (that blue box up there!), a certain number of lines highlighted in green, and then some comments for clarification. This first commit is pretty boring--it gets better, trust me!

Note that we want to call this file ~/.vimrc instead of vimrc.vim. I've named it accordingly so that GitHub syntax highlights it correctly, but you should change that name.

@huiwang
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to the OS, vimrc is not always under ~/.vimrc, therefore the most straightforward way to edit this file is to type the following command in vim or givm

:e $MYVIMRC

@jez
Copy link
Owner Author

@jez jez commented on 0673f0c Feb 26, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose, but my original audience was a room of ~50 beginners. When in doubt, keep it simple. Thanks for pointing it out though!

@dezza
Copy link

@dezza dezza commented on 0673f0c Dec 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nocompatible is default in vim now :)

Please sign in to comment.