What are your suggestions for an ideal Vim configuration for Perl development?

后端 未结 12 1019
说谎
说谎 2021-01-29 17:56

There are a lot of threads pertaining to how to configure Vim/GVim for Perl development on PerlMonks.org. My purpose in posting this question is to try to create, as much as pos

12条回答
  •  情歌与酒
    2021-01-29 18:26

    From chromatic's blog (slightly adapted to be able to use the same mapping from all modes).

    vmap ,pt :!perltidy 
    nmap ,pt :%! perltidy
    

    hit ,pt in normal mode to clean up the whole file, or in visual mode to clean up the selection. You could also add:

    imap ,pt :%! perltidy
    

    But using commands from input mode is not recommended.

提交回复
热议问题