MiniVim icon indicating copy to clipboard operation
MiniVim copied to clipboard

Mode visual bloc editing

Open Gadgetroch opened this issue 5 years ago • 3 comments

Good morning,

I'm trying to use mode visual bloc, i put the shortcut on other keyboard shortcut but it's doesn't work.

Visual bloc mode is used, but i can't use the shortcut I{number} - ESC for multiple edit lines.

Thank's for help

Gadgetroch avatar Jun 11 '20 11:06 Gadgetroch

Hello,

I'm not sure to fully understand your question, have you changed the visual bloc keyboard shortcut ?

To edit multiple lines, by default, you can press Ctrl+v to enter visual bloc, use arrow keys or hjkl to move the cursors (pressing 10j will select 10 lines bellow), press I (capital i) to enter insert mode, do your edit and finally press ESC to apply to all lines.

Does this help ?

sd65 avatar Jun 11 '20 12:06 sd65

Hello,

I made 'V' shift+v because i edit it.

But after that, what you say doesn't work, here my part of minivim.rc.

let g:currentmode={
    \ 'n'  : 'Normal',
    \ 'no' : 'N·Operator Pending',
    \ 'v'  : 'Visual',
    \ ''  : 'V·Line',
    \ 'V' : 'V·Block',
    \ 's'  : 'Select',
    \ 'S'  : 'S·Line',
    \ '^S' : 'S·Block',
    \ 'i'  : 'Insert',
    \ 'R'  : 'Replace',
    \ 'Rv' : 'VReplace',
    \ 'c'  : 'Command',
    \ 'cv' : 'Vim Ex',
    \ 'ce' : 'Ex',
    \ 'r'  : 'Prompt',
    \ 'rm' : 'More',
    \ 'r?' : 'Confirm',
    \ '!'  : 'Shell',
    \ 't'  : 'Terminal',
\}

Gadgetroch avatar Jun 11 '20 20:06 Gadgetroch

Hi,

If you only edited that part it shouldn't have changed anything related to key bindings. What you have done here is destroying the vim status line, those "modes" should not be edited. Are you trying to remap entering V-VBlock Shift+V ?

Let's try other leads :

  • Have you setup MiniVim as instructed in the README ? Copy-pasting the file does not work.
  • What is your OS, terminal ?

sd65 avatar Jul 14 '20 16:07 sd65