Git Product home page Git Product logo

astrovim_install's Introduction

Neovim for 42 Students

So you are a 42 student and I know you are as geeky as it gets - so you gotta be using vim for all of it's benefit - you know do away with the mices. Immediately you realise setting it up on your school workspace is not as easy as you'd thought as you can not just brew install and you have no sudo permission and all that stuff. The nvim that comes with the linux is not the latest therefore making it difficult to use AstroNvim. This is a hassle free workthrough on how to set it up.

Clone Neovim Repository

Clone the Neovim repository from GitHub into your home directory (or any other directory where you have write permissions):

git clone https://github.com/neovim/neovim.git ~/neovim

Build Neovim Locally

Navigate into the neovim directory:

cd ~/neovim

Configure the build for a local installation:

This command tells Neovim's build system to install to ~/neovim.

make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_INSTALL_PREFIX=$HOME/neovim

Build Neovim:

make -j4

The -j4 flag specifies the number of parallel jobs to run during compilation. You can adjust this number according to the number of cores your CPU has (e.g., -j8 for 8 cores).

Install Neovim Locally

Once the build process completes, install Neovim locally:

make install

Add Neovim to PATH

This makes it easier to run Neovim from anywhere in the terminal, you can add its bin directory to your PATH: Add the following line to your ~/.bashrc, ~/.bash_profile, or ~/.zshrc file:

export PATH=$HOME/neovim/bin:$PATH

Then, apply the changes:

exec zsh # or bash etc

Or (Use exec or source)

source ~/.bashrc  # or ~/.bash_profile or ~/.zshrc depending on your shell

Verify Installation

You can now verify that Neovim is installed and accessible:

nvim --version

This command should display the Neovim version, confirming that the installation was successful. Notes

Then install AstroNvim

git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim

Now install AstroNvim plugins with the nvim command

nvim

Now, so that fringe events doesn't happen to your settings lets check what configuration is being served to your vim To do that, open nvim and type this command

:echo $MYVIMRC

If it is empty that's a bad sign but don't worry we can fit that with a simple command. Add the command below to your .zshrc/.bashrc file

export MYVIMRC="$HOME/.config/nvim/init.lua"

astrovim_install's People

Contributors

dreywesson 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.