Skip to content

Commit

Permalink
date
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-yes committed Jan 5, 2024
2 parents fd59e64 + 6aa9595 commit 8b72870
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 10 deletions.
1 change: 1 addition & 0 deletions _projs/soft.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
---

My Arsenal
<br>

{% for mth in site.soft %}
<a href="{{site.baseurl}}{{mth.url }}"> {{ mth.name }} </a> <br>
Expand Down
37 changes: 36 additions & 1 deletion _soft/001-vim.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ vim删除文件中的所有空格
:v/./d
```


### Vim 范围选择

使用 Vim,你可以轻松地对文件中的一系列行执行操作。你可以通过起始行号、逗号和结束行号(包括)来指示范围。除了文字行号之外,你还可以使用句点(`.`)表示当前行,使用美元符号 (`$`) 表示文件缓冲区中的最后一行,以及使用百分号(`%`)表示整个文件。
Expand All @@ -108,3 +107,39 @@ vim删除文件中的所有空格
要将第 5 行到第 10 行移动到第 15 行之后(而不是复制):

1. `:5,10m 15`

## vim diff 对比文件


```
vimdiff  file_left  file_right 或者  vim -d  file\_left  file\_right
```

方式二

vim file\_left

```
vertical diffsplit file_right
```

2. 在差异点跳转

- 向下跳转:]c
- 向上跳转:[c
- 跳转到更远的差异点: 3]c

3. 文件合并

- 将当前文件内容合并到另一边:dp  (diff "put")
- 将另一边内容合并到当前行:do  (diff "obtain")
- 手动刷新比较结果: :diffupdate

4. 窗口移动

- Ctrl-w K(把当前窗口移到最上边)
- Ctrl-w H(把当前窗口移到最左边)
- Ctrl-w J(把当前窗口移到最下边)
- Ctrl-w L(把当前窗口移到最右边)


2 changes: 1 addition & 1 deletion _soft/003-python.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name : Python的基础知识总结
name : 003-Python的基础知识总结
---


Expand Down
12 changes: 12 additions & 0 deletions _soft/make.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: make 编译一切
---

makefile 里面的操作如果不想打印出来

用@

```makefile
@mkdir -p ../obj
```

2 changes: 1 addition & 1 deletion _soft/python3-numpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ np.linalg.svd(m3) # 奇异值分解

np.diag(m3) # 对角线
np.trace(m3) #

```

## numpy 求解线性标量方程组 `np.linalg.solve`

求解
Expand Down
25 changes: 25 additions & 0 deletions _soft/python3_os_sys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
```
name :
```

python3 中获取文件后缀名的方法


```python
os.path.splittext(path)[-1]
```

判断文件的后缀名

```python
path = 'test.py'
bool = path.endswith('.py')
print(bool)
```

扩展home目录

```python
my_dir = os.path.expanduser('~/some_dir')
```

8 changes: 4 additions & 4 deletions config/Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ UXTerm*termName: xterm-256color
UXTerm*utf8Title: true
UXTerm*fontMenu*fontdefault*Label: Default
UXTerm*xftAntialias: true
UXTerm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=16
UXTerm*faceNameDoublesize: WenQuanyi Micro Hei Mono:antialias=True:pixelsize=16
UXTerm*faceName: Hack Nerd Font:style=Regular:antialias=True:pixelsize=20
UXTerm*faceNameDoublesize: Hack Nerd Font:style=Regular:antialias=True:pixelsize=20
UXTerm*faceSize: 16
UXTerm*faceSize1: 16
UXTerm*faceSize2: 16
Expand All @@ -24,8 +24,8 @@ XTerm*termName: xterm-256color
XTerm*utf8Title: true
XTerm*fontMenu*fontdefault*Label: Default
XTerm*xftAntialias: true
XTerm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=16
XTerm*faceNameDoublesize: WenQuanyi Micro Hei Mono:antialias=True:pixelsize=16
XTerm*faceName: Hack Nerd Font:style=Regular:antialias=True:pixelsize=20
XTerm*faceNameDoublesize: Hack Nerd Font:style=Regular:antialias=True:pixelsize=20
XTerm*faceSize: 16
XTerm*faceSize1: 16
XTerm*faceSize2: 16
Expand Down
6 changes: 3 additions & 3 deletions config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ alias ftpNas="lftp -u anonymous,passwd -e \"set ftp:ssl-force yes\" gdc.cddis.
PS1=""
PS1+="\[\033[1;32m\][${debian_chroot:+($debian_chroot)}\u@\h]\[\e[0m\]"

## for nvim
export PATH="$HOME/nvim/nvim/bin/:$HOME/nvim/node/bin/:$PATH"

PATH=$PATH:/opt/bin/:~/.local/bin/:/usr/local/lib

export PYENV_ROOT="$HOME/.pyenv"
Expand Down Expand Up @@ -225,3 +222,6 @@ PROMPT_COMMAND="pre_prompt_command; $PROMPT_COMMAND"

export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share/applications/

## for nvim
export PATH="$HOME/.nvim/nvim/bin/:$HOME/.nvim/node/bin/:$PATH"

0 comments on commit 8b72870

Please sign in to comment.