Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filetype]

The tag has no usage guidance.

0
votes
1answer
29 views

Windows 10 custom file icon

On previous editions of Windows there was a "File type" configuration page, where users could choose the default application for a given file type and also choose a custom icon, if the default one is ...
0
votes
1answer
114 views

How to find vscode installed path in ubuntu

I am trying to change the FileZilla filetype association and set vscode as default for any filetype. I couldn't find installed application path or executable file to give a path. How do I make vscode ...
0
votes
1answer
38 views

Different vimrc by filetype

As the title says: can I use different _vimrcs for different programming languages or filetypes? I have to use a lot of different programming languages for lots of different subjects, and for each ...
3
votes
0answers
90 views

Unable to set default program for .cpp file type [duplicate]

I'm using the latest edition of Windows 10 Home on a 64-bit computer. I've been struggling to set the default program used to open .cpp files. At first, it was set to Notepad, but at some point I ...
1
vote
1answer
33 views

Is there any way to make Windows smart about different file types with same extension?

The problem is for .ts files which currently Windows identifies them as video format. I want .ts files that are videos open with video player and .ts files that are TypeScript open with code editor. ...
0
votes
0answers
137 views

Cannot change file association in Win7Ent

I need to change file association for PDF's from Acrobat to Chrome via command line. There are specific business reasons for this. We run a VDI environment, and this script will be pushed via GP on ...
0
votes
1answer
115 views

What are .fcm files and how do I open them?

I want to extract music from the game files of Megaton Rainfall. Unfortunately, all the assets are .fcm files. For example Data.fcm. Googling this file format only yields results for a Minecraft ...
0
votes
1answer
3k views

Windows 10 file type association, doesn't save

Superusers, I updated to Windows 10, all nice and well, except one thing: I cannot assign a new program to a file type. Here are the options: Edit on opening Edit in the properties Edit in ...
-1
votes
0answers
33 views

create file type and change default application by script/regkey

We have some software which uses the *.opl file format, which isn't recognised by Windows. We can change the file type but when logging off and back on again, the default application is lost, even ...
1
vote
1answer
48 views

vim finding all extensions associated with a filetype

How can I find all file extensions that will use specific filetype (highlighting)? For example I know that both ".xml" and ".xmi" files will by opened as "xml" filetype, however I would like to find ...
0
votes
1answer
821 views

How do I make vim use the syntax highlighting of another file location?

I don't ever use sudo vim /path/to/some.file; I always use sudoedit. However, this means that vim doesn't see the correct path. As an example, when I open /etc/http/conf/httpd.conf, sudoedit makes a ...
1
vote
0answers
72 views

OS X Finder: “Plain Text Document” has changed to “text”, “Rich Text Document” to “rich text (RTF)”, etc

Sometime recently some file type names have changed — not the file associations or default application, but the name of the file type itself. "Plain Text Document" has changed to "text", "Rich Text ...
0
votes
1answer
163 views

How to automatically determine filetype by first line in file using vim? [closed]

My vim can determine filetype by first line of file (e.g. #!/bin/bash). But check of first line occurs only at the start of vim. How to do runtime checking of this?
0
votes
1answer
433 views

Way of identifying plaintext file types in bash?

Is there any alternative to the file command that can be used to identify plaintext file types that don't have a magic number? E.g. something I can give a file to that contains JSON and I'll get back ...
2
votes
2answers
560 views

Vifm in Windows 7 x64 filetype default for OS

I was looking around for a file manager that has Vim key bindings and worked with Windows and that resulted in me discovering about "Vifm" Problem is (besides the fact it can't be fullscreen-...
14
votes
1answer
2k views

List all filetype plugins known to Vim

I want to list all filetypes Vim recognizes from its runtimepath. For example: ada arc c clojure common-lisp elisp go python How can I do it?
0
votes
0answers
1k views

Set Default Program for All Users on Server

I work with a large server environment that's running Windows Server 2003, 2008, and 2012 now on some boxes. We have a custom-built log viewer program that associates with two file types that I'd like ...
1
vote
1answer
676 views

Vim ignoring ftplugin?

I have created the file /usr/share/vim/vim73/ftplugin/rb.vim with the following contents; set ts=2 " Set tab size to 2 set bs=2 " Suggested for ruby set sw=2 " Suggested for ruby set et " Convert ...
2
votes
3answers
1k views

How to save VIM filetype settings for a file which is being mis-detected?

The Apache config file for my website is named mywebsite.com. Apparently the extension .com is causing vim to set the wrong file type as dcl which makes the syntax highlighting wrong as well. All of ...
1
vote
1answer
537 views

vim fortran indentexpr issue

Strange issue here with getting indentexpr=FortranGetFreeIndent() to be set correctly. The first time I open a file (free form, of course), say new.f90, :set gives :set --- Options --- autoindent ...
13
votes
5answers
54k views

Remove file type associations in Windows 7 [duplicate]

I have set up a custom file association for .cfg to open in WordPad, but I can't seem to figure out how to remove it. How do I remove file associations in Windows 7?
0
votes
1answer
2k views

batch move for different file types to different folder name

I have files containing in C:\foldername1\Files\soandso1.mkv C:\foldername2\Files\soandso2.mp4 C:\foldername3\Files\soandso3.avi I want to move the .mkv, .mp4, and .avi back to it's parent folder, ...
4
votes
1answer
6k views

How to change the default icon for .url in Windows?

How do I change the filetype icon for .url? I have used Default Programs Editor to change it, but it does not work. This initially made me think that the program doesn't work on Windows 8, but it ...
1
vote
2answers
112 views

Simple document highlighting in Vim

I am looking for a filetype= argument that will format or color document constructs such as lists, headers and sub headrs. Particularly I want the filetype plugin (or syntax plugin) to interpret ...
2
votes
0answers
138 views

Identify recovered filetype

I'm searching some info about this file. It was recovered from a failed HD, with Ontrack EasyRecovery. The file extension may not be accurate. I tried with TrID (I'm the developer), and based on the ...
3
votes
2answers
3k views

Wget - if / else download condition?

I want wget to prefer a certain filetype over another, if the files have the same basename. For example: if foo.ogg available, don't download foo.mp3 the way i use wget so far to crawl/...
1
vote
2answers
3k views

Unpacking router firmware file

Does anyone know what filetype or filesystem a router firmware file (one downloaded from manufacturer's site) is usually saved in? Is there a tool (we're not talking about archive tool like zip/7z/rar ...
5
votes
1answer
2k views

Can Vim autocommand be triggered by filetype instead of by pattern?

I know how to set up features using :autocmd for specific file extensions: Eg. ~/.vim/ftplugin/xml.vim augroup xml au BufEnter *.xml call Setup_XML_Menu() au BufLeave *.xml call ...