tested on

   Static hostname: lenovo
         Icon name: computer-laptop
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.0-17-amd64
      Architecture: x86-64


su - root
apt update
# install vim and git and curl
apt install vim git curl
# install rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

go to home and download-install plug.vim via curl

cd; # go into home directory of user

curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

git clone https://github.com/rust-lang/rust.vim ~/.vim/pack/plugins/start/rust.vim

open up the per-user vim config file:

vim ~/.vimrc

paste in this:

set clipboard=unnamedplus " enables gui clipboard

call plug#begin()

Plug 'junegunn/vim-easy-align' " For GitHub repositories, you can just mention the username and repository
Plug 'tyru/open-browser.vim' " opens url in browser
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
Plug 'https://github.com/preservim/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
Plug 'puremourning/vimspector'
Plug 'rust-lang/rust.vim'
call plug#end()

" You can use 'VISUAL_STUDIO' or 'HUMAN'
" Visual Studio config avoid to the mapping of  key, sometimes used to map file explorer buffer.
let g:vimspector_enable_mappings = 'VISUAL_STUDIO'

write changes to config file


while still in vim:

:source %

now it should be possible to use Plug commands:


this should show up:

then go:


and it should start downloading and installing those plugins…




congratulations! 🙂

do the dance of “yes!!! it’s working”

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!