Skip to content

cezarmezzalira/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Settings used on my Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published