Vim

Search for nul (\x00) character

/^Vx00

... where ^V means Ctrl-V. That will search for the character whose hex value is 00.


Custom installation

Uninstall system installed Vim:

sudo apt remove $(dpkg -l | grep vim | grep ^ii | tr -s ' ' | cut -f 2 -d ' ')

Install prerequisites:

sudo apt install -y curl software-properties-common python3 python3-pip pylint gcc g++ make ctags libncurses-dev

Install vim from sources: https://www.vim.org/git.php

Install golang: https://golang.org/doc/install

Update the go language server:

GO111MODULE=on go get golang.org/x/tools/gopls@latest

Install latest nodejs (v15 as of this writing):

curl -sL https://deb.nodesource.com/setup_15.x -o nodesource_setup.sh
chmod 755 nodesource_setup.sh
sudo ./nodesource_setup.sh
sudo apt install -y nodejs
rm -f nodesource_setup.sh

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update -y
sudo apt install -y yarn

Redirect npm packages to folder in home:

mkdir ~/.npm-global/lib
npm config set prefix "~/.npm-global"

Add to your profile:

NPM_PACKAGES="$HOME/.npm-global"
PATH="$NPM_PACKAGES/bin:$PATH"
export NPM_PACKAGES PATH

Update npm;

npm install -g npm@latest

Install npm packages:

npm install -g typescript tserver

Prepare .vim:

mkdir -p ~/.vim/autoload

Install Plug

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

Link .vimrc to master copy:

ln -s $HOME/GDrive/bin/etc/vimrc .vimrc

Install vim plugins:

vim -c PlugInstall
vim -c "CocInstall coc-json" -c "CocInstall coc-tsserver" -c "CocInstall coc-html" -c "CocInstall coc-css" -c "CocInstall coc-python" -c "CocInstall coc-go"