I've downloaded sublimeText2
for text editing and would like to set it as the default editor instead of gedit
but I'm not getting it.
Attempts
Arquivo -> abrir com -> outro aplicativo -> visualizar todas as aplicações
however it does not appear in the listing, I believe it is because it is downloaded and executed, not installed.
Terminal -> su -> usr/share/applications/
- create file
sublime.desktop
-
vim defaults.list
replace allgedit
tosublime
Terminal -> su -> usr/share/applications/
- create file
sublime.desktop
-
vim mimeinfo.cache
replace allgedit
tosublime
Sublime.desktop content
[ktop Entry]
Name=Sublime
Comment=Sublime text Editor
Exec=sublime_text %U
Icon=sublime-dark-icon.gif
Terminal=false
Type=Application
Encoding=UTF-8
Categories=text/editor;
MimeType=text/plain;
Question
Would anyone know to tell me what I'm doing wrong? and how to solve?