Coder Social home page Coder Social logo

neovim-setup's Introduction

Summary

Neovim setup

This guide is built for Mac only.

Prerequisites

Make sure your machine has the following installed:

  • XCode
  • HomeBrew

Installation

  1. Install RG
brew install rg
  1. Install Neovim
brew install neovim
  1. Clone repo
mkdir ~/.config
git clone [email protected]:jethro.riosa/neovim-setup.git ~/.config/nvim

for bash_script

  1. Run ~/.config/nvim/script.sh
  2. then run source ~/.zshrc

for zsh_script

install ZSH first run sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 4. Run ~/.config/nvim/zsh_script.sh 5. then run source ~/.zshrc

Usage

Simply call the command vim | vi | nvim to open the editor.

Shortcut keys

<leader> key is space bar

  1. Open Nerdtree: <leader>n
  2. Find within file: <leader>f

Saving session is useful if you want to go back to the previous state of your work after you close vim. Just call vim -S to initiate the session. Don't push the Session.vim in git in case its not yet in .gitignore. 3. Record session of work: <leader>r 4. Delete session of work: <leader>rt

  1. Open terminal within Vim. This is useful if you want to save a session of the state of the terminal within neovim.
<leader>tv open terminal in vertical split
<leader>ts open terminal in horizontal split
  1. Rename file: <leader>j

TroubleShooting

  1. open your terminal

  2. run vim

  3. if you see errors like minpac#init

  4. run git clone git clone https://github.com/k-takata/minpac.git ~/.config/nvim/pack/minpac/opt/minpac

Other Setup

  1. add this to ~/.zshrc for Martide Development Setup ``

alias ms="iex -S mix phx.server"

alias rr="mix ecto.reset && mix ecto.realistic"

alias rd="mix ecto.reset && mix ecto.demo"

alias wd="webdriver-manager start --versions.chrome=78.0.3904.97"

alias dr="docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.4.1"

``

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.