Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
93 lines
2.8 KiB
Markdown
93 lines
2.8 KiB
Markdown
vim-asterisk: * -Improved
|
|
========================
|
|
[![](https://travis-ci.org/haya14busa/vim-asterisk.svg?branch=master)](https://travis-ci.org/haya14busa/vim-asterisk)
|
|
[![](https://ci.appveyor.com/api/projects/status/uurxg9ips6h2cyd3/branch/master?svg=true)](https://ci.appveyor.com/project/haya14busa/vim-asterisk/branch/master)
|
|
[![](https://drone.io/github.com/haya14busa/vim-asterisk/status.png)](https://drone.io/github.com/haya14busa/vim-asterisk/latest)
|
|
[![](https://img.shields.io/github/release/haya14busa/vim-asterisk.svg)](https://github.com/haya14busa/vim-asterisk/releases)
|
|
[![](http://img.shields.io/github/issues/haya14busa/vim-asterisk.svg)](https://github.com/haya14busa/vim-asterisk/issues)
|
|
[![](http://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
|
[![](http://img.shields.io/badge/doc-%3Ah%20asterisk.txt-red.svg)](doc/asterisk.txt)
|
|
|
|
Introduction
|
|
------------
|
|
|
|
asterisk.vim provides improved * motions.
|
|
|
|
### 1. stay star motions (z prefixed mappings)
|
|
z star motions doesn't move your cursor.
|
|
|
|
![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_z_star.gif)
|
|
|
|
### 2. visual star motions
|
|
Search selected text.
|
|
|
|
![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_visual_star.gif)
|
|
|
|
### 3. Use smartcase unlike default one
|
|
Default behavior, which sees ignorecase and not smartcase, is not intuitive.
|
|
|
|
### 4. Keep cursor position across matches
|
|
It is handy for refactoring to keep cursor position while iterating over matches.
|
|
|
|
Add following line in your vimrc to enable this feature. `let g:asterisk#keeppos = 1` Default: 0
|
|
|
|
![](https://raw.githubusercontent.com/haya14busa/i/master/vim-asterisk/asterisk_keeppos.gif)
|
|
|
|
|
|
Installation
|
|
------------
|
|
|
|
[Neobundle](https://github.com/Shougo/neobundle.vim) / [Vundle](https://github.com/gmarik/Vundle.vim) / [vim-plug](https://github.com/junegunn/vim-plug)
|
|
|
|
```vim
|
|
NeoBundle 'haya14busa/vim-asterisk'
|
|
Plugin 'haya14busa/vim-asterisk'
|
|
Plug 'haya14busa/vim-asterisk'
|
|
```
|
|
|
|
[pathogen](https://github.com/tpope/vim-pathogen)
|
|
|
|
```
|
|
git clone https://github.com/haya14busa/vim-asterisk ~/.vim/bundle/vim-asterisk
|
|
```
|
|
|
|
Usage
|
|
-----
|
|
|
|
```vim
|
|
map * <Plug>(asterisk-*)
|
|
map # <Plug>(asterisk-#)
|
|
map g* <Plug>(asterisk-g*)
|
|
map g# <Plug>(asterisk-g#)
|
|
map z* <Plug>(asterisk-z*)
|
|
map gz* <Plug>(asterisk-gz*)
|
|
map z# <Plug>(asterisk-z#)
|
|
map gz# <Plug>(asterisk-gz#)
|
|
```
|
|
|
|
If you want to set "z" (stay) behavior as default
|
|
|
|
```vim
|
|
map * <Plug>(asterisk-z*)
|
|
map # <Plug>(asterisk-z#)
|
|
map g* <Plug>(asterisk-gz*)
|
|
map g# <Plug>(asterisk-gz#)
|
|
```
|
|
|
|
To enable keepCursor feature:
|
|
```vim
|
|
let g:asterisk#keeppos = 1
|
|
```
|
|
|
|
Special thanks
|
|
--------------
|
|
|vim-asterisk| uses the code from vim-visualstar for visual star feature.
|
|
|
|
- Author: thinca (https://github.com/thinca)
|
|
- Plugin: https://github.com/thinca/vim-visualstar
|
|
|
|
Author
|
|
------
|
|
haya14busa (https://github.com/haya14busa)
|
|
|