Monday, November 20, 2023

Re: How do you set options in the _vimrc file?

On 2023-11-21 00:37, Christian Castro wrote:
> How do you change the options in the _vimrc file?

It's just a text-file, so you can put in the settings you want.
So you can just put these commands in that file:

set nohlo
set ts=4
set sw=4

> Please let me know if the _vimrc file is editable from gVim or
> am I going about this the wrong way (and what the right way is).

So yes, you should be able to edit it like any other file. It even
comes with a handy built-in variable, so within vim you can

:e $MYVIMRC

and it will open the appropriate file.

Alternatively, you can use the

:mkvimrc

command to take whatever your current settings are and write them
to your vimrc file.

-tim

:help $MYVIMRC
:help :mkvimrc




--
--
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/ZVwB3R6pRsQzFWSs%40thechases.com.

No comments: