vim 窗口分屏之后尺寸调节

作者: dreamfly 分类: vim 发布时间: 2021-09-24 16:25

vim分屏

vim可以水平分屏和垂直分屏,分屏命令

:split
:vsplit
:sp
:vs

可以通过下面的命令调整分屏窗口尺寸

:resize -3
:resize +3
:vertical resize -3
:vertical resize +3

上面分别实现减少高度3,增加高度3,减少宽度3,增加宽度3

最后我们可以将上述命令绑定按键

nmap   w-  :resize -3<CR>
nmap   w=  :resize +3<CR>
nmap   w,  :vertical resize -3<CR>
nmap   w.  :vertical resize +3<CR>

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

3条评论
  • נערת ליווי אילת

    2022年8月5日 08:44

    Good post. I learn something new and challenging on blogs I stumbleupon on a daily basis. Its always useful to read content from other writers and use a little something from their sites.

  • israel night club

    2022年8月17日 03:15

    When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I recieve four emails with the exact same comment. Perhaps there is a way you can remove me from that service? Many thanks!

  • Im pretty pleased to discover this page. I wanted to thank you for ones time for this particularly wonderful read!! I definitely liked every little bit of it and I have you bookmarked to look at new stuff on your blog.

发表评论

您的电子邮箱地址不会被公开。