GithubHelp home page GithubHelp logo

vim-over's Introduction

over.vim 3.0

Screencapture

Preview in the command line window

test

Preview in the over command line

test

Buffer word complete in the over command line

test

License

NYSL

NYSL English

Change log

  • 3.0 (2015/04/01)

  • Add digraph

  • Add <C-q>

  • Import cmap/cnoremap setting

  • <C-w> by regexp

  • Multi lhs by keymapping

  • Support <expr> keymapping

  • Refactoring

  • 2.0

  • Refactoring

  • Change cursor highlight

  • Add highlighting :/ and :%g/

  • No input specital keys(e.g. <BS>, <C->)

Special Thanks

vim-over's People

Contributors

deris avatar gbin avatar haya14busa avatar joelmo avatar justinmk avatar osyo-manga avatar poohzrn avatar resolritter avatar seletskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-over's Issues

Wrong capture group index

Here the problem:

screenshot 2013-11-11 21 50 14

With a capture group \1 I expect the substitution to be what the plugin outputs using the capture group \2:

screenshot 2013-11-11 21 50 42

キーマッピングが効かないバグ

以下の設定してみましたが、キーが置き換えられず、<03> のようにそのまま入力されてしまいます。

OverCommandLineNoremap <C-c> <Esc>
OverCommandLineNoremap <C-j> <CR>

g:over_command_line_key_mappings = {
  \ "\<C-c>": "\<Esc>",
  \ "\<C-j>": "\<CR>",
\ }

OverCommandLineに入力でE803

特定条件下でOverCommandLineになんらかの入力を与えることで以下の例外が発生します。

function <SNR>302_finish..<SNR>302_reset_match の処理中にエラーが検出されました:
行    3:
E803: ID not found: 60
function over#command_line..over#command_line#start の処理中にエラーが検出されました:
行    3:
E171: :endif がありません

発生箇所はこちらです。

autoload/over/command_line/substitute.vim: s:reset_match()


環境は以下です。
Windows7 64bit
Kaoriya Vim 7.4.648


再現条件は不明ですが、
OverCommandLineでEscやを押下した以後?
必ず発生するようになります。
( Vim起動直後には発生しません )

Unknown Operator Error '\z

Hi there,

I'm trying to use the \zs and \ze operators within my regular expression however I receive this error as soon as I type \z

Version: 3.0, 10f7f7c

How to reproduce:

  1. Initiate OverCommandLine command :OverCommandLine
  2. Start Regular Expression s/ (This also happens for %s/)
  3. Type \z

Full Error:
vital-over(_over):function <SNR>154_substitute_preview..<SNR>154_matchadd, line 2 Vim(call):E867: (NFA) Unknown operator '\z

screen shot 2015-04-15 at 12 47 04 pm

Vim 7.3 or above. とエラーが表示される

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 21 2012 19:37:18)
Compiled by [email protected]
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype
+path_extra -perl +persistent_undo +postscript +printer -profile -python
-python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses

Concealが無効になる

どうやら、特定のsyntax groupの中ではconcealが無効になるようです。
syntaxのhelpを読んでいますが、僕には修正が難しそうなので報告しておきます。

<% ('aiu')
  1. :OverCommandLine
  2. > s/aiu/a
  3. 表示が崩れる

2014-04-29 2 28 08

keepp[atterns] causes vim-over to delete old search history items

When you recall, type, or execute a substitution command with keepp[atterns], e.g. :keepp %s/foo/bar/g, vim-over deletes old search history items - keepp[atterns] prevents anything from being added to the search history.

It seems like these two calls to histdel() are causing the issue: 1 2

Getting Error in linux.

Error:
E488.Trailing characters
vim 7.3 or above and +conceal.
need strchars().

Please help what i have to modified in script?

enhancement

I would like to suggest an option to hide the original match in substitution after the / is typed, as suggested on reddit here.

preview does not consider 'g' flag

