一些常用的工具


vim

vim 放便于linux下对文档进行编辑修改,通过配置以后可以构成一个强大的编程ide。使用vim过程主要注意vim工作模式之间的转换,一般可分为:普通模式(normal mode)、插入模式(insert mode)和视图模式(visual mode)。

vin工作模式之间的切换:
1. 普通模式 -> 插入模式:
i : 进入插入模式,光标处于当前字符之前
I : 进入插入模式,光标处于当前行的第一个非空字符前
a : 进入插入模式,光标处于当前字符之后
A : 进入插入模式,光标处于当前行尾
o : 进入插入模式,当前行后另起一行,光标位于新行
O : 进入插入模式,当前行前另一起一行,光标位于新行
s : 删除当前字符,进入插入模式
S : 删除当前行,进入插入模式
2. 插入模式 -> 普通模式
[ESC] 键
3. 普通模式 -> 视图模式
v : 进入视图模式,以字节为单位
V : 进入视图模式,以行为单位
4. 视图模式 -> 普通模式
[ESC] 键

更多参考:
模式之间的切换:http://www.cnblogs.com/CoverCat/p/4852874.html
linux下,vim ide 配置:http://blog.csdn.net/doc_sgl/article/details/47205779
vim 常用命令: https://www.fprintf.net/vimCheatSheet.html


sublime

documentation: http://docs.sublimetext.info/en/latest/index.html

常用指令(mac):
注释(去注释):[command] + /
查找:[command] + F
选中行:[command] + L

多行选择:
依次添加实例:command + D
跳过当前实例:command + K, command + D
撤销当前选中的实例:command + U


tmux

简单介绍与常用命令:
http://cenalulu.github.io/linux/tmux/

新建session:
tmux

挂载所有session:
tmux attach

常用指令:
prefix = control + b

prefix + x : 关闭当前panel
prefix + " : 垂直切 panes
prefix + % : 水平切 panes
prefix + 方向键 : 将光标移动到相应的panel
prefix + [ : 滚动模式,可以使用滚动条浏览当前窗口内容,q 推出
prefix z :当前窗口放大或者缩小

更多参考:tmux cheat sheet (注意,前缀中的a改成b):
https://gist.github.com/andreyvit/2921703


mac 使用

  1. 安装:brew install [application name]
  2. Simple Tricks to Improve the Terminal Appearance in Mac OS X:
    http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

mack 远程操作服务器

  1. 安装依赖:brew install Caskroom/cask/osxfuse
  2. 安装sshfs: brew install sshfs
  3. 建立目录:mkdir myserver
  4. 挂载目录:sshfs -o transform_symlinks -ofollow_symlinks user@hostname:remote_dir local_dir
  5. 挂载目录实例:sshfs -C -o transform_symlinks -o follow_symlinks haha@192.168.1.32:/home/haha/workspace ~/Desktop/myserver/

重点选项说明:

-o transform_symlinks 表示转换绝对链接符号为相对链接符号
-o follow_symlinks 沿用服务器上的链接符号
-C 压缩,或者-o compression=yes
-o reconnect 自动重连
-o cache=yes
-o allow_other

取消挂载:

umount /home/happyling/Desktop/server_workspace


远程服务器允许图形界面弹出到本地

  1. 安装: XQuartz
  2. 本地连接服务器:ssh -AXY username@192.111.1.200

mac 上编译 c++ 文件:

gcc install: grew install gcc
compile: g++ -o test test.cpp
run: ./test


其他常用工具:

  1. zsh
  2. iterm
  3. VNC server
  4. Synergy
  5. XMind
  6. Mendeley

原文地址:https://www.cnblogs.com/fanling999/p/6792818.html