Sublime Text 2 is a cross-platform GUI text editor for Windows, OS X and Linux.

learn more… | top users | synonyms

19
votes
1answer
13k views

Set current language without saving file in Sublime Text

I have recently started using Sublime Text 2 after getting tired with Notepad++. Now, if I wanted to set what language I am currently programming in in Notepad++, I would go to the Language menu, and ...
0
votes
0answers
480 views

Symbolic link to host-shared folder from vmPlayer guest results in permissions errors

I have my Sublime packages located at C:/Storage/Dropbox/settings/sublime-text-2/ on my Windows 7 host. In my Ubuntu 13.04 guest, I have mounted the Storage folder at /mnt/hgfs/. Ergo, the location ...
1
vote
1answer
504 views

Detect key binding collisions in sublime text

In sublime text is there any way in to detect when a particular key binding is already assigned to some command and is then overwritten? I just want to be able to detect such scenarios.
2
votes
0answers
256 views

Using Sublime Text CLI (subl) “command” argument

I'd like to use Sublime Text in a script to save a text file with UTF-8 encoding, subl --help shows : --command : Run the given command I found a list of commands and tried typing subl ...
-1
votes
1answer
341 views

How can I fix rendering problems with Sublime Text 2.02 on Google Hangouts?

I am attempting to pair with someone using Google Hangouts and Sublime Text. He is using OS X Snow Leopard, and SublimeText 2.02. On his screen, the fonts look normal; on mine, they are rendered as an ...
1
vote
1answer
465 views

How to set JS-Syntax for .js.php-Extension in Sublime Text 2?

I have several js-Files (and css-Files), which need php-Commands. So I changed the extension to .js.php or .css.php But when I open the file in Sublime Text 2, I always have to change the syntax ...
3
votes
1answer
1k views

Same file in differents tabs

in sublime with ALT+SHIFT+2, I get two columns for files. in vim, with split, I can see the same file in differents parts of code. in Sublime,for comparate differents parts of code, How I can see ...
0
votes
0answers
1k views

'super' key not working as expecting in Sublime Text 2 or 3 on Windows 7

The Sublime key binding docs suggest that the super (Windows key) is usable in user defined key bindings. I'm aiming to create the following style of mapping so I have consistency between my OSX and ...
2
votes
1answer
257 views

How can I open a set of files in sublime based on their contents

I am trying to find all the files that contain a search term: grep -lir "Search" . and pipe that into sublime: grep -lir "Search" . | subl but all this does is open a single file in sublime ...
0
votes
0answers
31 views

