Skip to contents

Create a new config file from an existing config file. By default this is based on the basic.virmc.

Usage

rsvim_use_template(
  to = rsvim_default_path(),
  from = rsvim_example_path(),
  overwrite = FALSE
)

Arguments

to

String. File path to write the Vim config file.

from

String. File path to the config file to copy from.

overwrite

Logical. By default this function will error if there is already a file at the location. Use overwrite = TRUE to replace the existing file at to with the contents of from.

Value

Returns the to path invisibly.

Examples

if (FALSE) { # \dontrun{
rsvim_use_template()

rsvim_use_template(
  "path/to/my/custom/.virmc",
  "path/to/template/.virmc"
)
} # }