-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.xml
153 lines (110 loc) · 8.64 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Recent Content on Robert Ekendahl's web presence </title>
<generator uri="https://hugo.spf13.com">Hugo</generator>
<link>http://rekendahl.github.io/index.xml</link>
<updated>Sun, 06 Jul 2014 00:00:00 UTC</updated>
<item>
<title>Installing python3 support for VIM 7.4</title>
<link>http://rekendahl.github.io/posts/vim74-python3</link>
<pubDate>Sun, 06 Jul 2014 00:00:00 UTC</pubDate>
<guid>http://rekendahl.github.io/posts/vim74-python3</guid>
<description>
<h1 id="toc_0">VIM and Python3</h1>
<p>I&rsquo;ve been lucky enough to learn <a href="http://www.python.org">Python</a> at work recently. It is
quickly become my favorite language! Since we&rsquo;re starting a new exploratory
project at work we decided to work with python3. It&rsquo;s the right decision
<strong>but</strong> unfortunately VIM still lacks great plug-ins that &ldquo;just work&rdquo; with
python3.</p>
<p>I&rsquo;m currently using <a href="https://github.com/klen/python-mode">python-mode</a> which is <em>ok</em> but I&rsquo;m considering
testing out <a href="https://github.com/davidhalter/jedi-vim">jedi-vim</a> which seem like a more interesting alternative.</p>
<p>I&rsquo;ve learned that both these plug-ins do support python3 but they both require
<a href="http://www.vim.org">vim</a> to be installed with <code>+python3</code> to support it. I&rsquo;ve had some issue
getting this to work but here are the instructions for the different OS&rsquo; I need
to work in.</p>
<h1 id="toc_1">MAC:</h1>
<p>OS-X turned out to be easy (there is a reason it&rsquo;s my preferd OS), yet it still
took me awhile to figure out! I use [homebrew][brew] and <a href="https://github.com/b4winckler/macvim">macvim</a> and
after I finally looked <em>inside</em> the <a href="https://github.com/Homebrew/homebrew/blob/master/Library/Formula/macvim.rb">homebrew <em>formula</em></a> I managed to
figure out the switch (see below). As a side not I also learned you can <code>brew
options &lt;formula&gt;</code> to see available switches.</p>
<p>So to get python 2 &amp; 3 support for <a href="https://github.com/b4winckler/macvim">macvim</a> using [brew] I simply did:</p>
<pre><code>brew install macvim -override-system-vim -with-python3
</code></pre>
<p>That&rsquo;s it! With that I show &ldquo;dynamic&rdquo; support (<code>+python/dyn</code> &amp;
<code>+python3/dyn</code>) for both Python 2 &amp; 3 when I do <code>mvim --version</code> or
<code>:version</code> from inside <a href="https://github.com/b4winckler/macvim">macvim</a> in normal mode. Hopefully this will make python
mode work even better with my python3 files.</p>
<p>While I was at it I also reinstalled <a href="http://www.vim.org">vim</a> with:</p>
<pre><code>brew install vim --override-system-vi --with-python3
</code></pre>
<p>Which gave me this warning: <code>Your PYTHONPATH points to a site-packages dir for
Python 2.x but you are running Python 3.x!</code> but still worked and shows
<code>+python3/dyn</code>. I use vim less frequently on mac but hopefully it&rsquo;s working!</p>
<h1 id="toc_2">Next steps&hellip;</h1>
<p>I also need to get python3 support for <a href="http://www.vim.org">vim</a> under [cygwin]. I will update this
page if I figure out how to do that. I think it will require me to build from
source.</p>
</description>
</item>
<item>
<title>A new home</title>
<link>http://rekendahl.github.io/posts/first</link>
<pubDate>Fri, 04 Jul 2014 00:00:00 UTC</pubDate>
<guid>http://rekendahl.github.io/posts/first</guid>
<description>
<h1 id="toc_0">A new home</h1>
<p>I have decided to host my domain through <a href="https://pages.github.com">GitHub Pages</a> using
<a href="http://hugo.spf13.com">Hugo</a>. Hopefully it will give me a good environment for quick blog posts
on technical stuff I find interesting at work. This post will details what I
had to do to make it all work (hopefully not too much).</p>
<p>I decided to use <a href="http://hugo.spf13.com">Hugo</a> mostly because I <em>love</em> the <a href="http://vim.spf13.com">spf13 Vim
distribution</a>. I love it so much, in fact, that I decided to create
fork it into <a href="https://github.com/rekendahl/vimeda">vimeda</a> with a focus on Electronic Design Automation
languages. More on that later. When I found that the same author had created a
fast, static website generator using <a href="http://daringfireball.net/projects/markdown">markdown</a> I know I had to try it.</p>
<p>The clincher was when I found <a href="http://hugo.spf13.com/tutorials/github_pages_blog">some
instructions</a> for how to use
<a href="http://hugo.spf13.com">Hugo</a> with the free <a href="https://pages.github.com">GitHub pages</a> service.</p>
<p>After some reading I realized I should start with installing <a href="http://hugo.spf13.com">Hugo</a> and
<a href="http://pygments.org">pygments</a></p>
<h2 id="toc_1">Installing Hugo:</h2>
<p>Download <a href="https://github.com/spf13/hugo/releases">latest version</a>(<code>v0.11</code>) of
<a href="http://hugo.spf13.com">Hugo</a>, uzip to <code>/usr/local/bin</code> on my macbook.</p>
<pre><code>cd ~/Downloads/
mv hugo_0.11_darwin_amd64 /usr/local/bin/.
ln -s /usr/local/bin/hugo_0.11_darwin_amd64 /usr/local/bin/hugo
</code></pre>
<p>That was easy and it works!</p>
<h2 id="toc_2">Installing <a href="http://pygments.org">Pygments</a></h2>
<pre><code>╭─ekendahl@Roberts-Retina-Macbook ~
╰─$ sudo pip install Pygments 1 ↵
</code></pre>
<p>Forgot the <code>sudo</code> the first time but otherwise even easier&hellip;</p>
<h2 id="toc_3">Test build&hellip;</h2>
<pre><code>cd ~/Projects/rekendahl.github.io/
hugo server --watch
</code></pre>
<p>Open safari to <a href="http://localhost:1313">http://localhost:1313</a>. The cool thing is that after each save the page automatically reloads. <strong>Nice!</strong></p>
<p>Once the pages looks satisfactory then <code>ctrl+c</code> the hugo server and:</p>
<ol>
<li><code>hugo</code></li>
<li><code>git add -A</code></li>
<li><code>git commit -m &quot;&lt;something descriptive&gt;&quot;</code></li>
<li><code>git push</code></li>
</ol>
<h1 id="toc_4">Launch GitHub Pages lessons:</h1>
<ul>
<li>Make sure <code>baseurl</code> in <code>config.yaml</code> is correct (i.e <code>rekendahl.github.io</code>) or the page won&rsquo;t work.</li>
<li>If you do this for a personal page and not project page then you need to push to master and push
to &lsquo;root&rsquo;. So update <code>config.yaml</code> to read <code>publishdir: &quot;.&quot;</code></li>
</ul>
<p>That&rsquo;s about it. So far <em>Hugo</em> seems fast and easy to use. I&rsquo;m really just
looking for the ability to write articles of the daily engineering work I do
and this should allow me to do that.</p>
<p>Next step is to go through setting up a cheap DNS service but that is another post&hellip;</p>
</description>
</item>
</channel>
</rss>