Friday, January 19, 2024

Re: How to make gvim/vim-gtk3 behave exactly like vim

On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
> Am 19/01/2024 um 16:25 schrieb Gary Johnson:
> >On 2024-01-19, 'Ottavio Caruso' via vim_use wrote:
> >>Am 19/01/2024 um 13:26 schrieb jr:
> >>>hi,
> >>>
> >>>On Fri, 19 Jan 2024 at 12:26, 'Ottavio Caruso' via vim_use
> >>><vim_use@googlegroups.com> wrote:
> >>>>I have installed and uninstalled gvim many times. I have to re learn
> >>>>some (many) keyboard combinations. Is there a safe way to mod gvim to
> >>>>make it behave exactly like vim on the terminal?
> >>>
> >>>not sure I understand exactly, but you can create a '~/.gvimrc' to
> >>>complement your '~/.vimrc'.
> >>>
> >>
> >>And what should I put into ~/.gvimrc that would make gvim behave like vim?
> >
> >You don't need a separate gvimrc, just a vimrc. Using just the one
> >configuration file makes it simpler to keep the settings the same
> >for both gvim and vim.
> >
> >I don't know why you would have to learn different keyboard
> >combinations. Please elaborate on that.
>
> Then you say:
> >
> >It has been a goal of mine, too, to make gvim indistinguishable from
> >terminal vim. That's largely to make gvim on Windows behave the
> >same as terminal vim on Linux. I think I've done pretty well. As
> >it is, I sometimes have to check the title bar to see which one I'm
> >using.
>
> You answered your own question.

It is true that there are keyboard combinations available in the GUI
that are not available in the terminal, but anything that can be
done in the terminal can be done in the GUI using the same keyboard
combinations. You don't have to learn different keyboard
combinations, just always use those that work in the terminal.

> >I mostly use vim in an xterm on Linux, so I use only features
> >available in that configuration out of habit and don't miss any that
> >are available only in the GUI. I use a custom color scheme that
> >pretty much preserves vim's default colors and keeps them the same
> >on both gvim and vim.
>
> I also use vim on xterm on Linux. It just is difficult cut/copy/paste
> data to/from, for example a web browser. Yes, it is possible, it is
> just not that neat.

That's why I use autocutsel. Then I don't have to think about it.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20240119165931.GD26982%40phoenix.

No comments: