Sunday, April 28, 2024
27
rated 0 times [  27] [ 0]  / answers: 1 / hits: 117729  / 2 Years ago, fri, june 10, 2022, 3:25:20

gedit is set by default to open about any source file. I've gone through the file properties and changed default application to VIM for C and C++ files.



I'd need to do this for any source file I open now, for python files, for text files, for ruby, any, since gedit is set to open all of them.



How can I change this to open with VIM without going the hassle of setting "open with" one by one?


More From » default-programs

 Answers
7

This answer only works in Ubuntu 16.04 or prior; the comments have a link to a Xenial release of Ubuntu-Tweak. In newer versions of Ubuntu this will not work as Ubuntu-Tweak is no longer supported by the author.


Comments have suggested that Chris Marx answer below is the right way, but it does not resolve the answer of administrative management - for example, setting the type for many items.


Note: Ubuntu 16.04 is still LTS and Ubuntu 14.04 is not EOL



The EASIEST way for you to do this would be to install the program Ubuntu Tweak.



Once you have it downloaded you simply open it up, change to Admins tab and then under System choose File Type Manager. Once in here select the file category Text and using shift-click and/or control-click select all of the file types you want, then click Edit on the bottom right.


This will allow you to multi-set the mimetype opener for all of the files.


See screen:


http://i.stack.imgur.com/BZtGN.jpg


[#31449] Saturday, June 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
variark

Total Points: 82
Total Questions: 114
Total Answers: 122

Location: Sweden
Member since Mon, May 8, 2023
1 Year ago
variark questions
Wed, Nov 3, 21, 13:30, 3 Years ago
Sun, Jan 8, 23, 16:05, 1 Year ago
Thu, Dec 15, 22, 02:10, 1 Year ago
Sun, Jun 26, 22, 12:20, 2 Years ago
Tue, Dec 14, 21, 15:40, 2 Years ago
;