In this post, I want to share how to manage tmux plugins with Tmux plugin manager (i.e., tpm) and also mention a few useful plugins.
In this post, I would like to share line number settings in Neovim to move the cursor more efficiently.
Every programmer knows newline character, but maybe not so familiar. In this post, I want to write what I have learned about newline handling in various cases.
If you are using Python 3 on Windows, you may have seen a Unicode decoding error when opening files in UTF-8 format:
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xaf in position 5: illegal multibyte sequence
If you read the same file on Linux or MacOS, you will find that this file can be opened without any error. Why is there a difference? It has something to do with the default encoding Python chooses to use on different platforms.
Today when I use
:checkhealth to check if there are anything wrong with my Neovim and related packages. I got an info that Python
neovim package is not up to date. So I tried to update neovim with
pip install --upgrade neovim. This is the start of a disaster which wastes me several hours.
On Windows system, if you install Python3 via Anaconda. Under Anaconda root, there is directory named
Scripts, in which
pip3.6.exe all exist. When we want to install a package, a natural question arises, is there any difference if I use
pip install PACKAGE or
pip3 install PACKAGE?
On Linux system, if we do not have root priviledge, we can not use package managers to install a package to its default location (usually under
Besides, the packages installed by the package managers are often too old to have the latest features. Or, even if we have root priviledge, we do not want to mess up with the system-wide packages and just want to experiment with a package locally. On these ocassions, we may want to install the package to a