Giter Site home page Giter Site logo

dotfiles's Introduction

Configuration Files to my Dev workflow with Node.js

Hello!

Welcome to my repository of configuration files to Linux Systems!

Nowadays, I'm using Linux, at this time, Ubuntu 22.04 LTS in my main working machine.

Setup the tools

Installing git and curl

sudo apt update && sudo apt install git curl build-essential -y 

Installing Node Version Manager (nvm)

# Dowload and Install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

# Include variables to PATH
echo -e 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc

# Reload .bashrc with variables
source ~/.bashrc

# Install the last LTS version of Node.js
nvm install --lts

#Alternativelly, install Yarn
npm install --global yarn

So now, how you can configure Vim?

Whichever is, Vim or Neovim, both are great tools, which do basic the same thing.

Installing and configuring Vim :)

# Install Vim with apt
sudo apt update && sudo apt install vim -y

# Installing vim-plug plugin manager
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

# Backup your .vimrc file 
cp ~/.vimrc ~/.vimrcbkp

# Download the configuration file    
curl https://raw.githubusercontent.com/cezarmzz/dotfiles/main/.vimrc > ~/.vimrc

Or Installing NeoVim

# Installing NeoVim & xclip to clipboard
sudo apt update && sudo apt install neovim xclip -y 

# Installing vim-plug plugin manager
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
       
# Backup your nvim folder file 
cp -R ~/.config/nvim ~/.config/nvim_bkp

# Download configuration files    
sh -c 'curl -fLo ~/.config/nvim/init.vim --create-dirs \
	https://raw.githubusercontent.com/cezarmezzalira/dotfiles/main/.config/nvim/init.vim'
sh -c 'curl -fLo ~/.config/nvim/coc-settings.json --create-dirs \
	https://raw.githubusercontent.com/cezarmezzalira/dotfiles/main/.config/nvim/coc-settings.json'

So now, open vim with command vim and type :PlugInstall and wait all plugins end up the installation.

Close vim and open again. If everything has installed, you now ready to start your development with Node.js and Vim :)

Please, if you enjoy, pick a star to this repo!

dotfiles's People

Contributors

cezarmezzalira avatar

Stargazers

Lucas Figueiredo avatar

Watchers

James Cloos avatar  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.