Skip to content

juancolacelli/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vim

Juan Colacelli's vimrc

Requirements

Terminal with 256 color support enabled

export TERM=xterm-256color

Vim 8+

Vim download

Required font installed

DejaVu Sans Mono Nerd Font Complete Mono.ttf

Installation

Warning!: Backup your config files before running the following commands

Vim

git clone https://gitlab.com/juancolacelli/vimrc.git ~/.vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

ln -s ~/.vim/vimrc ~/.vimrc
:PlugInstall

NeoVim

git clone https://gitlab.com/juancolacelli/vimrc.git ~/.vim
mkdir -p ~/.config/nvim
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

ln -s ~/.config/nvim/vimrc ~/.vimrc
:PlugInstall

Post install

:CocConfig
{
  "suggest.noselect": false,
  "coc.preferences.formatOnSaveFiletypes": ["css", "markdown", "vue"],
  "languageserver": {
    "ccls": {
      "command": "ccls",
      "filetypes": [
        "c",
        "cpp",
        "objc",
        "objcpp"
      ],
      "rootPatterns": [
        ".ccls",
        "compile_commands.json",
        ".vim/",
        ".git/",
        ".hg/"
      ],
      "initializationOptions": {
        "cache": {
          "directory": "/tmp/ccls"
        }
      }
    }
  }
}

If you are working with C++17 you need to create a file .ccls in your project with the following content:

clang++
%h %hpp %cpp -std=c++17

Dependencies

Prettier

npm i -g prettier-eslint

FZF

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

Ripgrep

# Arch
# sudo pacman -S ripgrep
# echo "export FZF_DEFAULT_COMMAND='rg --files --follow --hidden'" >> ~/.bashrc

# Debian
# sudo apt-get install ripgrep
# echo "export FZF_DEFAULT_COMMAND='rg --files --follow --hidden'" >> ~/.bashrc

# MacOS
# brew install ripgrep
# echo "export FZF_DEFAULT_COMMAND='rg --files --follow --hidden'" >> ~/.zshrc

Ctags

# Arch
# sudo pacman -S exuberant-ctags

# Debian
# sudo apt-get install exuberant-ctags

# MacOS
# brew install ctags

Update plugins

:PlugUpgrade
:PlugUpdate
:CocUpdate
cd ~/.fzf
git pull

Plugins

vim

Releases

No releases published

Packages

No packages published