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’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.
Vim doesn’t support ps1 files for highlighting. So there is a plugin for that. (Check out its github page for installation)
I have linebreaks set up, I honour “80 chars per line” rule. I don’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:
autocmd BufRead,BufNewFile *.ps1 set nolbr
It works perfectly.