Giter Site home page Giter Site logo

vimrc's Introduction

vimrc configuration

This is how to install VIM and configure vimrc files.

Table of Contents

Install1

  • Install the latest version of VIM

    • For Windows, find VIM in vim release page.
    • For Linux, run the following command to update VIM.
      sudo add-apt-repository ppa:jonathonf/vim
      sudo apt update
      sudo apt install vim
      vim --version
  • Install NodeJS in NodeJS download page.

  • Install plugin manager vim-plug.

    • For Windows, open command line in directory the_folder_vim_is_installed\vim90\autoload, run the command below.
      curl -fLo plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    • For Linux, run the command below to download the plug.vim into the directory ~/.vim/autoload.
      curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim  
  • Clone the repo.

    • For Windows, install git in git download page, open command line in directory C:\User\[username]\. Run the command below.
      git clone https://github.com/Gavin-OP/vimrc.git
    • For Linux, don't clone the repo, just create a .vimrc file in ~, and copy the _vimrc_linux into the Linux .vimrc file.

Configuration

  • Change the default path of _vimrc file.

    • For Windows, open command line in directory the_folder_vim_is_installed\, open _vimrc file using vim _vimrc, and add the following code.
      source $HOME/vimrc/_vimrc
    • For Linux, TBC
  • Change the path for backup, swap, undo files.

    • For Windows
      • run the following command to create the folders.
        mkdir .vim
        cd .vim
        mkdir .swp
        mkdir .undo
        mkdir .backup
      • Make sure the path for directory, undodir, backupdir match the folder created above.
    • For Linux,
      • run the following command to create the folders.
        mkdir .vim
        cd .vim
        mkdir .swp
        mkdir .undo
        mkdir .backup
  • Change the path for Python ddl file.

    • For Windows, TBC
  • Install plug-in.2

    • Randomly open a file using vim, install all the plug-in using :PlugInstall.
    • Randomly open a file using vim, set up vim-copilot using :Copilot setup, check the status of vim-copilot using :Copilot status.

Other Useful Command

  • git status
  • git pull
  • git add [filename]
  • git commit -m "comment inside"
  • git push

To Do

  • auto pair configuration error for > and etc.
  • enable vim python support
  • auto format python configuration
  • plug-in ctrl-p

Footnotes

  1. Download curl in curl download page and put it in the computer path. (only for plug-in instant-markdown-preview)

  2. Install instant-markdown-d using [sudo] npm -g install instant-markdown-d. (If using instant-markdown plugin)

vimrc's People

Contributors

gavin-op avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.