Skip to content

Commit

Permalink
Add some general settings
Browse files Browse the repository at this point in the history
These are just some bare-bones settings to get us started. We're going
to be using Vim to configure Vim, which is a bit hard without these
settings.

There are plenty of settings that I excluded here, but mostly because I
just don't have the time. I have a whole section in my dotfiles repo
that I'd recommend you look into if you're looking for general-purpose
Vim settings:

https://github.com/jez/dotfiles/blob/cc8fe3e26fa112f215c255f369cf462f606bbbf5/vimrc#L45-L73
  • Loading branch information
jez committed Feb 25, 2015
1 parent 0673f0c commit dff7da3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vimrc.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
" Gotta be first
set nocompatible

" --- General settings ---
set backspace=indent,eol,start
set ruler
set number
set showcmd
set incsearch
set hlsearch

syntax on

5 comments on commit dff7da3

@jez
Copy link
Owner Author

@jez jez commented on dff7da3 Feb 26, 2015

Choose a reason for hiding this comment

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

(<-- prev step) ... (next step -->)

Be sure to look into other settings after you've got the plugins set up!

@kusold
Copy link

@kusold kusold commented on dff7da3 Feb 26, 2015

Choose a reason for hiding this comment

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

An explanation of these options can be found in the VimDoc Documention

@singsuyash
Copy link

Choose a reason for hiding this comment

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

Will these additions to the vimrc file be reflected immediately if i for example create a HelloWorld.js file and start editing it in vim ?

@jez
Copy link
Owner Author

@jez jez commented on dff7da3 Sep 28, 2016

Choose a reason for hiding this comment

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

You'll have to save your vimrc, then reopen Vim before they'll take effect.

@IvanRahn
Copy link

Choose a reason for hiding this comment

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

I think you can also type type :so% in normal mode to "source" the file - meaning execute the commands in the file. That way you don't need to save, close and reopen the .vimrc.

Please sign in to comment.