Skip to content

Instantly share code, notes, and snippets.

@r00k
Last active May 13, 2023 09:34
Show Gist options
  • Select an option

  • Save r00k/8fc7e4e9d35ccbfb64aa to your computer and use it in GitHub Desktop.

Select an option

Save r00k/8fc7e4e9d35ccbfb64aa to your computer and use it in GitHub Desktop.
A minimal vimrc for beginners
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
"
" If you don't understand a setting in here, just type ':h setting'.
" Switch syntax highlighting on
syntax on
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
@ryanolsonx

ryanolsonx commented Jan 27, 2020

Copy link
Copy Markdown

Getting even more minimal!

That's awesome. It's nice getting things more minimal! Just for fun, here's my current minimalist configuration that I use for serious, day-to-day frontend and backend development.

@goalaleo

goalaleo commented Jan 28, 2020

Copy link
Copy Markdown

Thanks for the explanation @ryanolsonx and no offence taken :) I'm just starting to learn vim and misunderstood the docs (didn't realise that defaults.vim is not loaded if .vimrc is found)!

@aiformds

Copy link
Copy Markdown

For beginners, maybe split the last setting into its parts to be more explicit? Or not, no strong feelings here.

" Enable file type detection and do language-dependent indenting.
filetype plugin on
filetype indent on

@vvznz

vvznz commented Sep 25, 2021

Copy link
Copy Markdown

@ryanolsonx Thanks for the elaboration. Just letting you know that your link is broken. I started to learn (or rather re-learn) Vim again and want to do it this time from scratch.

@ryanolsonx

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment