site/wiki/vimrc.html

33 lines
1.5 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>.vimrc file</title>
<link rel="stylesheet" href="/style.css">
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<a href="/wiki/">&lt; back to wiki home</a>
<header>
<h1 class="title">.vimrc file</h1>
</header>
<p>The file <code>.vimrc</code> in your home directory has instructions for [[vim]] to load every time it runs. Customizations go there.</p>
<p>For instance, you might want to use [[Markdown]] to edit files that end in <code>.md</code>. The system default for some reason is to treat these as [[Modula-2]] files, though we dont have a Modula-2 compiler running (yet). So the contents of <code>.vimrc</code> should read</p>
<p><code>au BufRead,BufNewFile *.md set filetype=markdown</code></p>
<p>For more suggestions in deep depth on how to set up your <code>.vimrc</code> please read <a href="http://dougblack.io/words/a-good-vimrc.html">this tutorial from Doug Black</a>.</p>
</body>
</html>