In Vim, the 'g' option of :s command determines whether all matches on a line are replaced, or only the first match. But when vim-over shows the replacement preview, it behaves as if 'g' flag was specified. (However, when user invokes the command with <enter>, the actual substitution is correct.)

Enter the following in :OverCommandLine:

%s/a/b

vim-over shows all a matches being replaced with b. It should only show the first match (per line). However, if user then adds the 'g' option:

%s/a/b/g

then vim-over should show all matches being replaced.

Note that vim has a 'gdefault' option which automatically adds 'g' flag to :s command. If gdefault=1 then vim-over should behave as if 'g' flag was specified.

Thanks for a great plugin!

Strange substitute behaviour

Extra characters appear when you enter the replacement. They do not disappear when you exit overcmdline mode, and I can't remove them by using undo .

demo

Think it is a problem of compatibility, so here is the list of bundles I use:

NeoBundle 'Lokaltog/vim-easymotion'
NeoBundleLazy 'Raimondi/delimitMate'
NeoBundle 'Shougo/neocomplete.vim'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/vimproc.vim', { 'build' : { 'unix' : 'gmake' } }
NeoBundle 'SirVer/ultisnips'
NeoBundle 'The-NERD-Commenter'
"NeoBundle 'Yggdroot/indentLine'
NeoBundle 'abolish.vim'
NeoBundle 'cakebaker/scss-syntax.vim'
NeoBundle 'christoomey/vim-tmux-navigator'
NeoBundle 'cmdline-completion'
NeoBundle 'ctrlp.vim'
NeoBundle 'eugen0329/splitjoin.vim'
NeoBundle 'f.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'fugitive.vim'
NeoBundle 'hail2u/vim-css3-syntax'
NeoBundle 'haya14busa/incsearch.vim'
NeoBundle 'honza/vim-snippets'
NeoBundle 'itchyny/lightline.vim'
NeoBundle 'jelera/vim-javascript-syntax'
NeoBundle 'jonathanfilip/vim-lucius'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'nelstrom/vim-visual-star-search'
NeoBundle 'osyo-manga/vim-over'
NeoBundle 'ruby-matchit'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'slim-template/vim-slim.git'
NeoBundle 'surround.vim'
NeoBundle 'terryma/vim-multiple-cursors'
NeoBundle 'textobj-rubyblock'
NeoBundle 'textobj-user'
NeoBundle 'tpope/vim-endwise'
NeoBundle 'tpope/vim-rails'
NeoBundle 'tpope/vim-rvm'
NeoBundle 'tpope/vim-scriptease'
NeoBundle 'vim-ruby/vim-ruby'
NeoBundle 'vim-scripts/mru'
NeoBundle 'yssl/autocwd.vim'
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundleLazy 'L9'
NeoBundleLazy 'Tabular'
NeoBundleLazy 'Valloric/MatchTagAlways' , {'autoload':{'filetypes':['html', 'erb', 'slim', 'css', 'sass', 'scss']}}
NeoBundleLazy 'abra/vim-abra'
NeoBundleLazy 'airblade/vim-gitgutter'
NeoBundleLazy 'ajh17/Spacegray.vim'
NeoBundleLazy 'cdmedia/itg_flat_vim'
NeoBundleLazy 'chriskempson/base16-vim'
NeoBundleLazy 'croaker/mustang-vim'
NeoBundleLazy 'delview'
NeoBundleLazy 'desert-warm-256'
NeoBundleLazy 'edkolev/tmuxline.vim'
NeoBundleLazy 'gosukiwi/vim-atom-dark'
NeoBundleLazy 'gregsexton/gitv', {'depends' : ['fugitive.vim']}
NeoBundleLazy 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}
NeoBundleLazy 'justinmk/vim-syntax-extra', {'autoload':{'filetypes':['flex', 'lex', 'bison']}}
NeoBundleLazy 'kien/rainbow_parentheses.vim'
NeoBundleLazy 'mattn/emmet-vim', {'autoload': { 'filetypes': ['html', 'erb', 'slim', 'css', 'sass', 'scss'] } }
NeoBundleLazy 'mbbill/desertEx'
NeoBundleLazy 'rhysd/vim-clang-format'
NeoBundleLazy 'rking/ag.vim'
NeoBundleLazy 'terryma/vim-smooth-scroll'
NeoBundleLazy 'vim-scripts/FuzzyFinder'
NeoBundleLazy 'vim-scripts/Hints-for-C-Library-Functions'
NeoBundleLazy 'vim-scripts/Mustang2'
NeoBundleLazy 'vim-scripts/lilypink'
NeoBundleLazy 'xterm-color-table.vim'

highlight error on msysgit

msysgit bash terminal has only 16 colors, and its default cursor higlight is:

:hi Cursor
Cursor         xxx cleared

which is unexpected by over#command_line#init().

%s/foo/foo/で文字列が置き換わり切らない

問題
元文字列 == 置き換え後文字列
であると以下の問題が起きます。

exam) %s/foo/foo/g

また、ignorecaseである場合は上記の比較にignorecaseが適用されます。
なのでignorecaseの場合のみ以下でも問題が起きます。

exam) %s/foo/Foo/g

実行操作

nnoremap <silent><expr> <C-k><C-s> ':OverCommandLine %s/\<' . expand('<cword>') . '\>/<CR>'

( の<C-k><C-s> )

(OverCommandLine)

> %s/\<ExecApplyOrder\>/execApplyOrder/g

ここで<CR>すると

対象文字列が

`os`execApplyOrder`om`execApplyOrder`oe`

となります。
( 実際はconcealとsyntax highlightされ

execApplyOrderexecApplyOrder

と表示されます)

When canceling a vim-over operation the file is folded

  • Having a file with folds, and setting foldlevel=0 (either through vimrc or with modeline as in my case)
  • Expand all the folds with zR
  • Enter to :OverCommandLine and cancel the action (ie: using esc)
  • Then the file is folded again when it should've been stayed open.

ago 23 2015 13 29

<c-r><c-w>, <c-r>/, and other ctrl-r registers

If possible, it would be very useful to support the various ctrl-r keys. For example, after invoking vim-over:

  • ctrl-r ctrl-w inserts the word under the cursor (see :help c_CTRL-R_CTRL-W)
  • ctrl-r / inserts the last search string (the @/ register)
  • ctrl-r " inserts the default register

Cannot process capturing groups or specify number of occurences

OS: Mac 10.9
Vim version: stable 7.4.052, HEAD
Other Plugins installed: Just Vundle

