[DFW.pm] Not only was Patrick right, but Vim backs him up...

Stuart Johnston saj at thecommune.net
Sat Feb 23 19:33:37 PST 2013


Damian Conway's Vim config is detailed and well documented:

https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup


2/21/2013 5:30 PM, Tommy Butler wrote:
> That's great, thanks for the tip Matt!
>
> What does your .vimrc look like?  I always like to see what goodies
> there are to be found in the .vimrc files of fellow Perl hackers :-D
>
> Mine looks like this:
>
>     :set nocompatible
>     :syntax enable
>     :set bg=dark
>     :set ts=3
>     :set sw=3
>     :set ic
>     :set ai
>     :set si
>     :set expandtab
>     :set modeline
>     :set ruler
>     :set showmatch
>     :set number
>     :set nohlsearch
>     :autocmd BufWritePre * :%s/\s\+$//e
>     :nnoremap <F5> :set invpaste paste?<CR>
>     :set pastetoggle=<F5>
>     :filetype plugin indent on
>     :set foldmethod=syntax
>     :let perl_fold = 1
>     ":set cursorline << that can get annoying
>     ":set cursorcolumn << and that too
>     " vim: set ft=vim :
>
> --Tommy Butler
>
> On 02/21/2013 12:37 PM, Matt Musgrove wrote:
>>
>> I typically use TODO and BUG (something I added to my vim
>> installation). You can add it to yours easily enough. Edit
>> ~/.vim/syntax/perl.vim and add the following lines in the appropriate
>> sections:
>>
>> syn match perlBug "\<\(BUG\)\:\?\>" contained
>>
>> syn match  perlComment              "#.*" contains=perlTodo,perlBug
>>
>>   HiLink perlBug            ErrorMsg
>>
>> Newer versions of vim-perl also support NOTE.
>>
>>
>
>
>
> _______________________________________________
> Dfw-pm mailing list
> Dfw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/dfw-pm
>



More information about the Dfw-pm mailing list