Code Monkey home page Code Monkey logo

bufmru.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2346

Switch between MRU buffers from the current session. Like CTRL-^, but reach
more buffers (and maintain only one global list, not one list per window).

Usage:

  Press  <Space>  to show the most recently used buffer and enter Bufmru mode.

  In Bufmru mode:
  Press  f  or  b  (forward/backward) to reach more MRU buffers.
  Press  e  or  <Enter>  to accept the current choice.
  Press  q  or  <Esc>  to quit the mode and to go back to the start buffer
  Press  y  to copy a file name

Configuration:
  :let g:bufmru_switchkey = "<Space>"
      (checked once) Key to enter Bufmru mode.

  :let g:bufmru_confclose = 0
      (always) Use :confirm (1) when abandoning a modified buffer.
      Otherwise (0, default) you'll get an error message, unless 'hidden'
      is set.

  :let g:bufmru_bnrs = []
      (always) The internal stack of buffer numbers.  Normally, you'll
      leave this alone, but you can manually add or remove buffer numbers
      or initialize the list.  Don't worry about wrong numbers.

  :let g:bufmru_read_nummarks = 0
      (once) Put the number mark '0 ... '9 buffers in g:bufmru_bnrs.  This adds
      buffers to the buffer list!

wildmenu version only:

  g:bufmru_wildmenu   (dictionary, initially not defined)
      (always) Instance of autoload/wildmenu.vim to show buffer names in a
      wildmenu-like list.  If not defined, bufmru tries to load the autoload
      script.  If that fails the value becomes empty ({}) -- and bufmru
      quite unusable.

  :let g:bufmru_wilditems = "bufnr,shortpath"
      (always) How to display entries in the "wildmenu":
      "bufnr"         with prepended buffer number
      "shortpath"     with pathshorten() applied to the bufname()
      There is no error message for wrong items.

splashbufs version only:

  :let g:bufmru_lazy_filetype = 0
      (checked always) If 1, do lazy filetype detection when going through
      the buffers with f and b.  Not used if 'hidden' is set.


special buffer: 'buftype' not empty or 'previewwindow' set

Related:
http://vim.wikia.com/wiki/Easier_buffer_switching
http://groups.google.com/group/vim_use/msg/adb4f35772ecbcbe

Another MRU buffers script!  But it requires Ruby (that I haven't installed):
LustyJuggler Vimscript #2050

Created after a mailing list request from a Visual Studio user ;-)

bufmru.vim's People

Contributors

houl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

drmikehenry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.