Jun 18, 2018
if you use set mouse off, then you could use system mark and copy, or if you are in Mac, you could use Option + Mouse Select
按键绑定
C-b 发送 Ctrl-b 按键
C-z 暂停(suspend) tmux 客户端
窗口创建与管理
! 把当前分区独立出来作为单独的窗口
" 横向分隔,变成上线两个分区
% 纵向分隔,变成左右两个分区
& 关闭当前窗口(window),也就是所有的分区
. Prompt for an index to …
Jan 18, 2018
重新对齐文本到固定长度
check if mapping is replaced
:verbose map <Key>
using map may cause infinite recursion!
force set syntax
# vim: set filetype=javascript
exit
使用 Ctrl-C 而不是esc
使用ZZ而不是:wq
window management
use ctrl-w r to swap pane
folding
{selection}zf
or zf{motion}
for manual folding
history
Ctrl-O to …
Jul 29, 2017
Jun 14, 2017
basic usage
:set spell
to open, :set nospell
to disable, :set spell!
to toggle.
]s
and [s
to go to next and previous spell error. z=
to see suggestions, but it's not good. use :nnoremap \s ea<C-X><C-S>
Use set spell
to check spellings in vim, if you find …
Jun 09, 2017
首先通过 homebrew 安装:
brew install neovim
然后安装 python 支持,好多 vim 插件都需要
pip install neovim
May 30, 2017
To use go to definition and other advanced IDE feature, we need to generate tag files for vim to figure out where to find the functions or variables.
To generate a tag file
By default, the generate tag file will be located at ./tags directory, we need to …
May 30, 2017
In Omnibar, press tab after a search-able website will search for the website
prefix ? will search forcefully
⌘T Open a new tab
⇧⌘T Reopen tab just closed
⌘W colse a tab
⌘⌥→ Go to left tab
⌘[ / Delete Go back in history
⌘] / Delete Go forward in history
⌘M minimize
⇧⌘B show/hide …
May 30, 2017
Summary.md 这个文件相对于是一本书的目录结构。比如SUMMARY.md :
# Summary
* [Introduction](README.md)
* [基本安装](howtouse/README.md)
* [Node.js安装](howtouse/nodejsinstall.md)
* [Gitbook安装](howtouse/gitbookinstall.md)
* [Gitbook命令行速览](howtouse/gitbookcli.md)
* [图书项目结构](book/README.md)
* [README.md 与 SUMMARY编写](book/file.md)
* [目录初始化](book/prjinit.md)
* [图书输出](output/README.md)
* [输出为静态网站](output/outfile.md)
* [输出PDF …
May 30, 2017
用起来的确爽,视网膜屏幕绝对打开新的世界
4k屏幕打开另一个世界,一个屏幕可以开4个窗口,哈哈
PYTHONPATH 变量会干扰brew安装的python3
Dock放在左边,设置F1,设置轻触,设置全局控制 使用tab键切换
You can make movie with quick time
Option + Command +Esc 强制退出程序
Homebrew + iterm2 真乃神器
Brew cask is a good thing
Hold option+command and mouse to do a block selection
Weird, mac echo not working with \e but …
May 30, 2017
pip
- Douban pip mirror: sudo pip install -i http://pypi.douban.com/simple/ flask
- Aliyun pip mirror: http://mirrors.aliyun.com/pypi/simple/