zoukankan      html  css  js  c++  java
  • vim

    1. buffer switching

    http://vim.wikia.com/wiki/Easier_buffer_switching

    :buffer
    :ls
    :files

    2. vim default to delete a buffer, it causes closing the window also.
    http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window
    :bdelete - close buffer and all windows currently showing the buffer

    3. buffer deleting
    https://github.com/qpkorr/vim-bufkill
    Usage
    Unloading/Deleting/Wiping
    To unload a file from the buffer and keep the window/split intact:
    :BUN

    To delete a file from the buffer and keep the window/split intact:
    :BD

    To wipe a file from the buffer and keep the window/split intact:
    :BW

    Moving through buffers
    To move backwards through recently accessed buffers:
    :BB
    and to move forwards:
    :BF

    To move to an alternate buffer and keep the cursor in the same column, use:
    :BA

    Also...

    Can also override Ctrl-^ (Vim's default for swapping between alternate buffers) via g:BufKillOverrideCtrlCaret in your /.vimrc file.

    Can overide the default mappings within your /.vimrc file like so:
    map <C-c> :BD<cr>

    resulting in being able to delete a file from the buffer via vim-bufkill with CTRL + c

  • 相关阅读:
    jquery动画效果---animate()--滚屏
    一个前端的自我修养
    开发和测试
    jquery.find()
    c99和c++11的差异之一
    容器经典图
    C/C++中的##用法
    【心学.悟道】千圣皆过影,良知乃吾师
    memcpy, memset代码改写的方式
    三大软件原则
  • 原文地址:https://www.cnblogs.com/cnblogist/p/6125947.html
Copyright © 2011-2022 走看看