My favorites | Sign in
Project Home Downloads Issues Source
Project Information
Members
Links

DESCRIPTION Introduction:

a basic idea is easy pressable key, and quickly switchable search type .

Basic Usage:

Default defined key map is
<c-cr>
open next item .
<s-cr>
open previous item .
<c-s-cr>
switch spinner.vim search mode .

spinner.vim search mode is switching, when you press
<c-s-cr>
. Defined search mode is
  1. open next/previous buffer (initial) .
2. open next/previous file in currently opened file directory . 3. open next/previous most recently edited file (last 10 files) . 4. open next/previous tab . 5. open next/previous window . 6. open next/previous quickfix line . 7. open next/previous quickfix file .

Spinner Search Mode Details: 1.open next/previous buffer (initial) .

<c-cr>
open next buffer.
<s-cr>
open previous buffer.
same with :bnext, :bNext .

2.open next/previous file in currently opened file directory .

<c-cr>
open alphabetically next file.
<s-cr>
open alphabetically previous file .
opening files are searched in currently opened file directory.

current test version use code from nextfile : open the next or previous file (vimscript #2605)

3.open next/previous most recently edited file (last 10 files) .

<c-cr>
open alphabetically next file.
<s-cr>
open alphabetically previous file .

recently edited file path are stored at openinig file (limit 10 item). stored file is placed at
$HOME/.vim_spinner_mru_files , or $VIM/.vim_spinner_mru_files , or $USERPROFILE/vim_spinner_mru_files .
current test version use code from mru.vim : Plugin to manage Most Recently Used (MRU) files (vimscript #521)

4.open next/previous tab .

<c-cr>
go to next tab.
<s-cr>
go to previous tab.
same with :tabnext, :tabNext .

5.open next/previous window .

<c-cr>
move cursor to next splitted window.
<s-cr>
move cursor to previous splitted window.

6.open next/previous quickfix line .

<c-cr>
go to next error in quickfix list.
<s-cr>
go to previous error in quickfix list.
same with :cnext, :cNext .

7.open next/previous quickfix file .

<c-cr>
go to next error file in quickfix list.
<s-cr>
go to previous error file in quickfix list.
same with :cnfile, :cNfile .

Other Usage:

switch search mode with number.
  1. C-S-CR> set switch spinner.vim mode to buffer type.
2
<c-s-cr>
set switch spinner.vim mode to same_directory_file type. 3
<c-s-cr>
set switch spinner.vim mode to most_recently_edited type. 4
<c-s-cr>
set switch spinner.vim mode to tab type. 5
<c-s-cr>
set switch spinner.vim mode to window type. 6
<c-s-cr>
set switch spinner.vim mode to quickfix type. 7
<c-s-cr>
set switch spinner.vim mode to quickfix_file type.

this key map display current spinner search mode.
<a-cr>
display current spinner mode .
<m-cr>
display current spinner mode .

Configurations: Action Key Map:

let g:spinner_nextitem_key = {mapping} let g:spinner_previousitem_key = {mapping} let g:spinner_switchmode_key = {mapping} let g:spinner_displaymode_key = {mapping}

for example, let g:spinner_nextitem_key = ',n' let g:spinner_previousitem_key = ',p' let g:spinner_switchmode_key = ',s' let g:spinner_displaymode_key = ',d'

caution!!

default mapping is for GUI. default mapping do not work on Windows DOS prompt, PowerShell, Mac OSX Terminal,,,

Initial Search Type:

let g:spinner_initial_search_type = {seach type number}

for example, let g:spinner_initial_search_type = 2
  1. : buffer (default)
2 : same_directory_file 3 : most_recently_edited 4 : tab 5 : window 6 : quickfix 7 : quickfix_file

Source Repository:

https://code.google.com/p/spinner-vim-plugin/
install details 1. open spinner-vim-plugin.vba with Vim editor. 2. extract spinner-vim-plugin with :source command.

source %
Powered by Google Project Hosting