Forrest logo
back to context overview

vim

List of commands for vim:

  • vim:ai:0675b I am configuring my own repo file on a virtual machine named annex-repo-02. The software packages I wish to install are in the /data/repo/epel/x86_64 directory. I am getting the error "Failed to search for file: /etc/yum.repos.d/:/annex-repo-02/epel/x86_64 was not found" when trying to run dnf upgrade.
    $ vim /etc/yum.repos.d/annex-repo-02.repo
    try on your machine
    explain this command
  • vim:ai:56ee2 Edit the default SSL configuration file for Apache
    $ vim /etc/apache2/sites-available/default-ssl.conf
    try on your machine
    explain this command
  • vim:ai:c4dbc Open the 40_custom file in the /etc/grub.d directory using the vim text editor
    $ vim /etc/grub.d/40_custom
    try on your machine
    explain this command
  • vim:ai:c78d7 Create a new repo file for your repository at the specified location
    $ vim /etc/yum.repos.d/myrepo.repo
    try on your machine
    explain this command
  • vim:ai:d165c Open a new file named Dockerfile using the Vim text editor
    $ vim Dockerfile
    try on your machine
    explain this command
  • vim:tldr:3e81b vim: Open a file at a specified line number.
    $ vim +${line_number} ${filename}
    try on your machine
    explain this command
  • vim:tldr:508fc vim: Perform a regular expression substitution in the whole file.
    $ :%s/${regular_expression}/${replacement}/g
    try on your machine
    explain this command
  • vim:tldr:6ed31 vim: Display the line numbers.
    $ :set nu
    try on your machine
    explain this command
  • vim:tldr:81f7b vim: View Vim's help manual.
    $ :help
    try on your machine
    explain this command
  • vim:tldr:a0bd0 vim: Open a file.
    $ vim ${filename}
    try on your machine
    explain this command
  • vim:tldr:ccd9c vim: Enter normal mode and undo the last operation.
    $ u
    try on your machine
    explain this command
back to context overview