<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>powershell &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Tue, 29 Apr 2014 22:32:42 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Configuration on PS1 files in Vim</title>
		<link>https://luxing.im/configuration-on-ps1-files-in-vim/</link>
					<comments>https://luxing.im/configuration-on-ps1-files-in-vim/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Tue, 29 Apr 2014 22:31:20 +0000</pubDate>
				<category><![CDATA[Learning Notes]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[ps1]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vimrc]]></category>
		<guid isPermaLink="false">http://blog.luxing.im/?p=375</guid>

					<description><![CDATA[Thank you Lixar for my first ever Co-op placement. Although there are many colleagues like me, love to use Linux/Unix as our main OS, work must be done as what we are expected. Because they choose Azure cloud initially, I have to do development work under Windows. It doesn&#8217;t bother me too much, I still &#8230; <p class="link-more"><a href="https://luxing.im/configuration-on-ps1-files-in-vim/" class="more-link">Continue reading<span class="screen-reader-text"> "Configuration on PS1 files in Vim"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Thank you <a href="http://www.lixar.com" target="_blank">Lixar</a> for my first ever Co-op placement. Although there are many colleagues like me, love to use Linux/Unix as our main OS, work must be done as what we are expected. Because they choose Azure cloud initially, I have to do development work under Windows.</p>
<p>It doesn&#8217;t bother me too much, I still have my Linux as a guest VM on the second screen for transition. Now I need to study some PowerShell scripting.</p>
<p>Vim doesn&#8217;t support ps1 files for highlighting. So there is a <a href="http://www.vim.org/scripts/script.php?script_id=1327" target="_blank">plugin</a> for that. (Check out its github page for installation)<br />
<span id="more-375"></span><br />
I have linebreaks set up, I honour &#8220;80 chars per line&#8221; rule. I don&#8217;t think the nature of PowerShell honours that, at least not our internal scripts. Still I want to keep linebreaks in my vimrc, but to skip linebreaks for any ps1 files. A little bit of research and documentation lookup, add a line to my vimrc:</p>
<pre>autocmd BufRead,BufNewFile *.ps1    set nolbr</pre>
<p>It works perfectly.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/configuration-on-ps1-files-in-vim/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">375</post-id>	</item>
	</channel>
</rss>
