Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Site updated at 2013-01-18 07:23:11 UTC

  • Loading branch information...
commit 0b16a47bdb9effd35cd57a461134fa6e61577a4e 1 parent dcbb119
Phil Dobbin authored
65 atom.xml
... ... @@ -1,16 +1,75 @@
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <feed xmlns="http://www.w3.org/2005/Atom">
3 3
4   - <title><![CDATA[My Octopress Blog]]></title>
  4 + <title><![CDATA[Sudoers-d]]></title>
5 5 <link href="http://phildobbin.github.com/atom.xml" rel="self"/>
6 6 <link href="http://phildobbin.github.com/"/>
7   - <updated>2013-01-18T06:02:17+00:00</updated>
  7 + <updated>2013-01-18T07:22:57+00:00</updated>
8 8 <id>http://phildobbin.github.com/</id>
9 9 <author>
10   - <name><![CDATA[Your Name]]></name>
  10 + <name><![CDATA[Phil Dobbin]]></name>
11 11
12 12 </author>
13 13 <generator uri="http://octopress.org/">Octopress</generator>
14 14
15 15
  16 + <entry>
  17 + <title type="html"><![CDATA[Installing Vim on CentOS 6.3]]></title>
  18 + <link href="http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/"/>
  19 + <updated>2013-01-18T06:11:00+00:00</updated>
  20 + <id>http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3</id>
  21 + <content type="html"><![CDATA[<p>CentOS, even at version 6.3, comes with a very old version of vim: 7.2.411. Whilst this maybe sufficient for most every day tasks, when you carry your $VIMRUNTIME around with you like I do [1], it&#8217;s irritating to call a familiar mapping only to have something like an E117 error thrown because your vim version is only 7.2. Vim 7.3 added some great new stuff. There&#8217;s no point in not using it.</p>
  22 +
  23 +<p>So, first of all, we need to grab the sources from Mercurial. Vim is stored in the Google code repos &amp; to get it we need have have Mercurial installed. If you haven&#8217;t got it already, you can use yum to install it:</p>
  24 +
  25 +<p><code>$ sudo yum install mercurial</code></p>
  26 +
  27 +<p>After that cd to your build directory (in my case ~/Downloads/build) &amp; run this in your terminal:</p>
  28 +
  29 +<p><code>$ hg clone https://vim.googlecode.com/hg/ vim</code></p>
  30 +
  31 +<p>Now we need to install our toolbox:</p>
  32 +
  33 +<p>` $ sudo yum groupinstall &#8216;Development Tools&#8217;</p>
  34 +
  35 +<p>This will give us gcc, bison, flex plus a lot of other stuff we need to build vim. I always build vim +huge +perl +ruby +python. CentOS 6.3 comes with perl 5.10 &amp; python 2.6.6 already installed. So we need to install ruby:</p>
  36 +
  37 +<p><code>$ sudo yum install ruby</code></p>
  38 +
  39 +<p>This will install ruby-1.8.7-p362 which is itself pretty old by now &amp; not recommended for production use anymore in something like Ruby on Rails but for our purposes, it&#8217;ll do fine.</p>
  40 +
  41 +<p>Now we need the header files for the build so we run this command:</p>
  42 +
  43 +<p><code>$ sudo yum install perl-devel python-devel ruby-devel</code></p>
  44 +
  45 +<p>which will give us the requisite header files for our build.</p>
  46 +
  47 +<p>Two more dependencies are needed or configure will throw an error &amp; if you proceed, make will fail. These are:</p>
  48 +
  49 +<p><code>$ sudo yum install perl-ExtUtils-Embed ncurses-devel</code></p>
  50 +
  51 +<p>So now we&#8217;re ready to go. Cd to the build directory (in my case ~/Downloads/build/vim) &amp; run configure:</p>
  52 +
  53 +<p><code>$ ./configure --with-features=huge --enable-perlinterp --enable-rubyinterp --enable-pythoninterp</code></p>
  54 +
  55 +<p>Let configure do its thing &amp; then go back through stdout &amp; check all was OK. If you&#8217;ve got a standard install of everything via yum, configure should&#8217;ve found everything without too much trouble.</p>
  56 +
  57 +<p>Now run <code>make</code>. After a short while, if all&#8217;s well &amp; no errors are written to stdout by make, we&#8217;re ready to install. The default target for the install is /usr/local (if you don&#8217;t have root on the box, pass the relevant flag to configure before you start to direct to your $HOME/) so we issue this command:</p>
  58 +
  59 +<p><code>$ sudo make install</code></p>
  60 +
  61 +<p>So finally call:</p>
  62 +
  63 +<p><code>$ type vim</code></p>
  64 +
  65 +<p>&amp; it should return:</p>
  66 +
  67 +<p><code>$ vim is hashed (/usr/local/bin/vim)</code></p>
  68 +
  69 +<p>At the time of writing, passing <code>$ vim --version</code> gives me <code>vim 7.3.762</code></p>
  70 +
  71 +<p>which is a hell of a lot more useful than 7.2.411&#8230;</p>
  72 +]]></content>
  73 + </entry>
  74 +
16 75 </feed>
299 blog/2013/01/18/installing-vim-on-centos-6-dot-3/index.html
... ... @@ -0,0 +1,299 @@
  1 +
  2 +<!DOCTYPE html>
  3 +<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
  4 +<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
  5 +<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
  6 +<head>
  7 + <meta charset="utf-8">
  8 + <title>Installing Vim on CentOS 6.3 - Sudoers-d</title>
  9 + <meta name="author" content="Phil Dobbin">
  10 +
  11 +
  12 + <meta name="description" content="CentOS, even at version 6.3, comes with a very old version of vim: 7.2.411. Whilst this maybe sufficient for most every day tasks, when you carry &hellip;">
  13 +
  14 +
  15 + <!-- http://t.co/dKP3o1e -->
  16 + <meta name="HandheldFriendly" content="True">
  17 + <meta name="MobileOptimized" content="320">
  18 + <meta name="viewport" content="width=device-width, initial-scale=1">
  19 +
  20 +
  21 + <link rel="canonical" href="http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">
  22 + <link href="/favicon.png" rel="icon">
  23 + <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
  24 + <script src="/javascripts/modernizr-2.0.js"></script>
  25 + <script src="/javascripts/ender.js"></script>
  26 + <script src="/javascripts/octopress.js" type="text/javascript"></script>
  27 + <link href="/atom.xml" rel="alternate" title="Sudoers-d" type="application/atom+xml">
  28 + <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
  29 +<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
  30 +<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
  31 +
  32 +
  33 +
  34 +</head>
  35 +
  36 +<body >
  37 + <header role="banner"><hgroup>
  38 + <h1><a href="/">Sudoers-d</a></h1>
  39 +
  40 + <h2>A system administartion journal</h2>
  41 +
  42 +</hgroup>
  43 +
  44 +</header>
  45 + <nav role="navigation"><ul class="subscription" data-subscription="rss">
  46 + <li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
  47 +
  48 +</ul>
  49 +
  50 +<form action="http://google.com/search" method="get">
  51 + <fieldset role="search">
  52 + <input type="hidden" name="q" value="site:phildobbin.github.com" />
  53 + <input class="search" type="text" name="q" results="0" placeholder="Search"/>
  54 + </fieldset>
  55 +</form>
  56 +
  57 +<ul class="main-navigation">
  58 + <li><a href="/">Blog</a></li>
  59 + <li><a href="/blog/archives">Archives</a></li>
  60 +</ul>
  61 +
  62 +</nav>
  63 + <div id="main">
  64 + <div id="content">
  65 + <div>
  66 +<article class="hentry" role="article">
  67 +
  68 + <header>
  69 +
  70 + <h1 class="entry-title">Installing Vim on CentOS 6.3</h1>
  71 +
  72 +
  73 + <p class="meta">
  74 +
  75 +
  76 +
  77 +
  78 +
  79 +
  80 +
  81 +
  82 +
  83 +
  84 +
  85 +
  86 +<time datetime="2013-01-18T06:11:00+00:00" pubdate data-updated="true">Jan 18<span>th</span>, 2013</time>
  87 +
  88 + </p>
  89 +
  90 + </header>
  91 +
  92 +
  93 +<div class="entry-content"><p>CentOS, even at version 6.3, comes with a very old version of vim: 7.2.411. Whilst this maybe sufficient for most every day tasks, when you carry your $VIMRUNTIME around with you like I do [1], it&#8217;s irritating to call a familiar mapping only to have something like an E117 error thrown because your vim version is only 7.2. Vim 7.3 added some great new stuff. There&#8217;s no point in not using it.</p>
  94 +
  95 +<p>So, first of all, we need to grab the sources from Mercurial. Vim is stored in the Google code repos &amp; to get it we need have have Mercurial installed. If you haven&#8217;t got it already, you can use yum to install it:</p>
  96 +
  97 +<p><code>$ sudo yum install mercurial</code></p>
  98 +
  99 +<p>After that cd to your build directory (in my case ~/Downloads/build) &amp; run this in your terminal:</p>
  100 +
  101 +<p><code>$ hg clone https://vim.googlecode.com/hg/ vim</code></p>
  102 +
  103 +<p>Now we need to install our toolbox:</p>
  104 +
  105 +<p>` $ sudo yum groupinstall &#8216;Development Tools&#8217;</p>
  106 +
  107 +<p>This will give us gcc, bison, flex plus a lot of other stuff we need to build vim. I always build vim +huge +perl +ruby +python. CentOS 6.3 comes with perl 5.10 &amp; python 2.6.6 already installed. So we need to install ruby:</p>
  108 +
  109 +<p><code>$ sudo yum install ruby</code></p>
  110 +
  111 +<p>This will install ruby-1.8.7-p362 which is itself pretty old by now &amp; not recommended for production use anymore in something like Ruby on Rails but for our purposes, it&#8217;ll do fine.</p>
  112 +
  113 +<p>Now we need the header files for the build so we run this command:</p>
  114 +
  115 +<p><code>$ sudo yum install perl-devel python-devel ruby-devel</code></p>
  116 +
  117 +<p>which will give us the requisite header files for our build.</p>
  118 +
  119 +<p>Two more dependencies are needed or configure will throw an error &amp; if you proceed, make will fail. These are:</p>
  120 +
  121 +<p><code>$ sudo yum install perl-ExtUtils-Embed ncurses-devel</code></p>
  122 +
  123 +<p>So now we&#8217;re ready to go. Cd to the build directory (in my case ~/Downloads/build/vim) &amp; run configure:</p>
  124 +
  125 +<p><code>$ ./configure --with-features=huge --enable-perlinterp --enable-rubyinterp --enable-pythoninterp</code></p>
  126 +
  127 +<p>Let configure do its thing &amp; then go back through stdout &amp; check all was OK. If you&#8217;ve got a standard install of everything via yum, configure should&#8217;ve found everything without too much trouble.</p>
  128 +
  129 +<p>Now run <code>make</code>. After a short while, if all&#8217;s well &amp; no errors are written to stdout by make, we&#8217;re ready to install. The default target for the install is /usr/local (if you don&#8217;t have root on the box, pass the relevant flag to configure before you start to direct to your $HOME/) so we issue this command:</p>
  130 +
  131 +<p><code>$ sudo make install</code></p>
  132 +
  133 +<p>So finally call:</p>
  134 +
  135 +<p><code>$ type vim</code></p>
  136 +
  137 +<p>&amp; it should return:</p>
  138 +
  139 +<p><code>$ vim is hashed (/usr/local/bin/vim)</code></p>
  140 +
  141 +<p>At the time of writing, passing <code>$ vim --version</code> gives me <code>vim 7.3.762</code></p>
  142 +
  143 +<p>which is a hell of a lot more useful than 7.2.411&#8230;</p>
  144 +</div>
  145 +
  146 +
  147 + <footer>
  148 + <p class="meta">
  149 +
  150 +
  151 +
  152 +<span class="byline author vcard">Posted by <span class="fn">Phil Dobbin</span></span>
  153 +
  154 +
  155 +
  156 +
  157 +
  158 +
  159 +
  160 +
  161 +
  162 +
  163 +
  164 +
  165 +
  166 +<time datetime="2013-01-18T06:11:00+00:00" pubdate data-updated="true">Jan 18<span>th</span>, 2013</time>
  167 +
  168 +
  169 +
  170 + </p>
  171 +
  172 + <div class="sharing">
  173 +
  174 + <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/" data-via="sudoersd" data-counturl="http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/" >Tweet</a>
  175 +
  176 +
  177 +
  178 + <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
  179 +
  180 +</div>
  181 +
  182 +
  183 + <p class="meta">
  184 +
  185 +
  186 + </p>
  187 + </footer>
  188 +</article>
  189 +
  190 +</div>
  191 +
  192 +<aside class="sidebar">
  193 +
  194 + <section>
  195 + <h1>Recent Posts</h1>
  196 + <ul id="recent_posts">
  197 +
  198 + <li class="post">
  199 + <a href="/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">Installing Vim on CentOS 6.3</a>
  200 + </li>
  201 +
  202 + </ul>
  203 +</section>
  204 +
  205 +<section>
  206 + <h1>GitHub Repos</h1>
  207 + <ul id="gh_repos">
  208 + <li class="loading">Status updating...</li>
  209 + </ul>
  210 +
  211 + <a href="https://github.com/horse-latitudes">@horse-latitudes</a> on GitHub
  212 +
  213 + <script type="text/javascript">
  214 + $.domReady(function(){
  215 + if (!window.jXHR){
  216 + var jxhr = document.createElement('script');
  217 + jxhr.type = 'text/javascript';
  218 + jxhr.src = '/javascripts/libs/jXHR.js';
  219 + var s = document.getElementsByTagName('script')[0];
  220 + s.parentNode.insertBefore(jxhr, s);
  221 + }
  222 +
  223 + github.showRepos({
  224 + user: 'horse-latitudes',
  225 + count: 0,
  226 + skip_forks: true,
  227 + target: '#gh_repos'
  228 + });
  229 + });
  230 + </script>
  231 + <script src="/javascripts/github.js" type="text/javascript"> </script>
  232 +</section>
  233 +
  234 +
  235 +<section>
  236 + <h1>Latest Tweets</h1>
  237 + <ul id="tweets">
  238 + <li class="loading">Status updating...</li>
  239 + </ul>
  240 + <script type="text/javascript">
  241 + $.domReady(function(){
  242 + getTwitterFeed("sudoersd", 4, false);
  243 + });
  244 + </script>
  245 + <script src="/javascripts/twitter.js" type="text/javascript"> </script>
  246 +
  247 + <a href="http://twitter.com/sudoersd" class="twitter-follow-button" data-show-count="false">Follow @sudoersd</a>
  248 +
  249 +</section>
  250 +
  251 +
  252 +
  253 +
  254 +
  255 +
  256 +</aside>
  257 +
  258 +
  259 + </div>
  260 + </div>
  261 + <footer role="contentinfo"><p>
  262 + Copyright &copy; 2013 - Phil Dobbin -
  263 + <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
  264 +</p>
  265 +
  266 +</footer>
  267 +
  268 +
  269 +
  270 +
  271 +<div id="fb-root"></div>
  272 +<script>(function(d, s, id) {
  273 + var js, fjs = d.getElementsByTagName(s)[0];
  274 + if (d.getElementById(id)) {return;}
  275 + js = d.createElement(s); js.id = id;
  276 + js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
  277 + fjs.parentNode.insertBefore(js, fjs);
  278 +}(document, 'script', 'facebook-jssdk'));</script>
  279 +
  280 +
  281 +
  282 +
  283 +
  284 + <script type="text/javascript">
  285 + (function(){
  286 + var twitterWidgets = document.createElement('script');
  287 + twitterWidgets.type = 'text/javascript';
  288 + twitterWidgets.async = true;
  289 + twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
  290 + document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
  291 + })();
  292 + </script>
  293 +
  294 +
  295 +
  296 +
  297 +
  298 +</body>
  299 +</html>
86 blog/archives/index.html
@@ -5,11 +5,12 @@
5 5 <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
6 6 <head>
7 7 <meta charset="utf-8">
8   - <title>Blog Archive - My Octopress Blog</title>
9   - <meta name="author" content="Your Name">
  8 + <title>Blog Archive - Sudoers-d</title>
  9 + <meta name="author" content="Phil Dobbin">
10 10
11 11
12   - <meta name="description" content=" Blog Archive Recent Posts ">
  12 + <meta name="description" content="Blog Archive 2013 Installing Vim on CentOS 6.3
  13 +Jan 18 2013 Recent Posts Installing Vim on CentOS 6.3 GitHub Repos Status updating... @horse- &hellip;">
13 14
14 15
15 16 <!-- http://t.co/dKP3o1e -->
@@ -24,7 +25,7 @@
24 25 <script src="/javascripts/modernizr-2.0.js"></script>
25 26 <script src="/javascripts/ender.js"></script>
26 27 <script src="/javascripts/octopress.js" type="text/javascript"></script>
27   - <link href="/atom.xml" rel="alternate" title="My Octopress Blog" type="application/atom+xml">
  28 + <link href="/atom.xml" rel="alternate" title="Sudoers-d" type="application/atom+xml">
28 29 <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
29 30 <link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
30 31 <link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
@@ -35,9 +36,9 @@
35 36
36 37 <body >
37 38 <header role="banner"><hgroup>
38   - <h1><a href="/">My Octopress Blog</a></h1>
  39 + <h1><a href="/">Sudoers-d</a></h1>
39 40
40   - <h2>A blogging framework for hackers.</h2>
  41 + <h2>A system administartion journal</h2>
41 42
42 43 </hgroup>
43 44
@@ -72,6 +73,19 @@ <h1 class="entry-title">Blog Archive</h1>
72 73
73 74 <div id="blog-archives">
74 75
  76 +
  77 +
  78 +
  79 + <h2>2013</h2>
  80 +
  81 +<article>
  82 +
  83 +<h1><a href="/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">Installing Vim on CentOS 6.3</a></h1>
  84 +<time datetime="2013-01-18T06:11:00+00:00" pubdate><span class='month'>Jan</span> <span class='day'>18</span> <span class='year'>2013</span></time>
  85 +
  86 +
  87 +</article>
  88 +
75 89 </div>
76 90
77 91
@@ -85,9 +99,58 @@ <h1 class="entry-title">Blog Archive</h1>
85 99 <h1>Recent Posts</h1>
86 100 <ul id="recent_posts">
87 101
  102 + <li class="post">
  103 + <a href="/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">Installing Vim on CentOS 6.3</a>
  104 + </li>
  105 +
88 106 </ul>
89 107 </section>
90 108
  109 +<section>
  110 + <h1>GitHub Repos</h1>
  111 + <ul id="gh_repos">
  112 + <li class="loading">Status updating...</li>
  113 + </ul>
  114 +
  115 + <a href="https://github.com/horse-latitudes">@horse-latitudes</a> on GitHub
  116 +
  117 + <script type="text/javascript">
  118 + $.domReady(function(){
  119 + if (!window.jXHR){
  120 + var jxhr = document.createElement('script');
  121 + jxhr.type = 'text/javascript';
  122 + jxhr.src = '/javascripts/libs/jXHR.js';
  123 + var s = document.getElementsByTagName('script')[0];
  124 + s.parentNode.insertBefore(jxhr, s);
  125 + }
  126 +
  127 + github.showRepos({
  128 + user: 'horse-latitudes',
  129 + count: 0,
  130 + skip_forks: true,
  131 + target: '#gh_repos'
  132 + });
  133 + });
  134 + </script>
  135 + <script src="/javascripts/github.js" type="text/javascript"> </script>
  136 +</section>
  137 +
  138 +
  139 +<section>
  140 + <h1>Latest Tweets</h1>
  141 + <ul id="tweets">
  142 + <li class="loading">Status updating...</li>
  143 + </ul>
  144 + <script type="text/javascript">
  145 + $.domReady(function(){
  146 + getTwitterFeed("sudoersd", 4, false);
  147 + });
  148 + </script>
  149 + <script src="/javascripts/twitter.js" type="text/javascript"> </script>
  150 +
  151 + <a href="http://twitter.com/sudoersd" class="twitter-follow-button" data-show-count="false">Follow @sudoersd</a>
  152 +
  153 +</section>
91 154
92 155
93 156
@@ -100,7 +163,7 @@ <h1 class="entry-title">Blog Archive</h1>
100 163 </div>
101 164 </div>
102 165 <footer role="contentinfo"><p>
103   - Copyright &copy; 2013 - Your Name -
  166 + Copyright &copy; 2013 - Phil Dobbin -
104 167 <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
105 168 </p>
106 169
@@ -109,6 +172,15 @@ <h1 class="entry-title">Blog Archive</h1>
109 172
110 173
111 174
  175 +<div id="fb-root"></div>
  176 +<script>(function(d, s, id) {
  177 + var js, fjs = d.getElementsByTagName(s)[0];
  178 + if (d.getElementById(id)) {return;}
  179 + js = d.createElement(s); js.id = id;
  180 + js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
  181 + fjs.parentNode.insertBefore(js, fjs);
  182 +}(document, 'script', 'facebook-jssdk'));</script>
  183 +
112 184
113 185
114 186
158 index.html
@@ -5,11 +5,11 @@
5 5 <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
6 6 <head>
7 7 <meta charset="utf-8">
8   - <title>My Octopress Blog</title>
9   - <meta name="author" content="Your Name">
  8 + <title>Sudoers-d</title>
  9 + <meta name="author" content="Phil Dobbin">
10 10
11 11
12   - <meta name="description" content=" Blog Archives Recent Posts ">
  12 + <meta name="description" content="CentOS, even at version 6.3, comes with a very old version of vim: 7.2.411. Whilst this maybe sufficient for most every day tasks, when you carry &hellip;">
13 13
14 14
15 15 <!-- http://t.co/dKP3o1e -->
@@ -24,7 +24,7 @@
24 24 <script src="/javascripts/modernizr-2.0.js"></script>
25 25 <script src="/javascripts/ender.js"></script>
26 26 <script src="/javascripts/octopress.js" type="text/javascript"></script>
27   - <link href="/atom.xml" rel="alternate" title="My Octopress Blog" type="application/atom+xml">
  27 + <link href="/atom.xml" rel="alternate" title="Sudoers-d" type="application/atom+xml">
28 28 <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
29 29 <link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
30 30 <link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
@@ -35,9 +35,9 @@
35 35
36 36 <body >
37 37 <header role="banner"><hgroup>
38   - <h1><a href="/">My Octopress Blog</a></h1>
  38 + <h1><a href="/">Sudoers-d</a></h1>
39 39
40   - <h2>A blogging framework for hackers.</h2>
  40 + <h2>A system administartion journal</h2>
41 41
42 42 </hgroup>
43 43
@@ -65,6 +65,92 @@
65 65 <div class="blog-index">
66 66
67 67
  68 +
  69 + <article>
  70 +
  71 + <header>
  72 +
  73 + <h1 class="entry-title"><a href="/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">Installing Vim on CentOS 6.3</a></h1>
  74 +
  75 +
  76 + <p class="meta">
  77 +
  78 +
  79 +
  80 +
  81 +
  82 +
  83 +
  84 +
  85 +
  86 +
  87 +
  88 +
  89 +<time datetime="2013-01-18T06:11:00+00:00" pubdate data-updated="true">Jan 18<span>th</span>, 2013</time>
  90 +
  91 + </p>
  92 +
  93 + </header>
  94 +
  95 +
  96 + <div class="entry-content"><p>CentOS, even at version 6.3, comes with a very old version of vim: 7.2.411. Whilst this maybe sufficient for most every day tasks, when you carry your $VIMRUNTIME around with you like I do [1], it&#8217;s irritating to call a familiar mapping only to have something like an E117 error thrown because your vim version is only 7.2. Vim 7.3 added some great new stuff. There&#8217;s no point in not using it.</p>
  97 +
  98 +<p>So, first of all, we need to grab the sources from Mercurial. Vim is stored in the Google code repos &amp; to get it we need have have Mercurial installed. If you haven&#8217;t got it already, you can use yum to install it:</p>
  99 +
  100 +<p><code>$ sudo yum install mercurial</code></p>
  101 +
  102 +<p>After that cd to your build directory (in my case ~/Downloads/build) &amp; run this in your terminal:</p>
  103 +
  104 +<p><code>$ hg clone https://vim.googlecode.com/hg/ vim</code></p>
  105 +
  106 +<p>Now we need to install our toolbox:</p>
  107 +
  108 +<p>` $ sudo yum groupinstall &#8216;Development Tools&#8217;</p>
  109 +
  110 +<p>This will give us gcc, bison, flex plus a lot of other stuff we need to build vim. I always build vim +huge +perl +ruby +python. CentOS 6.3 comes with perl 5.10 &amp; python 2.6.6 already installed. So we need to install ruby:</p>
  111 +
  112 +<p><code>$ sudo yum install ruby</code></p>
  113 +
  114 +<p>This will install ruby-1.8.7-p362 which is itself pretty old by now &amp; not recommended for production use anymore in something like Ruby on Rails but for our purposes, it&#8217;ll do fine.</p>
  115 +
  116 +<p>Now we need the header files for the build so we run this command:</p>
  117 +
  118 +<p><code>$ sudo yum install perl-devel python-devel ruby-devel</code></p>
  119 +
  120 +<p>which will give us the requisite header files for our build.</p>
  121 +
  122 +<p>Two more dependencies are needed or configure will throw an error &amp; if you proceed, make will fail. These are:</p>
  123 +
  124 +<p><code>$ sudo yum install perl-ExtUtils-Embed ncurses-devel</code></p>
  125 +
  126 +<p>So now we&#8217;re ready to go. Cd to the build directory (in my case ~/Downloads/build/vim) &amp; run configure:</p>
  127 +
  128 +<p><code>$ ./configure --with-features=huge --enable-perlinterp --enable-rubyinterp --enable-pythoninterp</code></p>
  129 +
  130 +<p>Let configure do its thing &amp; then go back through stdout &amp; check all was OK. If you&#8217;ve got a standard install of everything via yum, configure should&#8217;ve found everything without too much trouble.</p>
  131 +
  132 +<p>Now run <code>make</code>. After a short while, if all&#8217;s well &amp; no errors are written to stdout by make, we&#8217;re ready to install. The default target for the install is /usr/local (if you don&#8217;t have root on the box, pass the relevant flag to configure before you start to direct to your $HOME/) so we issue this command:</p>
  133 +
  134 +<p><code>$ sudo make install</code></p>
  135 +
  136 +<p>So finally call:</p>
  137 +
  138 +<p><code>$ type vim</code></p>
  139 +
  140 +<p>&amp; it should return:</p>
  141 +
  142 +<p><code>$ vim is hashed (/usr/local/bin/vim)</code></p>
  143 +
  144 +<p>At the time of writing, passing <code>$ vim --version</code> gives me <code>vim 7.3.762</code></p>
  145 +
  146 +<p>which is a hell of a lot more useful than 7.2.411&#8230;</p>
  147 +</div>
  148 +
  149 +
  150 +
  151 +
  152 + </article>
  153 +
68 154 <div class="pagination">
69 155
70 156 <a href="/blog/archives">Blog Archives</a>
@@ -77,9 +163,58 @@
77 163 <h1>Recent Posts</h1>
78 164 <ul id="recent_posts">
79 165
  166 + <li class="post">
  167 + <a href="/blog/2013/01/18/installing-vim-on-centos-6-dot-3/">Installing Vim on CentOS 6.3</a>
  168 + </li>
  169 +
80 170 </ul>
81 171 </section>
82 172
  173 +<section>
  174 + <h1>GitHub Repos</h1>
  175 + <ul id="gh_repos">
  176 + <li class="loading">Status updating&#8230;</li>
  177 + </ul>
  178 +
  179 + <a href="https://github.com/horse-latitudes">@horse-latitudes</a> on GitHub
  180 +
  181 + <script type="text/javascript">
  182 + $.domReady(function(){
  183 + if (!window.jXHR){
  184 + var jxhr = document.createElement('script');
  185 + jxhr.type = 'text/javascript';
  186 + jxhr.src = '/javascripts/libs/jXHR.js';
  187 + var s = document.getElementsByTagName('script')[0];
  188 + s.parentNode.insertBefore(jxhr, s);
  189 + }
  190 +
  191 + github.showRepos({
  192 + user: 'horse-latitudes',
  193 + count: 0,
  194 + skip_forks: true,
  195 + target: '#gh_repos'
  196 + });
  197 + });
  198 + </script>
  199 + <script src="/javascripts/github.js" type="text/javascript"> </script>
  200 +</section>
  201 +
  202 +
  203 +<section>
  204 + <h1>Latest Tweets</h1>
  205 + <ul id="tweets">
  206 + <li class="loading">Status updating&#8230;</li>
  207 + </ul>
  208 + <script type="text/javascript">
  209 + $.domReady(function(){
  210 + getTwitterFeed("sudoersd", 4, false);
  211 + });
  212 + </script>
  213 + <script src="/javascripts/twitter.js" type="text/javascript"> </script>
  214 +
  215 + <a href="http://twitter.com/sudoersd" class="twitter-follow-button" data-show-count="false">Follow @sudoersd</a>
  216 +
  217 +</section>
83 218
84 219
85 220
@@ -91,7 +226,7 @@
91 226 </div>
92 227 </div>
93 228 <footer role="contentinfo"><p>
94   - Copyright &copy; 2013 - Your Name -
  229 + Copyright &copy; 2013 - Phil Dobbin -
95 230 <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
96 231 </p>
97 232
@@ -100,6 +235,15 @@
100 235
101 236
102 237
  238 +<div id="fb-root"></div>
  239 +<script>(function(d, s, id) {
  240 + var js, fjs = d.getElementsByTagName(s)[0];
  241 + if (d.getElementById(id)) {return;}
  242 + js = d.createElement(s); js.id = id;
  243 + js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
  244 + fjs.parentNode.insertBefore(js, fjs);
  245 +}(document, 'script', 'facebook-jssdk'));</script>
  246 +
103 247
104 248
105 249
8 sitemap.xml
... ... @@ -1,12 +1,16 @@
1 1 <?xml version='1.0' encoding='UTF-8'?>
2 2 <urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'>
3 3 <url>
  4 + <loc>http://phildobbin.github.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/</loc>
  5 + <lastmod>2013-01-18T06:13:44+00:00</lastmod>
  6 + </url>
  7 + <url>
4 8 <loc>http://phildobbin.github.com/blog/archives/</loc>
5   - <lastmod>2013-01-18T05:59:04+00:00</lastmod>
  9 + <lastmod>2013-01-18T06:13:44+00:00</lastmod>
6 10 </url>
7 11 <url>
8 12 <loc>http://phildobbin.github.com/</loc>
9   - <lastmod>2013-01-18T05:59:04+00:00</lastmod>
  13 + <lastmod>2013-01-18T06:13:44+00:00</lastmod>
10 14 </url>
11 15 <url>
12 16 <loc>http://phildobbin.github.com/robots.txt</loc>

0 comments on commit 0b16a47

Please sign in to comment.
Something went wrong with that request. Please try again.