You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: all.html
+63-15Lines changed: 63 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -635,14 +635,24 @@ <h2>Configuring Vim with a Vimrc file</h2>
635
635
</pre></div>
636
636
637
637
638
+
<p>Here is how these configuration options look with a dark background on
639
+
Mac OS X while editing the markdown for this webpage (how meta!).</p>
640
+
<p><imgsrc="theme/img/vim-dark-bg.jpg" width="100%" alt="Vim with basic configuration options on a dark background." class="technical-diagram" style="border-radius: 5px;"></p>
641
+
<p>Take a look at another example using these configuration options, this time
642
+
with a light background and editing Python code from my
643
+
<ahref="https://github.com/makaimc/choose-your-own-adventure-presentations">Choose Your Own Adventures Presentations</a>
644
+
project.</p>
645
+
<p><imgsrc="theme/img/vim-white-bg.png" width="100%" alt="Vim with basic configuration options on a white background." class="technical-diagram" style="border-radius: 5px; border: 1px solid #999;"></p>
638
646
<p>The Vimrc file lives under the home directory of the user account running
639
647
Vim. For example, when my user account is 'matt', on Mac OS X my Vimrc
640
-
file is found at <code>/Users/matt/.vimrc</code>. On Ubuntu Linux my Vimrc file
641
-
can be found within <code>/home/matt/.vimrc</code>. </p>
642
-
<p>If the Vimrc file does not already exist, just create it within the user's
643
-
home directory and it will be picked up by Vim the next time you start the
644
-
program.</p>
645
-
<h2>General Vim resources</h2>
648
+
file is found at <code>/Users/matt/.vimrc</code>. On Ubuntu Linux my .vimrc file
649
+
can be found within the <code>/home/matt/</code> directory. </p>
650
+
<p>If a Vimrc file does not already exist, just create it within the user's
651
+
home directory and it will be picked up by Vim the next time you open the
652
+
editor.</p>
653
+
<h2>Vim tutorials</h2>
654
+
<p>Vim has a reputation for a difficult learning curve, but it's much easier
655
+
to get started with these tutorials.</p>
646
656
<ul>
647
657
<li>
648
658
<p><ahref="http://vim-adventures.com/">Vim Adventures</a> is a cute, fun browser-based
@@ -659,15 +669,6 @@ <h2>General Vim resources</h2>
659
669
incredibly deep study in how to go from beginner to knowledgeable in Vim.</p>
660
670
</li>
661
671
<li>
662
-
<p><ahref="http://haridas.in/vim-as-your-ide.html">Vim as Your IDE</a> discusses how to
663
-
set up Vim for greater productivity once you learn the initial Vim language
664
-
for using the editor.</p>
665
-
</li>
666
-
<li>
667
-
<p><ahref="http://stackoverflow.com/questions/9172802/setting-up-vim-for-python">Setting up Vim for Python</a>
668
-
has a well written answer on Stack Overflow for getting started with Vim.</p>
669
-
</li>
670
-
<li>
671
672
<p><ahref="http://benmccormick.org/2014/07/02/learning-vim-in-2014-vim-as-language/">Vim as a Language</a>
672
673
explains the language syntax and how you can build up over time to master
673
674
the editor.</p>
@@ -679,7 +680,40 @@ <h2>General Vim resources</h2>
679
680
code editting tool.</p>
680
681
</li>
681
682
</ul>
683
+
<h2>Vim Python IDE bundles and resources</h2>
684
+
<p>Once you get comfortable with Vim as an editor, there are several
685
+
configuration options and plugins you can use to enhance your Python
686
+
productivity. These are the resources and tutorials to read when you're
687
+
ready to take that step.</p>
688
+
<ul>
689
+
<li>
690
+
<p>The <ahref="https://github.com/klen/python-mode">python-mode</a> project is a Vim
691
+
plugin with syntax highlighting, breakpoints, PEP8 linting, code completion
692
+
and many other features you'd expect from an integrated development
693
+
environment.</p>
694
+
</li>
695
+
<li>
696
+
<p><ahref="https://github.com/gmarik/Vundle.vim">Vundle</a> comes highly recommended
697
+
as a plug-in manager for Vim.</p>
698
+
</li>
699
+
<li>
700
+
<p><ahref="http://haridas.in/vim-as-your-ide.html">Vim as Your IDE</a> discusses how to
701
+
set up Vim for greater productivity once you learn the initial Vim language
702
+
for using the editor.</p>
703
+
</li>
704
+
<li>
705
+
<p><ahref="unlogic.co.uk/2013/02/08/vim-as-a-python-ide/">Vim as a Python IDE</a>
706
+
goes through the steps necessary to make Vim into a more comfortable
707
+
environment for Python development.</p>
708
+
</li>
709
+
<li>
710
+
<p><ahref="http://stackoverflow.com/questions/9172802/setting-up-vim-for-python">Setting up Vim for Python</a>
711
+
has a well written answer on Stack Overflow for getting started with Vim.</p>
712
+
</li>
713
+
</ul>
682
714
<h2>Vim installation guides</h2>
715
+
<p>These installation guides will help you get Vim up and running on Mac OS X,
716
+
Linux and Windows.</p>
683
717
<ul>
684
718
<li>
685
719
<p><ahref="http://prioritized.net/blog/upgrading-vim-on-os-x/">Upgrading Vim on OS X</a>
Copy file name to clipboardExpand all lines: source/content/pages/02-learning-programming/05-vim.markdown
+62-13Lines changed: 62 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,18 +79,34 @@ to get a feel for some of the configuration statements:
79
79
let python_highlight_all = 1
80
80
81
81
82
+
Here is how these configuration options look with a dark background on
83
+
Mac OS X while editing the markdown for this webpage (how meta!).
84
+
85
+
<imgsrc="theme/img/vim-dark-bg.jpg"width="100%"alt="Vim with basic configuration options on a dark background."class="technical-diagram"style="border-radius: 5px;">
86
+
87
+
Take a look at another example using these configuration options, this time
88
+
with a light background and editing Python code from my
89
+
[Choose Your Own Adventures Presentations](https://github.com/makaimc/choose-your-own-adventure-presentations)
90
+
project.
91
+
92
+
<imgsrc="theme/img/vim-white-bg.png"width="100%"alt="Vim with basic configuration options on a white background."class="technical-diagram"style="border-radius: 5px; border: 1pxsolid#999;">
93
+
94
+
95
+
82
96
The Vimrc file lives under the home directory of the user account running
83
97
Vim. For example, when my user account is 'matt', on Mac OS X my Vimrc
84
-
file is found at ``/Users/matt/.vimrc``. On Ubuntu Linux my Vimrc file
85
-
can be found within ``/home/matt/.vimrc``.
98
+
file is found at ``/Users/matt/.vimrc``. On Ubuntu Linux my .vimrc file
99
+
can be found within the ``/home/matt/`` directory.
86
100
87
-
If the Vimrc file does not already exist, just create it within the user's
88
-
home directory and it will be picked up by Vim the next time you start the
89
-
program.
101
+
If a Vimrc file does not already exist, just create it within the user's
102
+
home directory and it will be picked up by Vim the next time you open the
103
+
editor.
90
104
91
105
106
+
## Vim tutorials
107
+
Vim has a reputation for a difficult learning curve, but it's much easier
108
+
to get started with these tutorials.
92
109
93
-
## General Vim resources
94
110
*[Vim Adventures](http://vim-adventures.com/) is a cute, fun browser-based
95
111
game that helps you learn Vim commands by playing through the adventure.
96
112
@@ -102,13 +118,6 @@ program.
102
118
*[A vim Tutorial and Primer](https://danielmiessler.com/study/vim/) is an
103
119
incredibly deep study in how to go from beginner to knowledgeable in Vim.
104
120
105
-
*[Vim as Your IDE](http://haridas.in/vim-as-your-ide.html) discusses how to
106
-
set up Vim for greater productivity once you learn the initial Vim language
107
-
for using the editor.
108
-
109
-
*[Setting up Vim for Python](http://stackoverflow.com/questions/9172802/setting-up-vim-for-python)
110
-
has a well written answer on Stack Overflow for getting started with Vim.
111
-
112
121
*[Vim as a Language](http://benmccormick.org/2014/07/02/learning-vim-in-2014-vim-as-language/)
113
122
explains the language syntax and how you can build up over time to master
114
123
the editor.
@@ -119,7 +128,36 @@ program.
119
128
code editting tool.
120
129
121
130
131
+
## Vim Python IDE bundles and resources
132
+
Once you get comfortable with Vim as an editor, there are several
133
+
configuration options and plugins you can use to enhance your Python
134
+
productivity. These are the resources and tutorials to read when you're
135
+
ready to take that step.
136
+
137
+
* The [python-mode](https://github.com/klen/python-mode) project is a Vim
138
+
plugin with syntax highlighting, breakpoints, PEP8 linting, code completion
139
+
and many other features you'd expect from an integrated development
140
+
environment.
141
+
142
+
*[Vundle](https://github.com/gmarik/Vundle.vim) comes highly recommended
143
+
as a plug-in manager for Vim.
144
+
145
+
*[Vim as Your IDE](http://haridas.in/vim-as-your-ide.html) discusses how to
146
+
set up Vim for greater productivity once you learn the initial Vim language
147
+
for using the editor.
148
+
149
+
*[Vim as a Python IDE](unlogic.co.uk/2013/02/08/vim-as-a-python-ide/)
150
+
goes through the steps necessary to make Vim into a more comfortable
151
+
environment for Python development.
152
+
153
+
*[Setting up Vim for Python](http://stackoverflow.com/questions/9172802/setting-up-vim-for-python)
154
+
has a well written answer on Stack Overflow for getting started with Vim.
155
+
156
+
122
157
## Vim installation guides
158
+
These installation guides will help you get Vim up and running on Mac OS X,
159
+
Linux and Windows.
160
+
123
161
*[Upgrading Vim on OS X](http://prioritized.net/blog/upgrading-vim-on-os-x/)
124
162
explains why to upgrade from Vim 7.2 to 7.3+ and how to do it using
125
163
[Homebrew](http://brew.sh/).
@@ -133,13 +171,21 @@ program.
133
171
134
172
135
173
## Vimrc resources
174
+
These are a few resources for learning how to structure a .vimrc file. I
175
+
recommend adding configuration options one at a time to test them
176
+
individually instead of going whole hog with a Vimrc you are unfamiliar with.
177
+
136
178
*[A Good Vimrc](http://dougblack.io/words/a-good-vimrc.html) is a fantastic,
137
179
detailed overview and opinionated guide to configuring Vim. Highly
138
180
recommended for new and experienced Vim users.
139
181
140
182
*[Vim and Python](https://justin.abrah.ms/vim/vim_and_python.html) shows
141
183
and explains many Python-specific .vimrc options.
142
184
185
+
* This
186
+
[repository's folder with Vimrc files](https://github.com/amix/vimrc/tree/master/vimrcs)
187
+
has example configurations that are well commented and easy to learn from.
188
+
143
189
144
190
## Vim Plugin resources
145
191
*[5 Essential VIM Plugins That Greatly Increase my Productivity](http://joelhooks.com/blog/2013/04/23/5-essential-vim-plugins/)
@@ -151,5 +197,8 @@ program.
151
197
usefulness. The comments at the bottom are also interesting as people have
152
198
suggested alternatives to some of the plugins mentioned in the post.
153
199
200
+
*[Powerline](https://github.com/powerline/powerline) is a popular statusline
201
+
plugin for Vim that works with both Python 2 and 3.
202
+
154
203
155
204
### What do you want to learn about Python development?
Copy file name to clipboardExpand all lines: vim.html
+61-15Lines changed: 61 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -94,14 +94,24 @@ <h2>Configuring Vim with a Vimrc file</h2>
94
94
</pre></div>
95
95
96
96
97
+
<p>Here is how these configuration options look with a dark background on
98
+
Mac OS X while editing the markdown for this webpage (how meta!).</p>
99
+
<p><imgsrc="theme/img/vim-dark-bg.jpg" width="100%" alt="Vim with basic configuration options on a dark background." class="technical-diagram" style="border-radius: 5px;"></p>
100
+
<p>Take a look at another example using these configuration options, this time
101
+
with a light background and editing Python code from my
102
+
<ahref="https://github.com/makaimc/choose-your-own-adventure-presentations">Choose Your Own Adventures Presentations</a>
103
+
project.</p>
104
+
<p><imgsrc="theme/img/vim-white-bg.png" width="100%" alt="Vim with basic configuration options on a white background." class="technical-diagram" style="border-radius: 5px; border: 1px solid #999;"></p>
97
105
<p>The Vimrc file lives under the home directory of the user account running
98
106
Vim. For example, when my user account is 'matt', on Mac OS X my Vimrc
99
-
file is found at <code>/Users/matt/.vimrc</code>. On Ubuntu Linux my Vimrc file
100
-
can be found within <code>/home/matt/.vimrc</code>. </p>
101
-
<p>If the Vimrc file does not already exist, just create it within the user's
102
-
home directory and it will be picked up by Vim the next time you start the
103
-
program.</p>
104
-
<h2>General Vim resources</h2>
107
+
file is found at <code>/Users/matt/.vimrc</code>. On Ubuntu Linux my .vimrc file
108
+
can be found within the <code>/home/matt/</code> directory. </p>
109
+
<p>If a Vimrc file does not already exist, just create it within the user's
110
+
home directory and it will be picked up by Vim the next time you open the
111
+
editor.</p>
112
+
<h2>Vim tutorials</h2>
113
+
<p>Vim has a reputation for a difficult learning curve, but it's much easier
114
+
to get started with these tutorials.</p>
105
115
<ul>
106
116
<li>
107
117
<p><ahref="http://vim-adventures.com/">Vim Adventures</a> is a cute, fun browser-based
@@ -118,15 +128,6 @@ <h2>General Vim resources</h2>
118
128
incredibly deep study in how to go from beginner to knowledgeable in Vim.</p>
119
129
</li>
120
130
<li>
121
-
<p><ahref="http://haridas.in/vim-as-your-ide.html">Vim as Your IDE</a> discusses how to
122
-
set up Vim for greater productivity once you learn the initial Vim language
123
-
for using the editor.</p>
124
-
</li>
125
-
<li>
126
-
<p><ahref="http://stackoverflow.com/questions/9172802/setting-up-vim-for-python">Setting up Vim for Python</a>
127
-
has a well written answer on Stack Overflow for getting started with Vim.</p>
128
-
</li>
129
-
<li>
130
131
<p><ahref="http://benmccormick.org/2014/07/02/learning-vim-in-2014-vim-as-language/">Vim as a Language</a>
131
132
explains the language syntax and how you can build up over time to master
132
133
the editor.</p>
@@ -138,7 +139,40 @@ <h2>General Vim resources</h2>
138
139
code editting tool.</p>
139
140
</li>
140
141
</ul>
142
+
<h2>Vim Python IDE bundles and resources</h2>
143
+
<p>Once you get comfortable with Vim as an editor, there are several
144
+
configuration options and plugins you can use to enhance your Python
145
+
productivity. These are the resources and tutorials to read when you're
146
+
ready to take that step.</p>
147
+
<ul>
148
+
<li>
149
+
<p>The <ahref="https://github.com/klen/python-mode">python-mode</a> project is a Vim
150
+
plugin with syntax highlighting, breakpoints, PEP8 linting, code completion
151
+
and many other features you'd expect from an integrated development
152
+
environment.</p>
153
+
</li>
154
+
<li>
155
+
<p><ahref="https://github.com/gmarik/Vundle.vim">Vundle</a> comes highly recommended
156
+
as a plug-in manager for Vim.</p>
157
+
</li>
158
+
<li>
159
+
<p><ahref="http://haridas.in/vim-as-your-ide.html">Vim as Your IDE</a> discusses how to
160
+
set up Vim for greater productivity once you learn the initial Vim language
161
+
for using the editor.</p>
162
+
</li>
163
+
<li>
164
+
<p><ahref="unlogic.co.uk/2013/02/08/vim-as-a-python-ide/">Vim as a Python IDE</a>
165
+
goes through the steps necessary to make Vim into a more comfortable
166
+
environment for Python development.</p>
167
+
</li>
168
+
<li>
169
+
<p><ahref="http://stackoverflow.com/questions/9172802/setting-up-vim-for-python">Setting up Vim for Python</a>
170
+
has a well written answer on Stack Overflow for getting started with Vim.</p>
171
+
</li>
172
+
</ul>
141
173
<h2>Vim installation guides</h2>
174
+
<p>These installation guides will help you get Vim up and running on Mac OS X,
175
+
Linux and Windows.</p>
142
176
<ul>
143
177
<li>
144
178
<p><ahref="http://prioritized.net/blog/upgrading-vim-on-os-x/">Upgrading Vim on OS X</a>
0 commit comments