<?xml version="1.0" encoding="windows-1252"?>
<node id="817605" title="Re^2: Can't get vim to stop outdenting Perl comments, any ideas?" created="2010-01-15 05:31:40" updated="2010-01-15 05:31:40">
<type id="11">
note</type>
<author id="222307">
Tommy</author>
<data>
<field name="doctext">
Yes, I did try the cinkeys method also, which worked in some, but not all cases for me.

I do have some good news though.  I did get the functionality finally with the .vimrc file I quote below.  However I still plan to &lt;a href="http://publius-ovidius.livejournal.com/242806.html"&gt;borrow some coolness&lt;/a&gt; from [ovid].

&lt;code&gt;
:set nocompatible
:filetype plugin indent on
:syntax enable
:set background=dark
:set tabstop=3
:set shiftwidth=3
:set softtabstop=3
:set ignorecase
:set expandtab
:set modeline
:set ruler
:set showmatch
:set nohlsearch
:autocmd BufWritePre * :%s/\s\+$//e
:nnoremap &lt;F5&gt; :set invpaste paste?&lt;CR&gt;
:set pastetoggle=&lt;F5&gt;
:let perl_fold = 1 
:set foldmethod=syntax
:set cursorline
:set cursorcolumn
:autocmd FileType perl highlight OverLength ctermbg=green ctermfg=white guibg=#E293AA
:match OverLength /\%81v.*/
:set number
:set backspace=eol,indent,start
:autocmd BufReadPost * if line("'\"") &gt; 0 &amp;&amp; line("'\"") &lt;= line("$") | exe "normal g'\"" | endif
&lt;/code&gt;

&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-222307"&gt;
--
&lt;br /&gt;
[Tommy]

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
817406</field>
<field name="parent_node">
817473</field>
</data>
</node>
