Install Anaconda environment on Ubuntu server and simple use of Vim

Anaconda installation

1. Download the installation package (the Tsinghua mirror source used here)

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh

2. Go to the folder where the downloaded .sh file is located in the terminal
3. Unzip and install

bash Anaconda3-5.3.1-Linux-x86_64.sh

4. Press the enter key all the way, and then enter yes to accept the agreement.
5. The installation of this version does not need to configure environment variables, and the environment can be used directly by activating the environment
. 6. Activate the environment

source ~/.bashrc

7. View conda and python versions

conda -V
python -V

Use of Vim

Use the ESC key to switch between different modes
i
//插入模式

:q  
//退出

:q!
//退出且不保存(:quit!的缩写)

:wq
//保存并退出

:wq!
//保存并退出即使文件没有写入权限(强制保存退出)

:x
//保存并退出(类似:wq,但是只有在有更改的情况下才保存)

:exit
//保存并退出(和:x相同)

:qa
//退出所有(:quitall的缩写)

:cq
//退出且不保存(即便有错误)

撤销操作:
(1)按小写字母「u」,撤销上一步的更改操作;
(2)按大写字母「U」,撤销整行的更改操作;
(3)「Ctrl+R」撤销上一步「撤销操作」。

Guess you like

Origin blog.csdn.net/qq_45104014/article/details/127866628