Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mode visual bloc editing #34

Open
Gadgetroch opened this issue Jun 11, 2020 · 3 comments
Open

Mode visual bloc editing #34

Gadgetroch opened this issue Jun 11, 2020 · 3 comments

Comments

@Gadgetroch
Copy link

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

@sd65
Copy link
Owner

sd65 commented Jun 11, 2020

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 ?

@Gadgetroch
Copy link
Author

Gadgetroch commented Jun 11, 2020

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',
\}

@sd65
Copy link
Owner

sd65 commented Jul 14, 2020

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants