-
Notifications
You must be signed in to change notification settings - Fork 2k
Seamless Sublime Text 3 Integration
Johannes Rappen edited this page Dec 5, 2016
·
7 revisions
Assuming you are on Windows and using the latest cmder release, go ahead and download the latest portable version of Sublime Text 3 (stable) or Sublime Text 3 (dev).
Unzip the contents of the zip-file containing the portable version of ST3 into the newly created folder %CMDER_ROOT%\vendor\Sublime Text 3
and add the line subl="%CMDER_ROOT%\vendor\Sublime Text 3\sublime_text.exe" $*
to your aliases in %CMDER_ROOT%\config\user-aliases.cmd
. Naturally the subl
alias can be replaced with whatever you had in mind.
To further integrate ST3 with cmder, it is possible to merge the UI of both application by splitting the view either horizontally or vertically into panes within cmder:
subl="%CMDER_ROOT%\vendor\Sublime Text 3\sublime_text.exe" $* -new_console:s
subl="%CMDER_ROOT%\vendor\Sublime Text 3\sublime_text.exe" $* -new_console:s50H
subl="%CMDER_ROOT%\vendor\Sublime Text 3\sublime_text.exe" $* -new_console:s50V
subl="%CMDER_ROOT%\vendor\Sublime Text 3\sublime_text.exe" $* -new_console:s75V
Restart cmder!
- You can change the tab group settings of cmder in
Features > Settings
and checkone tab per group
. - If you are in the
C:\Users\Foo
directory within the cmder UI and know there is along-boring-file-name.txt
within, typingsubl long
and hitting TAB will autocomplete your cmder input tosubl long-boring-file-name.txt
. - To quickly exit sublime, just press AltFX (
File > Exit
from the main menu). Alternatively close the current tab in ST3 via CtrlW. - To make ST3 not remember your previously opened files, add
"hot_exit": false
and"remember_open_files": false
toPreferences > Settings
from the main menu.
Guide based on ideas from @expositor.