sublime

sublime果然很有用
最近在建设我的www.killinux.com
每次在本地修改完都用ftp传上去真麻烦,mac没有editplus直接传的东西
textmate能,但是不喜欢用了
发现sublime的sftp不错呀
sublime快捷键http://lucifr.com/139235/sublime-text-2-useful-shortcuts/
sublime插件安装
http://www.qianduan.net/essential-to-sublime-the-text-2-plugins.html

2.使用Package Control组件安装

也可以安装package control组件,然后直接在线安装:
按Ctrl+`调出console
粘贴以下代码到底部命令行并回车:
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
重启Sublime Text 2。
如果在Perferences->package settings中看到package control这一项,则安装成功。
如果这种方法不能安装成功,可以到这里下载文件手动安装。

cmd+shift +p
install
找插件就行了,就喜欢这种简单的自动安装的方式
sftp
{
    // The tab key will cycle through the settings when first created
    
    // sftp, ftp or ftps
    "type": "ftp",
    "save_before_upload": true,
    "upload_on_save": true,
    "sync_down_on_open": true,
    "sync_skip_deletes": false,
    "confirm_downloads": false,
    "confirm_sync": true,
    "confirm_overwrite_newer": false,
    
    "host": "123.108.110.2",
    "user": "kill59cn",
    "password": "密码",
    "port": "21",
    
    "remote_path": "/kill59cn/web",
    "ignore_regex": "(\\.sublime-project|\\.sublime-workspace|sftp-config(-alt\\d?)?\\.json|sftp-settings\\.json|\\.svn|\\.hg|\\.git|\\.bzr|_darcs|CVS|\\.DS_Store|Thumbs\\.db|desktop\\.ini)",
    //"file_permissions": "664",
    //"dir_permissions": "775",
    
    "connect_timeout": 30,
    //"ftp_passive_mode": true,
    //"ssh_key_file": "~/.ssh/id_rsa",
    //"sftp_flags": "-F /path/to/ssh_config",
    
    //"preserve_modification_times": false,
    //"remote_time_offset_in_hours": 0,
    //"remote_encoding": "utf-8",
    //"remote_locale": "C",
}

你可能感兴趣的:(sublime)