Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 38862a8

Browse files
author
ma6174
committed
add a tip
1 parent fb83367 commit 38862a8

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

‎bundle/vim-fugitive‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 3b5f715262e0ec03cbdd80d8858039b47af34365
1+
Subproject commit f096152a48bc2506bd460c9f990e50a159a7bbc5
-14 Bytes
Binary file not shown.
-742 Bytes
Binary file not shown.
-364 Bytes
Binary file not shown.

‎tips.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
# vim 使用tip
22

3+
### 编写python程序
4+
5+
1. 自动插入头信息:
6+
- `#!/usr/bin/env python`
7+
- `# coding=utf-8`
8+
- 输入`.`或按`TAB`键会触发代码补全功能
9+
- `:w`保存代码之后会自动检查代码错误与规范
10+
-`F6`可以按`pep8`格式对代码格式优化
11+
-`F5`可以一键执行代码
12+
13+
314
### 多窗口操作
415

5-
- 使用`:sp + 文件名`可以水平分割窗口
16+
1. 使用`:sp + 文件名`可以水平分割窗口
617
- 使用`:vs + 文件名`可以垂直分割窗口
718
- 使用`Ctrl + w`可以快速在窗口间切换
819

920
### 编写markdown文件
1021

11-
- 编写markdown文件(`*.md`)的时候,在normal模式下按 `md` 即可在当前目录下生成相应的`html`文件
22+
1. 编写markdown文件(`*.md`)的时候,在normal模式下按 `md` 即可在当前目录下生成相应的`html`文件
1223
- 生成之后还是在normal模式按`fi`可以使用firefox打开相应的`html`文件预览
1324
- 当然也可以使用万能的`F5`键来一键转换并打开预览
1425
- 如果打开过程中屏幕出现一些混乱信息,可以按`Ctrl + l`来恢复

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /