porqz / KeyboardLayoutSwitcher.vim

(OS X / macOS only!) Plugin for Vim that provides smart keyboard layout switching
19 stars 6 forks source link

Команды в Visual Mode выдают E481: No range allowed #3

Closed granin closed 7 years ago

granin commented 13 years ago

при нажатии ":" в Visual Mode в строке состояния отображается E481: No range allowed

По сути не возможно выполнять команды из визуального режима, например когда требуется выполнить команду над выделенным фрагментом.

проверено что проблема уходит при удалении плагина, по нажатию ":" в Visual Mode в строке состояния отображается положенное :'<,'>
и можно продолжать вводить команду которая выполнится для выделенного фрагмента.

OS X 10.6.6 MacVim Custom Version 7.3 (57) pathogen

radzha commented 13 years ago

Поддерживаю. Баг пора уже исправить!

A commented 9 years ago

+1

porqz commented 9 years ago

Окей, на выходных займусь.

VoronyukM commented 9 years ago

+1

VoronyukM commented 9 years ago

The line noremap : :silent call g:KLS.SwitchToDefaultInputSource()<CR>: causes the error. As a solution you may use nnoremap instead of norepam that means norepam only in normal mode. But that doesn't help to switch the layout after : pressing.

So I've commented the line.

porqz commented 9 years ago

I’ve been trying to find any solution to fix that, but it seems Vim do not give any API which can help. So, I can only remove the functionality. But I have no time for these improvements. Make a pull requests, and if it will be ok, I approve that.

f213 commented 8 years ago

I've made a pull qruest with this feature removed.

dmshvetsov commented 8 years ago

Add let g:kls_mappings = 0 to your vimrc to turn off the buggy mappings of the switcher.

Added in the 0c5c2b4 commit.