How to effectively work with multiple files in Vim

前端 未结 28 2694
甜味超标
甜味超标 2020-11-28 00:18

I\'ve started using Vim to develop Perl scripts and am starting to find it very powerful.

One thing I like is to be able to open multiple files at once with:

<
28条回答
  •  执念已碎
    2020-11-28 00:33

    have a try following maps for convenience editing multiple files

    " split windows

    nmap sh :leftabove vnew

    nmap sl :rightbelow vnew

    nmap sk :leftabove new

    nmap sj :rightbelow new

    " moving around

    nmap j

    nmap k

    nmap l

    nmap h

提交回复
热议问题