Was sind Ihre Vorschläge für eine ideale Vim-Konfiguration für die Perl-Entwicklung?
Es gibt viele Threads, die sich auf die Konfiguration beziehenVim / GVim für die Perl-Entwicklungauf PerlMonks.org. Mit dieser Frage möchte ich versuchen, mit Vim / GVim so weit wie möglich eine ideale Konfiguration für die Perl-Entwicklung zu erstellen. Bitte posten Sie Ihre Vorschläge für.vimrc
Einstellungen sowie nützliche Plugins.
Ich werde versuchen, die Empfehlungen in einer Reihe von zusammenzufassen.vimrc
Einstellungen und eine Liste der empfohlenen Plugins, ftplugins und Syntaxdateien.
"Create a command :Tidy to invoke perltidy"
"By default it operates on the whole file, but you can give it a"
"range or visual range as well if you know what you're doing."
command -range=% -nargs=* Tidy <line1>,<line2>!
\perltidy -your -preferred -default -options <args>
vmap <tab> >gv "make tab in v mode indent code"
vmap <s-tab> <gv
nmap <tab> I<tab><esc> "make tab in normal mode indent code"
nmap <s-tab> ^i<bs><esc>
let perl_include_pod = 1 "include pod.vim syntax file with perl.vim"
let perl_extended_vars = 1 "highlight complex expressions such as @{[$x, $y]}"
let perl_sync_dist = 250 "use more context for highlighting"
set nocompatible "Use Vim defaults"
set backspace=2 "Allow backspacing over everything in insert mode"
set autoindent "Always set auto-indenting on"
set expandtab "Insert spaces instead of tabs in insert mode. Use spaces for indents"
set tabstop=4 "Number of spaces that a <Tab> in the file counts for"
set shiftwidth=4 "Number of spaces to use for each step of (auto)indent"
set showmatch "When a bracket is inserted, briefly jump to the matching one"
Syntaxvim-perl: Unterstützung für Perl 5 und Perl 6 in VimPluginsdelimitMate bietet die automatische Vervollständigung von Anführungszeichen, Parens, Klammern usw. im Einfügemodus. Es behandelt Apostrophe intelligenter alsclosepairs.vim tut.
perlhelp.vim: Schnittstelle zu perldoc
taglist.vim: Quellcode-Browser
ftpluginsperldoc.vim: Befehl perldoc von vimCPAN-ModuleVim :: XDebugging-ToolsIch habe es gerade herausgefundenVimDebug. Ich konnte es noch nicht unter Windows installieren, sieht aber aus der Beschreibung vielversprechend aus.