Files
Fritz Mehner 303acbf76b Version 5.3
- Adjusting end-of-line comments improved.
- Bugfix: Map and menu entry 'Snippets->edit global templates'.
- 'Run -> make script executable' (\re) is now a toggle.
- Perl interpreter can be set in ~/.vimrc.
- Script can be run via shebang (new global variable g:Perl_DirectRun)
- Fixed problem with system-wide installations and plug-in managers (thanks to Yegor).
- Added 'Perl_SetMapLeader' and 'Perl_ResetMapLeader'.
- Bugfix: Resetting maplocalleader in filetype plug-in after setting it to the value of
  g:Perl_MapLeader.
- Bugfix: Better compatibility with custom mappings
  (use "normal!" and "noremap" consistently).
2014-03-25 21:30:07 -04:00

49 lines
1.6 KiB
VimL

" Vim filetype plugin file
"
" Language : Perl
" Plugin : perl-support.vim
" Maintainer : Fritz Mehner <mehner@fh-swf.de>
"
" ----------------------------------------------------------------------------
"
" Only do this when not done yet for this buffer
"
if exists("b:did_POD_ftplugin")
finish
endif
let b:did_POD_ftplugin = 1
"
" ---------- tabulator / shiftwidth ------------------------------------------
" Set tabulator and shift width to 4 conforming to the Perl Style Guide.
" Uncomment the next two lines to force these settings for all files with
" filetype 'perl' .
"
setlocal tabstop=4
setlocal shiftwidth=4
"
" ---------- Add ':' to the keyword characters -------------------------------
" Tokens like 'File::Find' are recognized as
" one keyword
"
setlocal iskeyword+=:
"
" ---------- Set "maplocalleader" as configured using "g:Perl_MapLeader" -----
"
call Perl_SetMapLeader ()
"
" ---------- Maps for the Make tool ------------------------------------------
"
noremap <buffer> <silent> <LocalLeader>rm :Make<CR>
inoremap <buffer> <silent> <LocalLeader>rm <C-C>:Make<CR>
noremap <buffer> <silent> <LocalLeader>rmc :Make clean<CR>
inoremap <buffer> <silent> <LocalLeader>rmc <C-C>:Make clean<CR>
noremap <buffer> <LocalLeader>rma :MakeCmdlineArgs<space>
inoremap <buffer> <LocalLeader>rma <C-C>:MakeCmdlineArgs<space>
noremap <buffer> <LocalLeader>rcm :MakeFile<space>
inoremap <buffer> <LocalLeader>rcm <C-C>:MakeFile<space>
"
" ---------- Reset "maplocalleader" ------------------------------------------
"
call Perl_ResetMapLeader ()
"