Skip to content

The .vimrc file serves as a configurable configuration for the Vim text editor. Users can enhance their editing experience by adjusting settings, key mappings, and plugins, tailoring Vim to their preferences and workflow.

Notifications You must be signed in to change notification settings

hamzakarkich/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

vimrc

VIM

To configure your .vimrc on Linux, you can follow these steps:

  1. Navigate to Your Home Directory: Open a terminal and go to your home directory:

    cd ~
  2. Create or Edit .vimrc: If you already have a .vimrc file, you can edit it. Otherwise, create one using a text editor. For example:

    vim .vimrc

    This will open the file in Vim for editing.

  3. Configure Vim Settings: Add or modify configurations according to your preferences. Here are a few common settings:

    • Set line numbers:

      set number
    • Enable syntax highlighting:

      syntax enable
    • Set the default tab size to 4 spaces:

      set tabstop=4
      set shiftwidth=4
      set expandtab
    • Highlight search results as you type:

      set incsearch
    • Enable mouse support:

      set mouse=a
  4. Save and Exit: Save your changes and exit Vim by pressing Esc to enter command mode, then type :wq and press Enter.

    If you created a new .vimrc file, you might need to restart Vim for the changes to take effect.

Now your Vim configuration is updated according to the settings you specified in your .vimrc file

To configure your .vimrc on Linux, you can follow these steps:

  1. Navigate to Your Home Directory: Open a terminal and go to your home directory:

    cd ~
  2. Create or Edit .vimrc: If you already have a .vimrc file, you can edit it. Otherwise, create one using a text editor. For example:

    vim .vimrc

    This will open the file in Vim for editing.

  3. Configure Vim Settings: Add or modify configurations according to your preferences. Here are a few common settings:

    • Set line numbers:

      set number
    • Enable syntax highlighting:

      syntax enable
    • Set the default tab size to 4 spaces:

      set tabstop=4
      set shiftwidth=4
      set expandtab
    • Highlight search results as you type:

      set incsearch
    • Enable mouse support:

      set mouse=a
  4. Save and Exit: Save your changes and exit Vim by pressing Esc to enter command mode, then type :wq and press Enter.

    If you created a new .vimrc file, you might need to restart Vim for the changes to take effect.

Now your Vim configuration is updated according to the settings you specified in your .vimrc file.

About

The .vimrc file serves as a configurable configuration for the Vim text editor. Users can enhance their editing experience by adjusting settings, key mappings, and plugins, tailoring Vim to their preferences and workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published