Steps to recreate:

  • :OverCommandLine
  • %s/\( OR %s/.\{
Error detected while processing function <SNR>32_substitute_preview:
line   23:
E54: Unmatched \(
E475: Invalid argument: \(

Configure vim-over to be able to replace default search

Hi there,

I use vim-over constantly when I'm working, it's very useful to have that live preview.

What I really love about it, is that I can build my regular expressions live while I'm typing it so I can quickly have a reference to know if my pattern is proper or not.

What would be extremely great is if :OverCommandLine was capable of replacing the default vim search.

So instead of the usual > s/foo/bar you can just do > /foo

Now this actually already works but there are a couple issues with it.

  1. :OverCommandLine does not respect the incsearch setting. ( it will not immediately jump to the first search term as you type it ). Manual Page for Reference
  2. Pressing Enter after typing your search, will jump to the first search term, however it does not go to the word itself of the search result only the beginning of the line it is on.

If you'd like a perfect example of what I'm looking for, this plugin actually does exactly what I'm describing. https://github.com/haya14busa/incsearch.vim

Vim-Over can technically do exactly what incsearch.vim can do but with small amendments to the above issues.

Please let me know what you think.
Thanks

:OverCommandLine<CR> will throw exception

i'm on commit 46a3e99, and when I use :OverCommandLine, I'll get this error:

Error detected while processing function <SNR>133_import..<SNR>133__import:
line   12:
E605: Exception not caught: vital: module not found: Coaster.Highlight
Press ENTER or type command to continue

which obviously indicates a missing module in autoload/over/command_line.vim, line 13

let me guess, you forgot to git add autoload/vital/_over/Coaster/Highlight.vim or something?

Doesn't highlight substitues with Vim 7.4

I can't get vim-over to highlight my substitute command. This is the output of :version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 20 2014 16:09:22)
Included patches: 1-273
Modified by [email protected]
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl             -clipboard       +cursorshape     +extra_search    -hangul_input    +listcmds        +mouse_gpm       -mzscheme        -python3         +startuptime     +termresponse    +viminfo         -xsmp
+arabic          +cmdline_compl   +dialog_con      +farsi           +iconv           +localmap        -mouse_jsbterm   +netbeans_intg   +quickfix        +statusline      +textobjects     +vreplace        -xterm_clipboard
+autocmd         +cmdline_hist    +diff            +file_in_path    +insert_expand   -lua             +mouse_netterm   +path_extra      +reltime         -sun_workshop    +title           +wildignore      -xterm_save
-balloon_eval    +cmdline_info    +digraphs        +find_in_path    +jumplist        +menu            +mouse_sgr       -perl            +rightleft       +syntax          -toolbar         +wildmenu        -xpm
-browse          +comments        -dnd             +float           +keymap          +mksession       -mouse_sysmouse  +persistent_undo -ruby            +tag_binary      +user_commands   +windows
++builtin_terms  +conceal         -ebcdic          +folding         +langmap         +modify_fname    +mouse_urxvt     +postscript      +scrollbind      +tag_old_static  +vertsplit       +writebackup
+byte_offset     +cryptv          +emacs_tags      -footer          +libcall         +mouse           +mouse_xterm     +printer         +signs           -tag_any_white   +virtualedit     -X11
+cindent         +cscope          +eval            +fork()          +linebreak       -mouseshape      +multi_byte      +profile         +smartindent     -tcl             +visual          -xfontset
-clientserver    +cursorbind      +ex_extra        +gettext         +lispindent      +mouse_dec       +multi_lang      +python          -sniff           +terminfo        +visualextra     -xim
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -exp ort-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

And this is my vimrc

call plug#begin('~/.vim/plugged')

Plug 'osyo-manga/vim-over'

call plug#end()

let g:over_enable_auto_nohlsearch = 1
let g:over_enable_cmd_window = 1

Inability to traverse next occurrence of pattern

After installing vim-over, I have desired to replace the default search built-in with OverCommandLine's enhanced version. Therefore, I have added the following entries into .vimrc:

nnoremap / :OverCommandLine<CR>/
let g:over#command_line#search#enable_move_cursor = 1 "so that :/ moves me to the searched word, instead of the beginning of the line

It works quite well. However, I noticed that the 'n' key is still mapped to the regular, unenhanced search. My intention is to remap it to vim-over's equivalent. My understanding is that the supplied replacement is (over-cmdline-substitute-jump-pattern).

I cannot get it to work. I've tried triggering the key/command in a variety of ways, nmapping, OverCommandLineMapping, OverCommandLineNoremapping and else. Nothing occurs when I trigger it.

I have edited autoload/over/command_line/substitute.vim and inserted the following on line 211, right after function! s:on_charpre():

if over#command_line#is_input(over#command_line#getline()) echo 'getline() and is_input() in accordance' else echo 'getline() and is_input() NOT in accordance' endif

The condition always fails. What's more, if I make explicit checks, like this:
if over#command_line#getline() == 'example' echo 'Passed'' else echo 'Failed' endif

I can get it to pass if I type "example".

区切りでの移動マッピングの追加

機能追加要望です。

区切り文字間の移動マッピングの追加を希望します。

%s!pattern!string!g

上記のように入力してある場合に、区切り文字!を超えてpattern, stringを間を移動したいです。

利用するタイミング

  • 全行入力後に、pattern位置まで戻るのが面倒なとき

Sometimes reselects the last visual selection when invoked

Often when I use the plugin, do some editing, select some text, and then use the plugin again, it will re-select the last visual selection from then on. No matter how many times I've tried Escing, the selection will not stop appearing unless I restart Vim.

The plugin does not use the selection to narrow down the search, it just looks like it selects it for no reason.

E132: Function call depth is higher than 'maxfuncdepth'

I just installed the plugin and ran it on a file like so:

:OverCommandLine
> %s/day/weekday

and got the following error:

vital-over(_over) Exception : function over#command_line[2]..over#command_line#start[18]..80[1]..96[9]..95[10]..94[23]..93[12]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>
114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping
[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>11
4_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[1
5]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_
unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmapping[15]..<SNR>114_unmap Vim(return):E132: Function call
 depth is higher than 'maxfuncdepth'

Repeat command is bugged with cw (changeword) in command window

With the following vimrc:

set nocompatible              " be iMproved, required

if has('vim_starting')
  " Required:
  source ~/.vim/autoload/plug.vim
endif

call plug#begin()
Plug 'osyo-manga/vim-over'
call plug#end()

In an empty buffer, do :

:%s/foo/bar/g
q: 
yyp
ffcwbar<Esc>fb.

I then get in the command window:

%s/foo/bar/g
%s/barbarbar/g

but the expected result would be

%s/foo/bar/g
%s/bar/bar/g

Clear highlight

Is it possible to clear the highlight if you want to abort a search and replace?

<C-v> が効かない

ドキュメントに で、レジスタ * を貼り付けられるとありますが、
いつかのアップデートから効かなくなってしまっています。

ソースを見ても該当するコードが見当たらないのですが、廃止になったのでしょうか?

また、g:over_command_line_key_mappings に以下のように記述しても動作しないのですが、原因を教えていただけますか?

  "\<C-v>": "\<C-r>*"

OverCommandLineが正常に起動しない

windows 7 64bit環境、kaoriya版 vim 7.4 2015-3-1ビルド版で、最新のvim-overをneobundle経由でインストールし使用したところ下記のエラーが発生しOverCommandLineが使用できません。
VimプラグインはNeobundleとvim-overのみを使用しています。

function <SNR>92__to_modulename の処理中にエラーが検出されました
行 1:
E877: (FNA regexp) Invalid character class: 118
E63: \_ の無効な使用方法です
function <SNR>56_import..<SNR>56__import..<SNR>56__build_module..<SNR>56_loadの処理中にエラーが検出されました
行 19:
E171: :endifがありません
function <SNR>56_import..<SNR>56__import..<SNR>56__build_moduleの処理中にエラーが検出されました:
行  18:
E171: :endifがありません

Visual-Line Mode Errors?

How to reproduce error:

  1. Select a Visual-Line Block V5j
  2. Press : and :'<,'> will appear
  3. Type OverCommandLine e.g.: :'<,'>OverCommandLine
  4. Hit Enter
  5. Something similar to this will appear >25,30
  6. Type search and replace regex e.g.: >25,30s/foo/bar
  7. Hit Enter

This is an image of the error - http://d.pr/i/f8Q6/62VrBRq1

c flag no longer works to confirm substitutions

It seems that commit 67a404a may have introduced a bug. Or at least changed the functionality that I have been used to.

If I try to replace a pattern everything seems correct until I press the c if for example %s/old/new/gc then the behavior is strange and does not work properly. If I roll back to commit 9e43457 it functions as expected.

Here is a gif of the strange behavior.
over

Fix complete words

fork #46

So, I guess, autocompletion should be smart enough to complete words even there is \v in the beginning of the line.

Error handling in vim-over

For example when using the search module when typing > /\%, this error comes up:

Error detected while processing function <SNR>154_main..<SNR>154_search_hl_on:
line    2:
E867: (NFA) Unknown operator '\%
E475: Invalid argument: \c\%
Press ENTER or type command to continue

After pressing any key, the command line have disappeared. Maybe vim-over should catch all errors with a try catch when executing the auto-commands, so you still can stay in the command line?

vim-over gets invoked in insert-mode

It seems vim-over starts matching in insert-mode. This can get really annoying when writing plaintext documents. Every time a word ends with an 's', and is followed by a comma, vim starts matching the following word. When this happens, certain key combinations will also start acting weird, inserting text like <Plug>(over-cmdline-something) in the buffer.

example_1

example_2

Exception: Function call depth is higher than 'maxfuncdepth'

I received this error from NeoBundle when trying to use osyo-manga/vim-over and osyo-manga/vim-hopping:

vital-over(_over) Exception : function 
neobundle#autoload#_command[11]..over#command_line[2]..
over#command_line#start[18]..593[1]..609[9]..608[10]..607[23]..606[12]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..<SNR>232_unmapping[15]..
<SNR>232_unmapping[15]..<SNR>232_unmapping[15].. 
Vim(return):E132: Function call depth is higher than 'maxfuncdepth'

It just happens like this today. Yesterday everything was fine. I'm not sure what happened.

Using <c-r>(register) results in default yank register

Using <c-r>a within the search and replace uses the default yank register rather than the (in this case) "a register, regardless if a is set or not.

However using the same technique in the regular search and replace works as expected.

Recreating the issue

  1. Set any text inside default yank register Vy
  2. Set any text inside a yank register V"ay
    (make sure it is different than default yank text)
  3. Initiate :OverCommandLine
  4. Perform a call to previous register <c-r>a

Handle input from unbound keys

Can input from unbound keys be handled differently, for example if I press I get: > <80><fc>^D<80>kb. I use MacVim, this does not happen in the terminal. It also happens sometimes that the cursor disappears for me, but I'm not sure when this happens, sometimes when i reopen :OverCommandLine the cursor is not there.

generated doc/tags-ja

@osyo-manga

I'm using vim-over as a submodule based plugin via pathogen, and I've added call pathogen#helptags() in my vimrc.

What happens is that, a tags file called, tags-ja is generated in doc/ and this makes the submodule dirty and makes it hard to update submodules, (Since, one has to first remove that doc/tags-ja file, to make the submodule clean, and then update the git submodules)

Since, one can generate tags and then call :h vim-over, Would it be ok to add the genereated output tags-ja file to a .gitignore so that only that output file gets ignored ?

Thanks in advance !

レジスタの内容を貼り付けた時に escape する機能が欲しい

具体的には正規表現として特別な意味をもつ /.*$^~ と、
改行文字をエスケープ表示(\n\r)にして欲しいです。

例えばレジスタの内容が

$foo.bar
baz / 2 + 1

の場合、

> %s/|

| をカーソル位置として、ここで貼り付けたとき、

> %s/$foo.bar
baz / 2 + 1

ではなく

> %s/\$foo\.bar\nbaz \/ 2 + 1

このようになって欲しいです。

'<,'>での使用

いつもお世話になっております:))

OverCommandLineについて、範囲指定で使用したときの挙動について提案です。
個人で解決出来る話なので、読み飛ばしてくださって大丈夫です。

個人的に、20,30sといった形式でなく'<,'>sの形式の方がhistory検索がしやすくて良いのでは、と思いました。
ただ、個人で使う分には.vimrcで上書きすれば良いので、Issueはすぐ閉じておきます...!

command! -range -nargs=*
\  OverCommandLine
\  call over#command_line(
\    g:over_command_line_prompt,
\    <line1> != <line2> ? printf("'<,'>%s", <q-args>) : <q-args>
\)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.