All Projects → junegunn → Vim Oblique

junegunn / Vim Oblique

DEPRECATED Improved /-search (experimental)

Labels

Projects that are alternatives of or similar to Vim Oblique

Vim Pomodoro
Vim plugin for the Pomodoro time management technique
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Vim Symfony
A vim plugin to handle symfony and all that stuff
Stars: ✭ 82 (-4.65%)
Mutual labels:  viml
Jasmine.vim
Jasmine Plugin for Vim
Stars: ✭ 84 (-2.33%)
Mutual labels:  viml
Vim Statline
Add useful informations to Vim statusline
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Closetag.vim
Functions and mappings to close open HTML/XML tags
Stars: ✭ 81 (-5.81%)
Mutual labels:  viml
Vimrc
Meteor/Web development centric vim config
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Conoline.vim
Highlights the line of the cursor only in the current window.
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Vim
Stars: ✭ 85 (-1.16%)
Mutual labels:  viml
Incsearch Easymotion.vim
Stars: ✭ 82 (-4.65%)
Mutual labels:  viml
Jekyll.vim
Automate common Jekyll tasks from Vim
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Xoria256.vim
Finely tuned soft gamma, 256 colors, dark background, gvim == vim
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Vim Reload
Automatic reloading of Vim scripts ((file-type) plug-ins, auto-load/syntax/indent scripts, color schemes)
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Rocannon
Vim for Ansible playbooks: omni-completion, abbreviations, syntax, folding, K-docs, and colorscheme
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Vim Task
vim task plugin
Stars: ✭ 84 (-2.33%)
Mutual labels:  viml
Vim Plugin Viewdoc
Vim plugin: flexible viewer for any documentation
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Use vim as ide
use vim as IDE
Stars: ✭ 9,067 (+10443.02%)
Mutual labels:  viml
Nodejs Vagrant
Stars: ✭ 86 (+0%)
Mutual labels:  viml
Vim Jira Complete
AutoComplete JIRA issues in Vim
Stars: ✭ 85 (-1.16%)
Mutual labels:  viml
Languagetool
Grammar checker for English, French, German (etc.) in Vim
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml

vim-oblique travis-ci

Disclaimer: this plugin has many issues that cannot be easily fixed. I suggest that you try simpler alternatives like vim-evanesco or vim-slash.

Improved /-search for Vim.

  • Different highlight for the match under the cursor
  • Automatically clears search highlight when cursor is moved
  • Does not append short patterns to search history
  • Readline key bindings
  • Fuzzy-search
  • Improved star-search (visual-mode, highlighting without moving)

Installation

Use your favorite plugin manager. vim-oblique requires vim-pseudocl.

With vim-plug:

Plug 'junegunn/vim-pseudocl'
Plug 'junegunn/vim-oblique'

Usage

vim-oblique overrides the following keys by default:

Default Key <Plug> map Description
/ <Plug>(Oblique-/) Forward search
? <Plug>(Oblique-?) Backward search
z/ <Plug>(Oblique-F/) Forward fuzzy-search
z? <Plug>(Oblique-F?) Backward fuzzy-search
n <Plug>(Oblique-n) Repeat the last search
N <Plug>(Oblique-N) Repeat the last search in the opposite direction
<Plug>(Oblique-n!) Repeat the last search (always forward)
<Plug>(Oblique-N!) Repeat the last search (always backward)
* <Plug>(Oblique-*) Forward star-search (in normal and visual mode)
# <Plug>(Oblique-#) Backward star-search (in normal and visual mode)
g* <Plug>(Oblique-g*) Forward star-search (no word boundary match)
g# <Plug>(Oblique-g#) Backward star-search (no word boundary match)

(Unlike the default star-search, the overridden version will not move the cursor)

Customization

Maps

Use the <Plug> maps in the above table to customize the maps.

Options

  • g:oblique#min_length (default: 3)
    • Patterns shorter than this will not be added to search history
  • g:oblique#incsearch_highlight_all (default: 0)
    • To highlight all incremental matches (requires incsearch)
  • g:oblique#clear_highlight (default: 1)
    • To clear search highlight or not
  • g:oblique#prefix (default: '')
    • Option to prefix pattern with
  • g:oblique#enable_cmap (default: 1)
    • Enable experimental cmap emulation

Events

You can customize the behavior of vim-oblique by registering custom actions to the following events of User group.

Event When
Oblique /, ?, z/, z?
ObliqueStar *, #, g*, g#
ObliqueRepeat n, N

The following example will move your cursor line to the middle of the screen after search.

autocmd! User Oblique       normal! zz
autocmd! User ObliqueStar   normal! zz
autocmd! User ObliqueRepeat normal! zz

Highlighting

Define the following highlight groups to change the color:

  • ObliquePrompt (default: linked to Label)
  • ObliqueLine (default: linked to None)
  • ObliqueCurrentMatch (default: linked to IncSearch)
  • ObliqueCurrentIncSearch (default: linked to IncSearch)

Example

hi! def link ObliqueCurrentMatch Keyword
hi! def link ObliquePrompt       Structure
hi! def link ObliqueLine         String

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].