pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/macroxue/vim-buffer-acronym

1c.css" /> GitHub - macroxue/vim-buffer-acronym: In Vim, quick switching to a buffer with its acronym. · GitHub
Skip to content

macroxue/vim-buffer-acronym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Switching buffer by acronym

This plugin enables quick switching to a buffer by its acronym.

Usage

The switching function is invoked by - (minus) key. Additionally, _ (underscore) key lists all buffers before switching. It's OK to enter either target buffer's acronym or number. There are a few rules in matching acronyms.

  • g:buffer_acronym_with_path controls whether an acronym should include the path component and the default is yes. If set to no, path/to/file.ext is treated as file.ext.
  • Characters /, (space), _, . and - separate words in the file name.
  • Each uppercase letter starts a new word unless it follows an uppercase letter.
  • g:buffer_acronym_from_start controls whether an acronym should start from the first word and the default is no.

For example, you have the following files opened in Vim.

awesome-program.cc
awesome-program.h
awesome_test.cc

Then

  • -apc<cr> switches to awesome-program.cc
  • -aph<cr> switches to awesome-program.h
  • -at<cr> or -atc<cr> switches to awesome_test.cc
  • -ap<tab> cycles between awesome-program.cc and awesome-program.h
  • -a<tab> cycles through all three files.

When there are multiple matches, the first one is picked. So either -a<cr> or -ap<cr> switches to awesome-program.cc.

Installation

Vim

If you don't have a preferred installation method, I recommend using Vundle. Assuming you have Vundle installed and configured, the following steps will install the plugin:

Add the following line to your ~/.vimrc file

Plugin 'macroxue/vim-buffer-acronym'

Then run

:PluginInstall

About

In Vim, quick switching to a buffer with its acronym.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy