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

learn more… | top users | synonyms

0
votes
0answers
813 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 ...
0
votes
1answer
127 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
29 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
146 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
748 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
233 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 ...
2
votes
2answers
1k 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 ...
2
votes
1answer
2k 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 ...
15
votes
1answer
5k 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 ...
4
votes
1answer
2k 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 ...
1
vote
1answer
189 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
48 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: ...
3
votes
2answers
1k 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 ...
8
votes
2answers
1k 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.
2
votes
3answers
1k 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
333 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
2k 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
3k 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 ...
3
votes
1answer
748 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 ...
2
votes
1answer
425 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
0answers
118 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 ...
1
vote
1answer
50 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
584 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
62 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 ...
0
votes
1answer
100 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
64 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
420 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
159 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 ...
5
votes
2answers
789 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
1k 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).
23
votes
3answers
44k 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
184 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
2k 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
352 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
2k 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
1k 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
2k 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
212 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
314 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
507 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
227 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
5
votes
1answer
10k views

Sublime Text 2: Disable cursor position overwriting characters (like vim replace mode)

I'm not sure how, but I managed to get Sublime Text into a 'Replace Mode' which at whatever position the cursor is at, it overwrites the next character with whatever you press instead of inserting it. ...
1
vote
2answers
842 views

SublimeLinter not working with java

I'm trying to get sublimelinter to work with java so that I can lint my java program, but I don't know what javac -Xlint or what the path is. So my question is, what is PATHs and -xlint? I've got ...
4
votes
2answers
319 views

Sublime Text: Keyboard shortcut for close all other tabs?

If you right-click a tab name you have three options for closing: Close Close others Close tabs to the right If you go through the default shortcuts you'd see only the first is possible using the ...
1
vote
3answers
456 views

Sublime Text 2: Ruby Markers plugin error

Environment: Mac OSX 10.8.3; Ruby 1.9.3-p392 via rbenv; ST2 version 2.0.1 build 2217; I have installed the Ruby Markers plugin for ST2 and the gem rcodetools (which the plugin requires) However when ...
12
votes
1answer
1k views

Opposite of CTRL+D in Sublime Text 2

In Sublime Text 2, one may extend selection to include the next occurence of the current selection with CTRL+D. I often find myself pressing this one too many times, necessitating I clear selection ...
13
votes
3answers
17k views

Is there an HTML auto-indentation feature or plugin for Sublime Text (aka prettify/beautify/format)?

For example, something to change: <section><article><h1></h1><p></p></article></section> to: <section> <article> ...
3
votes
1answer
2k views

SublimeText2: Packages does not show up on Package Control: Install

When I was installing some packages, I found that my Package Control: Install Packages although comes up after pressing enter nothing happens. Does anyone else had this issue? I do not know after ...