mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Update of buffergator plugin
This commit is contained in:
11
.vimrc
11
.vimrc
@@ -9,7 +9,7 @@ set background=dark "Hint Vim that I use dark colorscheme
|
|||||||
|
|
||||||
set confirm "Ask for confirmation rather then refuse certain commands
|
set confirm "Ask for confirmation rather then refuse certain commands
|
||||||
set cursorline "Turn on current line highlight
|
set cursorline "Turn on current line highlight
|
||||||
set nohlsearch "Turn off highlighting text by default
|
set hlsearch "Turn on highlighting search text by default
|
||||||
set expandtab "I want spaces instead of tabs
|
set expandtab "I want spaces instead of tabs
|
||||||
set fileencodings=ucs-bom,utf-8,latin2,default,latin1,default
|
set fileencodings=ucs-bom,utf-8,latin2,default,latin1,default
|
||||||
set fileformats=unix,dos "Type of <EOL> in written files
|
set fileformats=unix,dos "Type of <EOL> in written files
|
||||||
@@ -126,6 +126,7 @@ map <Leader>wp <Plug>VimwikiPrevWord
|
|||||||
" }}}
|
" }}}
|
||||||
"FuzzyFinder {{{2
|
"FuzzyFinder {{{2
|
||||||
let g:fuf_file_exclude = '\v\~$|\.(o|bak|swp|pyc|pyo|pyd)$|(^|[/\\])\.(hg|git|bzr|cvs)($|[/\\])'
|
let g:fuf_file_exclude = '\v\~$|\.(o|bak|swp|pyc|pyo|pyd)$|(^|[/\\])\.(hg|git|bzr|cvs)($|[/\\])'
|
||||||
|
map <C-F> :FufFile **/<CR>
|
||||||
"}}}
|
"}}}
|
||||||
"ShowMarks {{{2
|
"ShowMarks {{{2
|
||||||
let g:showmarks_ignore_type = "hqprm"
|
let g:showmarks_ignore_type = "hqprm"
|
||||||
@@ -169,7 +170,7 @@ autocmd ColorScheme * call <SID>CustomHighlightings()
|
|||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
" DirDiff {{{2
|
" DirDiff {{{2
|
||||||
let g:DirDiffExcludes = "CVS,*.class,*.exe,.*.swp,*.pyc,*.pyo"
|
let g:DirDiffExcludes = ".svn,CVS,*.class,*.exe,.*.swp,*.pyc,*.pyo"
|
||||||
" Make use of cursor keys
|
" Make use of cursor keys
|
||||||
nmap <M-Up> [c
|
nmap <M-Up> [c
|
||||||
nmap <M-Down> ]c
|
nmap <M-Down> ]c
|
||||||
@@ -210,11 +211,11 @@ nmap ,cn :silent call <SID>CopyFileName(1)<CR>
|
|||||||
" copy current buffer filename (filename only)
|
" copy current buffer filename (filename only)
|
||||||
nmap ,cs :silent call <SID>CopyFileName(0)<CR>
|
nmap ,cs :silent call <SID>CopyFileName(0)<CR>
|
||||||
|
|
||||||
"FuzzyFinder plugin. Keys for file fuf
|
|
||||||
map <C-F> :FufFile **/<CR>
|
|
||||||
|
|
||||||
"open link under cursor in Firefox
|
"open link under cursor in Firefox
|
||||||
map ]b :call OpenInWebBrowser()<cr>
|
map ]b :call OpenInWebBrowser()<cr>
|
||||||
|
|
||||||
|
"remove search highlight and refresh
|
||||||
|
nnoremap <silent> <C-l> :nohl<CR><C-l>
|
||||||
" }}}
|
" }}}
|
||||||
" FUNCTIONS: usefull functions for all of th files {{{
|
" FUNCTIONS: usefull functions for all of th files {{{
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
ScriptID SourceID Filename
|
ScriptID SourceID Filename
|
||||||
--------------------------
|
--------------------------
|
||||||
### plugins
|
### plugins
|
||||||
3619 16041 buffergator
|
3619 16426 buffergator
|
||||||
102 16171 DirDiff.vim
|
102 16171 DirDiff.vim
|
||||||
1984 13961 :AutoInstall: FuzzyFinder
|
1984 13961 :AutoInstall: FuzzyFinder
|
||||||
311 7645 grep.vim
|
311 7645 grep.vim
|
||||||
@@ -31,6 +31,7 @@ ScriptID SourceID Filename
|
|||||||
3309 15759 vydark
|
3309 15759 vydark
|
||||||
2589 15760 vylight
|
2589 15760 vylight
|
||||||
415 15531 zenburn
|
415 15531 zenburn
|
||||||
|
#3597 1 ColorV
|
||||||
# ftplugin
|
# ftplugin
|
||||||
910 14691 pydoc.vim
|
910 14691 pydoc.vim
|
||||||
2441 14403 pyflakes.vim
|
2441 14403 pyflakes.vim
|
||||||
|
|||||||
@@ -4,22 +4,24 @@
|
|||||||
*buffergator* *buffergator-contents*
|
*buffergator* *buffergator-contents*
|
||||||
CONTENTS~
|
CONTENTS~
|
||||||
|
|
||||||
1. Introduction ....................... |buffergator-introduction|
|
1. Introduction ........................... |buffergator-introduction|
|
||||||
2. Commands ........................... |buffergator-commands|
|
2. Commands ............................... |buffergator-commands|
|
||||||
3. Key Mappings (Global) .............. |buffergator-global-keys|
|
3. Key Mappings (Global) .................. |buffergator-global-keys|
|
||||||
4. Key Mappings (Catalog Viewer) ...... |buffergator-keys|
|
4. Key Mappings (Buffer Catalog) .......... |buffergator-buffer-keys|
|
||||||
5. Options and Settings ............... |buffergator-options|
|
5. Key Mappings (Tab Page Catalog) ........ |buffergator-tabpage-keys|
|
||||||
|
5. Options and Settings ................... |buffergator-options|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*buffergator-introduction*
|
*buffergator-introduction*
|
||||||
INTRODUCTION~
|
INTRODUCTION~
|
||||||
|
|
||||||
Buffergator is a plugin for listing, navigating between, and selecting buffers
|
Buffergator is a plugin for listing, navigating between, and selecting buffers
|
||||||
to edit. Upon invocation, a "catalog" of listed buffers are displayed in a
|
to edit. Upon invocation (using the command, ":BuffergatorOpen" or
|
||||||
separate new window split (vertical or horizontal, based on user options;
|
"BuffergatorToggle", or the provided key mapping, "<Leader>b"), a "catalog" of
|
||||||
default = vertical). From this "buffer catalog", a buffer can be selected and
|
listed buffers are displayed in a separate new window split (vertical or
|
||||||
opened in an existing window, a new window split (vertical or horizontal), or
|
horizontal, based on user options; default = vertical). From this "buffer
|
||||||
a new tab page.
|
catalog", a buffer can be selected and opened in an existing window, a new
|
||||||
|
window split (vertical or horizontal), or a new tab page.
|
||||||
|
|
||||||
Selected buffers can be "previewed", i.e. opened in a window or tab page, but
|
Selected buffers can be "previewed", i.e. opened in a window or tab page, but
|
||||||
with focus remaining in the buffer catalog. Even better, you can "walk" up and
|
with focus remaining in the buffer catalog. Even better, you can "walk" up and
|
||||||
@@ -28,9 +30,14 @@ down the list of buffers shown in the catalog by using <C-N> (or <SPACE>) /
|
|||||||
respectively, opening it for preview without leaving the buffer catalog
|
respectively, opening it for preview without leaving the buffer catalog
|
||||||
viewer.
|
viewer.
|
||||||
|
|
||||||
|
Buffergator also provides a way to list tab pages and buffers associated with
|
||||||
|
windows in tab pages (the "tab page catalog", which can be invoked using the
|
||||||
|
command ":BuffergatorTabsOpen" or the provided key mapping, "<Leader>t").
|
||||||
|
|
||||||
By default, Buffergator provides global key maps that invoke its main
|
By default, Buffergator provides global key maps that invoke its main
|
||||||
commands: "<Leader>b" to open, "<Leader>B" to close. If you prefer to map
|
commands: "<Leader>b" to open and "<Leader>B" to close the buffer catalog, and
|
||||||
other keys, or do not want any keys mapped at all, set
|
"<Leader>t" to open and "<Leader>T" to close the tab page catalog. If you
|
||||||
|
prefer to map other keys, or do not want any keys mapped at all, set
|
||||||
"g:buffergator_suppress_keymaps" to 1 in your $VIMRUNTIME.
|
"g:buffergator_suppress_keymaps" to 1 in your $VIMRUNTIME.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
@@ -49,6 +56,16 @@ These following commands are provided globally by Buffergator:
|
|||||||
Open the buffer catalog if it is closed, or close it if
|
Open the buffer catalog if it is closed, or close it if
|
||||||
it is already open.
|
it is already open.
|
||||||
|
|
||||||
|
:BuffergatorTabsOpen
|
||||||
|
Open the tab page catalog, or go to it if it is already open.
|
||||||
|
|
||||||
|
:BuffergatorTabsClose
|
||||||
|
Close the tab page catalog if it is already open.
|
||||||
|
|
||||||
|
:BuffergatorTabsToggle
|
||||||
|
Open the tab page catalog if it is closed, or close it if
|
||||||
|
it is already open.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*buffergator-global-keys*
|
*buffergator-global-keys*
|
||||||
KEY MAPPINGS (GLOBAL)~
|
KEY MAPPINGS (GLOBAL)~
|
||||||
@@ -61,9 +78,15 @@ key mappings are defined:
|
|||||||
|
|
||||||
<Leader>B Invokes ":BuffergatorClose": close the buffer catalog.
|
<Leader>B Invokes ":BuffergatorClose": close the buffer catalog.
|
||||||
|
|
||||||
|
<Leader>t Invokes ":BuffergatorTabsOpen": open the tab page catalog,
|
||||||
|
or go to it if it is already open.
|
||||||
|
|
||||||
|
<Leader>T Invokes ":BuffergatorTabsClose": close the tab page
|
||||||
|
catalog.
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*buffergator-keys*
|
*buffergator-buffer-keys*
|
||||||
KEY MAPPINGS (CATALOG VIEWER)~
|
KEY MAPPINGS (BUFFER CATALOG)~
|
||||||
|
|
||||||
Invoking Buffergator results in the listed buffers being displayed in a
|
Invoking Buffergator results in the listed buffers being displayed in a
|
||||||
special Buffergator window, which is referred to as a "buffer catalog viewer".
|
special Buffergator window, which is referred to as a "buffer catalog viewer".
|
||||||
@@ -73,7 +96,7 @@ The following key mappings are available when in the viewer.
|
|||||||
Catalog Management~
|
Catalog Management~
|
||||||
|
|
||||||
cs Cycle through sort regimes.
|
cs Cycle through sort regimes.
|
||||||
cd Cycle through display regimes (alternate).
|
cd Cycle through display regimes.
|
||||||
r Update (rebuild/refresh) index.
|
r Update (rebuild/refresh) index.
|
||||||
d Delete the selected buffer.
|
d Delete the selected buffer.
|
||||||
D Unconditionally delete the selected buffer.
|
D Unconditionally delete the selected buffer.
|
||||||
@@ -140,6 +163,35 @@ Window Control~
|
|||||||
A Zoom/unzoom window, expanding to full height (if
|
A Zoom/unzoom window, expanding to full height (if
|
||||||
horizontally split) or full width (if vertically split)
|
horizontally split) or full width (if vertically split)
|
||||||
|
|
||||||
|
===============================================================================
|
||||||
|
*buffergator-tabpage-keys*
|
||||||
|
KEY MAPPINGS (TAB PAGE CATALOG)~
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Catalog Management~
|
||||||
|
|
||||||
|
cd Cycle through display regimes.
|
||||||
|
r Update (rebuild/refresh) index.
|
||||||
|
q Quit the index/catalog window.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Open Selected Tab Page or Tab Page Window~
|
||||||
|
|
||||||
|
The following keys all open the currently-selected tab page or window.
|
||||||
|
|
||||||
|
<CR>, o Open the currently-selected tab page or window.
|
||||||
|
<SPACE> Select the next tab page entry.
|
||||||
|
<C-SPACE> Select the previous tab page entry.
|
||||||
|
<C-N> Select the next tab page window entry.
|
||||||
|
<C-P> Select the previous tab page window entry.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
Window Control~
|
||||||
|
|
||||||
|
A Zoom/unzoom window, expanding to full height (if
|
||||||
|
horizontally split) or full width (if vertically split)
|
||||||
|
|
||||||
|
|
||||||
===============================================================================
|
===============================================================================
|
||||||
*buffergator-options*
|
*buffergator-options*
|
||||||
OPTIONS AND SETTINGS~
|
OPTIONS AND SETTINGS~
|
||||||
@@ -178,6 +230,7 @@ g:buffergator_sort_regime~
|
|||||||
"filepath": sort by full buffer filepath
|
"filepath": sort by full buffer filepath
|
||||||
"extension": sort by buffer filename extension (followed by full
|
"extension": sort by buffer filename extension (followed by full
|
||||||
filepath)
|
filepath)
|
||||||
|
"mru": sort by most recently used
|
||||||
|
|
||||||
g:buffergator_display_regime~
|
g:buffergator_display_regime~
|
||||||
Default: "basename"
|
Default: "basename"
|
||||||
|
|||||||
3
doc/tags
3
doc/tags
@@ -218,12 +218,13 @@ b:VCSCommandSourceFile vcscommand.txt /*b:VCSCommandSourceFile*
|
|||||||
b:VCSCommandVCSType vcscommand.txt /*b:VCSCommandVCSType*
|
b:VCSCommandVCSType vcscommand.txt /*b:VCSCommandVCSType*
|
||||||
b:loremipsum_file loremipsum.txt /*b:loremipsum_file*
|
b:loremipsum_file loremipsum.txt /*b:loremipsum_file*
|
||||||
buffergator buffergator.txt /*buffergator*
|
buffergator buffergator.txt /*buffergator*
|
||||||
|
buffergator-buffer-keys buffergator.txt /*buffergator-buffer-keys*
|
||||||
buffergator-commands buffergator.txt /*buffergator-commands*
|
buffergator-commands buffergator.txt /*buffergator-commands*
|
||||||
buffergator-contents buffergator.txt /*buffergator-contents*
|
buffergator-contents buffergator.txt /*buffergator-contents*
|
||||||
buffergator-global-keys buffergator.txt /*buffergator-global-keys*
|
buffergator-global-keys buffergator.txt /*buffergator-global-keys*
|
||||||
buffergator-introduction buffergator.txt /*buffergator-introduction*
|
buffergator-introduction buffergator.txt /*buffergator-introduction*
|
||||||
buffergator-keys buffergator.txt /*buffergator-keys*
|
|
||||||
buffergator-options buffergator.txt /*buffergator-options*
|
buffergator-options buffergator.txt /*buffergator-options*
|
||||||
|
buffergator-tabpage-keys buffergator.txt /*buffergator-tabpage-keys*
|
||||||
buffergator.txt buffergator.txt /*buffergator.txt*
|
buffergator.txt buffergator.txt /*buffergator.txt*
|
||||||
cs surround.txt /*cs*
|
cs surround.txt /*cs*
|
||||||
cvscommand-changes vcscommand.txt /*cvscommand-changes*
|
cvscommand-changes vcscommand.txt /*cvscommand-changes*
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user