@@ -604,20 +604,33 @@ <h2>Configuring Vim with a Vimrc file</h2>
604604< p > The Vimrc file is used to configure the Vim editor. A Vimrc file can range
605605from nothing in it to very complicated with hundreds or thousands of lines
606606of configuration commands.</ p >
607- < p > Here's a simple example .vimrc file I use for Python development to get a feel
608- for some of the configuration statements:</ p >
609- < div class ="codehilite "> < pre > < span class ="cp " > # enable syntax highlighting</ span >
610- < span class ="n "> syntax</ span > < span class ="n "> on </ span >
607+ < p > Here's a short, commented example .vimrc file I use for Python development
608+ to get a feel for some of the configuration statements:</ p >
609+ < div class ="codehilite "> < pre > < span class ="s " > " enable syntax highlighting</ span >
610+ < span class ="n "> syntax</ span > < span class ="n "> enable </ span >
611611
612- < span class ="cp "> # the next 4 lines set tabs to have 4 spaces, autoindent when already</ span >
613- < span class ="cp "> # working with indented lines, expand tabs key presses to spaces and</ span >
614- < span class ="cp "> # move lines 4 spaces each time the >> or << commands are used</ span >
612+ < span class ="s "> " show line numbers</ span >
613+ < span class ="n "> set</ span > < span class ="n "> number</ span >
614+
615+ < span class ="s "> " set tabs to have 4 spaces</ span >
615616< span class ="n "> set</ span > < span class ="n "> ts</ span > < span class ="o "> =</ span > < span class ="mi "> 4</ span >
617+
618+ < span class ="s "> " indent when moving to the next line while writing code</ span >
616619< span class ="n "> set</ span > < span class ="n "> autoindent</ span >
620+
621+ < span class ="s "> " expand tabs into spaces</ span >
617622< span class ="n "> set</ span > < span class ="n "> expandtab</ span >
623+
624+ < span class ="s "> " when using the >> or << commands, shift lines by 4 spaces</ span >
618625< span class ="n "> set</ span > < span class ="n "> shiftwidth</ span > < span class ="o "> =</ span > < span class ="mi "> 4</ span >
619626
620- < span class ="cp "> # enable all Python syntax highlighting features</ span >
627+ < span class ="s "> " show a visual line under the cursor's current line </ span >
628+ < span class ="n "> set</ span > < span class ="n "> cursorline</ span >
629+
630+ < span class ="s "> " show the matching part of the pair for [] {} and ()</ span >
631+ < span class ="n "> set</ span > < span class ="n "> showmatch</ span >
632+
633+ < span class ="s "> " enable all Python syntax highlighting features</ span >
621634< span class ="n "> let</ span > < span class ="n "> python_highlight_all</ span > < span class ="o "> =</ span > < span class ="mi "> 1</ span >
622635</ pre > </ div >
623636
@@ -695,6 +708,20 @@ <h2>Vimrc resources</h2>
695708 and explains many Python-specific .vimrc options.</ p >
696709</ li >
697710</ ul >
711+ < h2 > Vim Plugin resources</ h2 >
712+ < ul >
713+ < li >
714+ < p > < a href ="http://joelhooks.com/blog/2013/04/23/5-essential-vim-plugins/ "> 5 Essential VIM Plugins That Greatly Increase my Productivity</ a >
715+ covers the author's experience with the Vundle, NERDTree, ctrlp, Syntastic
716+ and EasyMotion Vim plugins.</ p >
717+ </ li >
718+ < li >
719+ < p > < a href ="http://benmccormick.org/2014/07/21/learning-vim-in-2014-getting-more-from-vim-with-plugins/ "> Getting more from Vim with plugins</ a >
720+ provides a list of plugins with a description for each one on its
721+ usefulness. The comments at the bottom are also interesting as people have
722+ suggested alternatives to some of the plugins mentioned in the post.</ p >
723+ </ li >
724+ </ ul >
698725< h3 > What do you want to learn about Python development?</ h3 >
699726 < h1 > Emacs</ h1 >
700727< p > Emacs is an extensible text editor that can be customized by writing Lisp
0 commit comments