Friday, April 14, 2023

Re: Quick Vim question

This is from my file where I configure the cursor for MacVim, probably works under windows too.  You can either add it to your vimrc file or put it in a separate file and source it from there.  or this will give ideas on where in help to look.

```
" Customize Cursor Settings
"
" Set cursor to be just an underline"
" set guicursor=n-c:hor20,v:hor25,ve:ver35,o:hor50,i-ci:ver25,\r-cr:hor35-ErrorMsg,sm:block

  set guicursor =n-c:hor25            " normal and cmdline mode
  set guicursor+=v:hor30              " visual mode
  set guicursor+=ve:ver35             " visual with selection
  set guicursor+=o:hor50              " operator pending
  set guicursor+=i-ci:ver35           " insert mode
  set guicursor+=r-cr:hor30-ErrorMsg  " replace and cmdline replace
  set guicursor+=sm:block             " showmatch in insert mode
  set guicursor+=a:blinkwait300-blinkon300-blinkoff300  " all modes

" suggested by John Little
" set guicursor=a:blinkwait200-blinkon200-blinkoff200

  highlight    Cursor guibg=#0F8F0F
  highlight   lCursor guibg=#A000A0   " where is this used?
```
On Friday, April 14, 2023 at 3:08:02 AM UTC-4 meine wrote:
On Thu, Apr 13, 2023 at 03:48:35PM -0400, 'Susan McElheny' via vim_use wrote:
> I've used the Vi editor on Unix for over 30 years and had to recently
> switched my software to Windows so I am now using Vim on my c:drive. I'm
> confused about how to change settings. When I do a search all the items
> are highlighted but there is no indicator for which word in the search I am
> currently on. How do make Vim indicate which search word I'm currently on?

This looks like the colour of your cursor is the same as the
selection/marking of the word that you search.

Changing the colour of the cursor isn't that hard:

* Find out what colorscheme you use. This might be in your .vimrc, but
* can also be found with the `:color` command;

* Open that color-file in ~/.vim/colors/ or alike;

* J to the lines that define the colour of your cursor and change the
* one for selections to a different value. You can use a colour value
* that is used in another setting. Just try something that is completely
* different, e.g. yellow instead of blue;

* Preferrably save the changed color file under a different name. I
* changed `nighted.vim` to `nighted_16b` for that reason. Set that new
* colorscheme as your default. The new name prevents the customized file
* to be overwritten at an update or so in future. (my '16b' has something
* to do with the use of 16 colours in TTY).

Hope this helps you!

KR,

//meine

--
--
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/7b2bc63c-a648-442e-b195-248b7a6b28ban%40googlegroups.com.

No comments: