Category Archives: 文字編輯器

Line breaks issue

When we use command “ssh” with auto-completion, we get this error result. This is because we used the editor “sublime text” to edit the config before, which used the line endings of Windows. Then we can edit the setting of … Continue reading

Posted in Mac, Sublime Text 2, Sublime Text 3 | Comments Off on Line breaks issue

Add SublimeText 2 context menu to windows explorer

Ref. Github: iaian/sublimeText2_contextMenu.reg Replace the Sublime Text Directory’s path.

Posted in Sublime Text 2, Sublime Text 3 | Leave a comment

[Sublime Text3] Enable package control

Use ctrl + ` to open console. (or View->Show console) Paste the appropriate code to enable package control function. import urllib.request,os,hashlib; h = ‘2915d1851351e5ee549c20394736b442’ + ‘8bc59f460fa1548d1514676163dafc88’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( … Continue reading

Posted in Sublime Text 3 | Leave a comment

[Vim] Turn on/off line numbers

Ref. stackoverflow: how to take off line numbers in vi turn on :set nu turn off :set nu!

Posted in Vim | Tagged | Leave a comment

[Sublime Text] Enable BIG5 support

In default, sublime text editor does not support BIG5 character, so you must install “ConvertToUTF8” package.

Posted in Sublime Text 2 | Leave a comment

Sublime Text 安裝 SFTP 模組

ctrl + shift + p => 輸入 install package,選擇 輸入 SFTP 進行安裝 開啟要同步的資料夾 View => Side bar => Show Side bar 點選 Side bar 中的資料夾按右鍵,SFTP/FTP => Map to Remote 設定 “host”、”user”、”port”、”remote_path”,並將 “save_before_upload” 設定為 true 點選 Side bar 中的資料夾按右鍵,SFTP/FTP => Download … Continue reading

Posted in Sublime Text 2 | Leave a comment

vimrc 常用設定值

Posted in Linux, Vim | Leave a comment

Vim 設定tab space

Posted in Vim | Leave a comment

Sublime Text 2 修改Tab設定

預設的Tab = 4個Spaces 寬度,這邊將它調整為2個Spaces寬度 Preferences -> Settings – More -> Syntax Specific -User 加入以下內容 { “tab_size”: 2, “translate_tabs_to_spaces”: true }

Posted in Sublime Text 2 | Leave a comment

Sublime Text 2 install PHP-Beautifier

環境:Windows 7 x64 安裝 PHP 1.1 http://windows.php.net/download/,選擇Installer最新版本下載安裝 1.2 將PHP安裝路徑加至Windows系統環境變數Path內 安裝php pear 2.1 下載http://pear.php.net/go-pear.phar至PHP目錄下 2.2 使用命令提示字元(以系統管理者啟動),切換至PHP目錄,輸入php go-pear.phar進行安裝 2.3 PHP目錄下會產生Pear_ENV.reg檔案,將它加入至系統內 PHP安裝PHP_Beautifier 3.1 在PHP目錄下,輸入pear install PHP_Beautifier-0.1.15進行安裝 3.2 修改PHP目錄下的php_beautifier,將error_reporting(E^ALL)修改為error_reporting(0),大約在第55行 3.3 修改PHP目錄下的php_beautifier.bat,將所有的改為/ 3.4 修改PHPpearPHPBeautifierFilter目錄下的Pear.filter.php及phpBB.filter.php,將require_once (‘PEAR/Config.php’);註解 Sublime Text 2安裝PHP_beautifier 4.1 Sublime Text 2安裝Package Control,進入Console模式(ctrl+`),輸入import urllib2,os; pf=’Package … Continue reading

Posted in PHP, Sublime Text 2 | Leave a comment