<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3Avim</id>
	<title>Development:vim - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3Avim"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:vim&amp;action=history"/>
	<updated>2026-05-06T18:46:11Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:vim&amp;diff=12296&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:vim&amp;diff=12296&amp;oldid=prev"/>
		<updated>2024-10-21T08:59:30Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:59, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:vim&amp;diff=12295&amp;oldid=prev</id>
		<title>1&gt;Mudrd8mz: Putting the page into proper categories</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:vim&amp;diff=12295&amp;oldid=prev"/>
		<updated>2009-09-23T14:12:49Z</updated>

		<summary type="html">&lt;p&gt;Putting the page into proper categories&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Setting up Vim for Moodle Development =&lt;br /&gt;
&lt;br /&gt;
There are many powerful features available in vim, here are a few tips &lt;br /&gt;
to ensure you get powerful use out of vim with moodle development&lt;br /&gt;
&lt;br /&gt;
== Indentation ==&lt;br /&gt;
Moodle [[Coding|Coding Guidelines]] state that indentation should be spaces of 4 spaces (not Tabs). Some .vimrc options will help you adhere to these guidelines with ease:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; insert space characters whenever the tab key is presse&lt;br /&gt;
set expandtab&lt;br /&gt;
&lt;br /&gt;
&amp;quot; insert 4 spaces characters when tab key is pressed&lt;br /&gt;
set tabstop=4&lt;br /&gt;
&lt;br /&gt;
&amp;quot; insert 4 spaces wen autoindent indents&lt;br /&gt;
set shiftwidth=4&lt;br /&gt;
&lt;br /&gt;
&amp;quot; automatically indent files&lt;br /&gt;
set autoindent&lt;br /&gt;
&lt;br /&gt;
&amp;quot; Do smart indentation depending on code syntax (e.g. change after { }, keywords etc)&lt;br /&gt;
set smartindent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Syntax Highlighting ==&lt;br /&gt;
Recent versions of vim have robust syntax highlighting for php. In order to switch syntax highlighting on add the following to your .vimrc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; set syntax highlighting on&lt;br /&gt;
syntax on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Other Useful vimrc settings ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; show a ruler with line number, % through file on status line&lt;br /&gt;
set ruler&lt;br /&gt;
&amp;quot; show line number&lt;br /&gt;
set nu&lt;br /&gt;
&amp;quot; PHP syntax check&lt;br /&gt;
set makeprg=php\ -l\ %&lt;br /&gt;
set errorformat=%m\ in\ %f\ on\ line\ %l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
During development, you will probably often find yourself typing print_object($foo) and die(). The following lines is vimrc create a keystroke to make this faster&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; F5 put a Moodle debugging msg&lt;br /&gt;
map &amp;lt;F5&amp;gt; oprint_object(); die(); // DONOTCOMMIT&amp;lt;Esc&amp;gt;23hi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== File encoding and decoding ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set fileencodings=ucs-bom,utf-8,gbk,big5,latin1&lt;br /&gt;
set termencoding=utf-8,gbk&lt;br /&gt;
if has (&amp;#039;multi_byte&amp;#039;) &amp;amp;&amp;amp; v:version &amp;gt; 601&lt;br /&gt;
  if v:lang =~? &amp;#039;^\(zh\)\|\(ja\)\|\(ko\)&amp;#039;&lt;br /&gt;
    set ambiwidth=double&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status Line ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set statusline=%&amp;lt;%f\ %h%m%r%=%k[%{(&amp;amp;fenc==\&amp;quot;\&amp;quot;)?&amp;amp;enc:&amp;amp;fenc}%{(&amp;amp;bomb?\&amp;quot;,BOM\&amp;quot;:\&amp;quot;\&amp;quot;)}]\ %-14.(%l,%c%V%)\ %P&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Ctags ==&lt;br /&gt;
See the [[Development:ctags|Ctags Article]] for details on how to setup ctags usage with moodle and vim&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|vim]]&lt;br /&gt;
[[Category:Developer tools|vim]]&lt;/div&gt;</summary>
		<author><name>1&gt;Mudrd8mz</name></author>
	</entry>
</feed>