Perl Best Practices [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Perl Best Practices [Electronic resources] - نسخه متنی

Damian Conway

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







C.1. vim


vim is one of several successors to the classic Unix text editor vi. You can learn about vim and download the latest open source version for all major operating systems from http://www.vim.org.

The following commands might make useful additions to your .vimrc file:


set autoindent

"Preserve current indent on new lines

set textwidth=78
"Wrap at this column

set backspace=indent,eol,start
"Make backspaces delete sensibly

set tabstop=4
"Indentation levels every four columns

set expandtab
"Convert all tabs typed to spaces

set shiftwidth=4
"Indent/outdent by four columns

set shiftround
"Indent/outdent to nearest tabstop

set matchpairs+=<:>
"Allow % to bounce between angles too
"Inserting these abbreviations inserts the corresponding Perl statement...

iab phbp #! /usr/bin/perl -w
iab pdbg use Data::Dumper 'Dumper';^Mwarn Dumper [];^[hi
iab pbmk use Benchmark qw( cmpthese );^Mcmpthese -10, {};^[O
iab pusc use Smart::Comments;^M^M###
iab putm use Test::More qw( no_plan );
iab papp ^[:r ~/.code_templates/perl_application.pl^M
iab pmod ^[:r ~/.code_templates/perl_module.pm^M

For many more ways to customize and enhance vim, see http://www.vim.org/tips/.


/ 317