Sublime Text 2 - Read a file located on a different server (http://host.com/my-text-file.txt)

As the title says, is it possible to open up a file as I can do in chrome (http://host.com/my-text-file.txt). Bonus points if you can make it auto refresh and scroll to the selected line.
0
votes
1answer
184 views

What command, if any, can be a good alternative to sublime text's find in folder?

Is there a way to find a string or phrase recursively in all files in a folder from the command line, such that the output would be similar to Sublime Text 2's find behavior? Like, with the path of ...
1
vote
1answer
1k views

Sublime Text manually specify g++ location

Long story short, I'm using sublime to write some small C++ programs in my spare time. I'm currently on a Windows 7 box and I do not have administrative rights to adjust the Path Environment Variable ...
2
votes
1answer
458 views

Is there a plugin for default file location in sublime text 2?

Is there a plugin (or a setting) in Sublime Text 2 to set the default file location for saving files? As of now, when I open Sublime Text 2 for the first time, create a file and try to save it, the ...
3
votes
2answers
2k views

How to set PHP syntax for a file without <?php tag?

When I set syntax to PHP in Sublime, all thing is good in my PHP code: But when I remove <?php tag from my code, the syntax highlighter doesn't work anymore: How can I tell sublime to do ...
3
votes
1answer
4k views

How do I use Sublime Text as the OS editor in Mac OS X?

How do I set Sublime Text as the editor for git commits in Mac OS X? In my .zshrc I have: export EDITOR='subl -w' But, if I do: bundle open devise I get the error: Could not run 'subl -w ...
24
votes
1answer
10k views

How do I assign a keyboard shortcut to recorded macro in Sublime Text

I have a bunch of macros which I have recorded and saved in Sublime Text 2. I'm trying to assign keyboard shortcuts to each of those, but I'm kind of lost as to how to go about doing this, I had a ...
5
votes
1answer
3k views

sublime text right click not working for sidebar

I am using sublime text 2 on windows 7. I had installed 3 plugins: Emmet Dockblockr SidebarEnhancements Now when i right click on the folders on the sidebar nothing is happening. I tried ...
2
votes
1answer
272 views

Sublime Text 2 Key Bindings - Is there any way to detect left/right modifier keys?

Is it possible to make Left Alt+A and Right Alt+A do different things? And of course, other modifier keys. If not, maybe the following idea would work? If AppleScript, Python, Ruby, Perl etc. can ...
0
votes
1answer
52 views

Sublime hates “..\save\” - screws up code color and layout. How to fix?

I've been using Sublime + UnrealScript plugin to program in UnrealScript, with UDK. But I was programming a save game system up, and got to adding a custom folder (..\save) when Sublime did this: ...
7
votes
2answers
2k views

Sublime Text 2: Working with multiple documents, building master file

I am currently working with LaTeX. I have a big document split up in several sub documents. When I am workin in a sub document, I'd love to compile the master file when pressing ctrl+b, not the file I ...
10
votes
2answers
4k views

How do I record and run multiple find/replace with Sublime Text 2?

How do I record and run multiple find/replace with Sublime Text 2? I tried recording a macro but, as it seems, Sublime won't record find/replace, only text input etc.
3
votes
3answers
2k views

Redefine file extension associations in Sublime text 2

I have noticed that Sublime text 2 by default associates files with *.scm and *.ss extensions with lisp language. But it's scheme actually. Is it possible to redefine this association somehow (in ...
1
vote
1answer
371 views

Sublime Text 2 not auto-completing some methods

I'm using SublimeText2 on Ubuntu and I'm using the python gData API. My issue is that some of the variables and other stuff doesn't auto-complete. Everything above the for loop auto-completes but not ...
0
votes
1answer
3k views

How to build compass in sublime text 2

I downloaded this package which allows use to build compass in though sublime text by pressing cmd+b. I created a sass file, made sure compass is selected from the tools > build system > compass ...
4
votes
3answers
4k views

Open file in local text editor from within an SSH connection

I'm not a vim guy. I'd like to be able to open log files in Sublime Text when in an SSH connection from within Terminal. Is there a way I could do this? I'm thinking there must be a command or ...
1
vote
1answer
2k views

Install Sublime Text 2 KDE (Kubuntu-desktop)

I would like to know how to install sublime text 2 in my Kubuntu VM. I used this guide when I was still using Unity, but I like the UI of KDE much more so I have converted. What do I need to do to get ...
4
votes
1answer
1k views

How do I get Dash Doc App to respect indentation?

When I expand an abbreviation with Dash Doc App it starts at the cursor location in my text editor (Sublime Text), but then ignores the original placement of the cursor and the next lines begin on the ...
8
votes
1answer
2k views

How to prevent ST2 from searching in excluded folders?

I've got a sublime-project like this: { "folders": [ { "path": ".", "folder_exclude_patterns": ["_doc", "cache", "logs", "_release"], "file_exclude_patterns": ...
2
votes
1answer
167 views

How to remap motions with a count in Sublime Text 2 vintage mode?

In my .vimrc, I have space remapped to move down 10 lines, and backspace remapped to move up 10 lines respectively: nnoremap <space> 10jzz nnoremap <backspace> 10kzz I want to configure ...
2
votes
1answer
71 views

Removing file path from tab name

I just switched to Sublime Text 2 from Notepad++, and I managed to change everything, except for the file path being displayed next to the file name in the tab title if there are two or more more ...
0
votes
2answers
929 views

Trying to create a Symbolic link between Sublime Text 2 and Subl

As the title says, I'm trying to create a sym link for my Sublime_text launcher, I did: sudo ln -s /path/to/sublime_text /usr/bin/subl and when I ls /usr/bin the blue subl link is there. Then I ...
0
votes
1answer
99 views

Only load a certain group of Sublime Text 2 plugins

Is it possible to make groups of plugins? I would be nice if it was also possible to choose a group to be loaded by default and be able to switch between plugins. Example use case: I work with both ...
2
votes
0answers
65 views

Launching Sublime Text 2 on the command line doesn't result in opening the specified file

When I type subl ~/.profile I expect Sublime to open my .profile file. This works with some files, although I couldn't find a pattern to which files. Is this a bug in Sublime or have I done ...
1
vote
1answer
148 views

Select pasted text in Sublime Text 2

I'd like to have a keyboard shortcut to paste text in Sublime Text 2 and select the text that I've just pasted in, since I often have to manipulate the block I've just pasted (e.g. changing its ...
2
votes
1answer
96 views

Place cursors at both ends of a selection in Sublime Text 2

I'd like to create a key binding in Sublime Text 2 to place cursors at both ends of the selected text. For instance, if I bound this command to Ctrl+B, then selecting a word, hitting Ctrl+B, and ...
2
votes
0answers
669 views

Sublime Text Build System for Heroku

I made a build system for Heroku Foreman on Sublime Text 2 (windows 8) { "cmd": ["foreman.bat", "start"], "working_dir": "$project_path" } When I run this in shell, I can just break, and ...
0
votes
1answer
244 views

How to adjust tab completion in Sublime Text 2

Is there a way to "complete completion within completion"? Example: Completions: 'fra' => '\frac{$1}{$0}' 'bf' => '\mathbf{$0}' I do fra<tab>bf<tab> and want to have ...
6
votes
2answers
1k views

vi/vim alternative to sublimetext's “Expand selection to scope”

Sublime text has a cool feature called "Expand selection to scope" SHIFT+CMD+SPACE which selects the everything within the scope. It select everything in scope, works perfectly ( ) or [ ] or { } ...
1
vote
1answer
2k views

Sublime Text 2 - Assign a keyboard shortcut to a tool

Is there any possible way of assigning this tool to a keyboard shortcut? I'm using this tool because the builtin console in Sublime Text 2 doesn't support interactivity (entering inputs....etc).
34
votes
3answers
82k views

Sublime Text 2 - Encoding UTF-8

How do I change the file encoding in Sublime Text 2? How do I change character encoding of a text file in OpenOffice.org writer? http://www.sublimetext.com/forum/viewtopic.php?f=4&t=3541
1
vote
1answer
249 views

How do I use regex curly braces in SublimeText2

SublimeText's regex parser doesn't seem to work like others. If I write (.*{50, 51})+, or (.*{50,})+, or (.*{50})+, it doesn't grab sets of 50 characters. I think it tries to match the { as a ...
3
votes
1answer
4k views

Sublime Text 2: Is it possible to clear or clean the project-switching dialog cache?

I use ctrl⌘P to switch projects frequently. Until recently, I stored all of my .sublime-project and .sublime-workspace files in my home directory. In a recent cleanup I decided to move them all into a ...
2
votes
1answer
748 views

sublime text 2, i can not use double click to select a word

Characters that are considered to separate words: "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?" Triple-clicking I can select the line, but double-clicking, I cannot select the ...
5
votes
2answers
3k views

Is there emacs plugins to do Sublime-like completion and goto anything?

In Sublime Text 2, I can enter prnfunc[tab] and then it completes to 'PrintFunction'. If I have a project, I can press Cmd+P and enter srcpy/hello.py and then it navigates to ...
4
votes
1answer
2k views

Can you apply XSLT transforms using Sublime Text 2?

Scenario: I have a project with a number of XML files and I would like to apply a XSLT transform on these and then use that output for other purposes. There is a variety of tools to do this, but it ...
5
votes
1answer
4k views

How to display whitespace characters in Sublime Text 2

I'd like to be able to see the whitespace characters used in files that I edit with Sublime Text 2 so that I can see when a tab is used instead of a space and replace that just to provide one example. ...
0
votes
1answer
345 views

In Sublime Text 2, is it possible to remap space space to save in vintage mode?

I've been attempting to recreate my Vim setup in Sublime Text 2. One of the commands I most want to get working is to map space + space to save in normal/command mode. In Vim I have this keybinding: ...
1
vote
1answer
835 views

How do I select the next error selection in Sublime Text 2?

Build systems and plugins can highlight errors (e.g. compile errors) in your code, creating red selections. How can I jump to the next/previous error selection?
0
votes
0answers
765 views

How to dumb-down python auto-indentation in sublime text 3

I am using Sublime Text 3, and the auto-indent is a problem for me. Basically, all I want is auto-indent to the same indent level as the previous line, similar to gedit's dumb but predictable ...
1
vote
0answers
353 views

Vimdiff functionality in Sublime Text 2

I wanted to know if it is possible to have a vimdiff like functionality to check for diff and have synchronized scrolling of two (or more) files in Sublime Text 2 just like vimdiff? Thanks