An open API service indexing awesome lists of open source software.

https://github.com/cauandzn/dotfiles

Repository of configuration files to Linux Systems.
https://github.com/cauandzn/dotfiles

dotfiles neovim vim vimrc

Last synced: 2 months ago
JSON representation

Repository of configuration files to Linux Systems.

Awesome Lists containing this project

README

          

# 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, Debian 11 in my main working machine.

# Setup the tools

### Installing git and curl
```sh
sudo apt update && sudo apt install git curl build-essential -y
```

### Installing Node Version Manager (nvm)
```sh
# 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 :)
```sh
# 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
```sh
# 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!