The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
42 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
95 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 ...
1
vote
2answers
91 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 ...
2
votes
1answer
239 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
407 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
102 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
2answers
248 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
138 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 ...
7
votes
5answers
19k views

How to 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
896 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, ...
1
vote
1answer
1k 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
68 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
100 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
1k 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 ...
0
votes
2answers
1k 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 ...
2
votes
1answer
459 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 ...