Ubuntu :: Set Autoindent In Vim For Certain File Types?

Apr 15, 2010

I hope this is in the right spot. I need some help editing my .vimrc file. I want to edit it so that if I create a .cpp file, it will turn on cindent, and if I create a .asm file, it will turn on regular autoindent and set ft=nasm so Vim uses NASM syntax highlighting. How do I go about doing this?

View 2 Replies


ADVERTISEMENT

Ubuntu :: Grsync - Filtering File Types / Getting Only Some File Types Getting Included And Not Others?

Sep 1, 2011

I'm using Grsync and I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.

I am using the 'filter' option in the 'additional options' box. I am using the command
Code:
filter='merge /home/tim/Desktop/filter'
and I am attaching the filter file I have written. (I have added the .txt extention to upload it).

I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.

View 3 Replies View Related

Server :: Technology For Detecting Types Of Traffic And Allowing To Run Multiple Types?

Apr 9, 2011

I would like port 80 to have a small daemon running on it that detects HTTP traffic and sends a small redirect response, and any other traffic begins streaming data from my VPN daemon. I was wondering if this has already been made, or any kind of technology for detecting types of traffic and allowing you to run multiple types of servers on the same port.

View 4 Replies View Related

Programming :: Conflicting Type Declarations Between Sys/types.h And Linux/types.h

Sep 12, 2010

I'm trying to use "netlink" to get ip address of a Linux box. But the linux/types.h included from "linux/rtnetlink.h" introduced many conflicting type declarations with "sys/types.h".

#include <rtnetlink.h>
#include <sys/types.h>
#include <sys/socket.h>
int main (int argc, char *argv[])
{
return 0;
}

The program will demonstrate such type conflicts.

View 3 Replies View Related

General :: Copy Certain File Types Recursively While Maintaining File Structure On Destination?

Jun 14, 2011

I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.

I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also need to keep the order intact after copying.

For e.g - If I get a JPG file under /home/usr/new/1/ then the destination also needs to be /test/old/new/1/.

At the moment, I am simply putting all files under /test/old/ and I can't somehow get the later /new/1/ folder path created under /test/old/

I understand this could well be done using while OR if else loop, though if someone can just guide me with a hint, I would be really grateful.

I will complete the rest of the steps and was asking here since I am still not comfortable with the shell/bash scripts yet and planning to be really good at it over the next couple of months.

View 1 Replies View Related

Ubuntu :: Vim Latex - Autoindent Feature Not Working

Feb 1, 2011

I installed the vim-latex suite. Syntax colors are working great, but the autoindent feature is not working like it works for .html and .f90 files. My .vimrc file is, as far as I can see, correct:

Code:
syntax on
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
set shellslash
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep -nH $* .....

View 1 Replies View Related

Ubuntu :: Looking For File Types Editor For GNOME?

Feb 2, 2010

I'm trying to use this guide:
http://ubuntuforums.org/showpost.php?p=3276774

but i can't seem to find or to download AssoGiate so i need something eles to create mime.

View 6 Replies View Related

Ubuntu :: Associate A File-types With A Program?

May 7, 2010

I want to make vlc the default application for opening avi files.

I tried 'open with a different application', selected vlc and checked the box 'Remember this application for "AVI video" files' (see attached), but the next time I double-click on an avi file it loads in Movie Player.

I've searched the Ubuntu documentation for "file associations" and "default programs" with no success. I'm probably using the wrong search terms, but somewhere, in all the configuration files and tables, there must be a way to assign a particular program to a given file-type.

(If you're wondering why I want to use vlc, it's because, after hours of research and tinkering, I finally got it to respond to my mceusb remote via lirc.)

View 2 Replies View Related

Ubuntu :: Selecting Certain File Types By Extension

Mar 6, 2011

I am trying to move files from one folder to another based on their file extension. I can do it with a single extension, but I want to match multiple.

Example:

This works, but I want it to not only match mov, but also mpg, flv, mp4, etc. I would think something like [mov,mpg,flv] would work, but it doesn't.

View 4 Replies View Related

General :: Enable Autoindent In Emacs?

Apr 20, 2010

How to enable autoindent in Emacs?

View 6 Replies View Related

Ubuntu :: RDP Extensions And Plain Text File Types

Jul 15, 2010

Basically, I have a selection of .rdp shortcuts to various machines, but they are considered the file type "plain text document (text/plain)" so if I change it to open with to tsclient, all of that file type opens with tsclient. And if I change it to gedit, all the rdp files open with gedit. Is there a way to create a custom file type dependent on the extension rdp, or is there a way to set tsclient to open by extension rather than filetype?

View 2 Replies View Related

Ubuntu :: Unknown File Types In /home Folder?

May 13, 2011

I've recently upgraded from 10.04 to 10.10 (a bit late, I know), but have been getting repeated messages telling me that the filesystem is running low on space.

I've run apt-get autoremove and autoclean, but there is still insufficient space for me to upgrade to 11.04.

Whilst looking through the /home folders, I came across a number of 2 character titles folders in the /home/user directory. These have the extension.file. Does anyone know what they are, and can I delete them?

View 9 Replies View Related

Fedora :: How To Open RAR File Types

Sep 25, 2009

I'm not completely new to fedora, but I'm still getting used toWhat programs do I search in the add/remove software. For opening rar file types?

View 10 Replies View Related

Debian :: Tar Multiple File Types Eg *.doc *.txt?

May 21, 2009

how would i go about taring multiple file types, such as *.doc *.pdf *.txt

i know that i can use the command Code: tar -zcvf filename.tar.gz /location/of/backup *.doc , but how do i include multiple wild cards?

View 2 Replies View Related

Ubuntu Servers :: Restrict Users From Uploading Certain File Types?

Apr 30, 2010

I have Ubuntu Server 9.10 running with vsftpd and I want to restrict users from uploading certain file types (.exe, .avi) ect.. Is this possible?

View 1 Replies View Related

Ubuntu Multimedia :: VLC Media Player No Sound In Some File Types?

Nov 9, 2010

I have recently found a strange problem with my VLC Media Player, as it only has sound is certain file types, but on others it doesn't. I have tried to run .AVI files, and it plays sound, also tried .flv files, but with no luck. I am running Ubuntu 10.10.

View 2 Replies View Related

Fedora :: Changing Associated Applications To File Types?

Apr 17, 2009

What file where holds the information for file opening application preferences?

I have Fedora Core 10 (2.6.27.5) with openoffice 3.0 installed.All of the OpenOffice programs show in Applications>Office drop down window and work fine.

Problem is this: If I double click on a calc spreadsheet file (.ods) then the archive manager wants to open it, and I have to right click and manually select scalc as the program to use. If I double click on an odt text file (.odt), okular opens it. I have to right click and select swriter.

If -- BTW -- I click on an excel (.xls) file, calc will start and open the file.

I would like to change these file application preferences, but can't find where to do it or what file to edit to break the current preferences.

View 2 Replies View Related

Software :: Gnome With Associated Applications For Registered File Types / Cant See Apps From "open With" Menu When Right Click To A File?

Oct 6, 2010

I am using Ubuntu 10.04 with Gnome 2.30.

I remove the applications which i don't use from main-menu. Now i can not see them from "open with" menu when i right click to a file.

Also it will be very nice if Ubuntu can show me on the "open with" menu the possibilities of applications which can open properly the file type which i want to open. I try to configure with ubuntu-tweak's "file type manager" but it is not possible to configure all of file types. I think Ubuntu's applications must to know which applications has to show for which file types. And i don't know how to do that. I need an application like this : url

I get a new user from the same OS, and i see that the same problem still there... For example many many compressed files, audio or graphic files are not associated with vlc or gimp.

I try to configure from system files of gnome but it is very complicated.

View 2 Replies View Related

Ubuntu :: Edit Mime Types To Remove A File Type Association?

Oct 30, 2010

I installed a trial copy of Anquet Map V06 under Wine then decided to remove it. Afterwards I could find many remnants associated with the Anquet program which I've deleted. Except what remains is an association between my .gpx files with Anquet and that includes and any new gpx file I download. My interpretation is that during the install process an association has been created with the gpx file type and the Anquet map program. This is what I want to stop. If I download a .gpx file and look at it's properties I see- Type: GPX File -Anquet Mapsv06 (application/x-wine-extension-gpx) I found this file and it's contents-

/.local/share/mime/application/x-wine-extension-gpx.xml
<mime-type type="application/x-wine-extension-gpx">

<!--

[code]....

Running "sudo update-mime-database /usr/share/mime" and rebooting didn't remove the association. How can I stop the Anquet name making as association with my gpx files?

View 9 Replies View Related

Ubuntu :: Running Executable Text Files And Permissions And File Types

Nov 10, 2010

I checked the 'Run executable text files when they are opened' option in Nautilus preferences. I have noticed that files such as .sh and .bin launch by simply clicking on then (which is great). However I have also noticed that an ordinary .txt and .html file must not be marked as executable in order to launch it in Gedit and Firefox respectively via clicking. Otherwise you must right click and open with every time. What file types need to have execute permissions? What file types never need to have execute permissions?

View 2 Replies View Related

Networking :: .htaccess And Forced Download Of Certain File Types?

Jun 10, 2009

I tried to force download of certain file types - pdf,doc,jpg - instead of opening them in applications. I used AddType application/octet-stream .pdf and AddType application/force-download .pdf but it doesnt works. Has anybody an idea how to solve this problem?

View 1 Replies View Related

General :: Command For Finding Specific File Types?

Oct 15, 2009

If there is a command I can use to find specific file types? Say if I want to find all the jpg's in my home folder, but they don't have the .jpg extension in the name, how would I do it? Or can I set some kind of size parameter to find them? The ones I want are all from my digicam and roughly the same size.

View 7 Replies View Related

Security :: Deny Download Some File Types On Squid?

Nov 15, 2010

How to deny download some file types on squid ?

I tried below in my squid.conf

acl blockfiles urlpath_regex -i "/etc/squid/src/blockfiles"
http_access allow localnet freesites !blockfiles

and in my /etc/squid/src/blockfiles

.[Ee][Xx][Ee]$
.[Aa][Vv][Ii]$
.[Mm][Pp][Gg]$
.[Mm][Pp][Ee][Gg]$
.[Mm][Pp]3$
.[Rr][Aa][Rr]$

I still able to download

View 2 Replies View Related

Programming :: Find Sys/types.h File / Library Files?

Mar 24, 2009

can anyone provide me with the path where i can find the library files. stdio.h, sys/types.h.......

View 4 Replies View Related

OpenSUSE :: Default Programs To Open File Types In LXDE?

Nov 30, 2010

i've iregulare situation here i use LXDE and when i use chromium (for ex)and download a jpg file and then open it it starts FIREFOX and then asks me to open it i want chromium (for ex) to open that file type directly with images viewer another example when i installed awn and made some favorite applications shortcut on it when i try to open those shortcuts it opens firefox again and ask me to download or open O_O how can i remove firefox from all this proccess ?

View 6 Replies View Related

Ubuntu :: Searching WITHIN Doc - Xls - Ppt Files - Grep Is Unable To Locate Text INSIDE File Types

Sep 1, 2011

I am on Ubuntu 11.04 and using Libre Office 3.3.2 to compose new documents and am saving them using .doc, .ppt and .xls files. (due to having to share them with others who are on Windows systems)

I have a lot of doc files and I need to search for text INSIDE these files. I am perplexed with the fact that no search tool is able to search for text INSIDE these file types. "cat" can display them of course, but grep is not able to locate text INSIDE these file types. I even tried to save a .doc file as an .odt file, but no luck. The Applications>Accessories>Search for Files does not search INSIDE doc, xls or ppt with the option "Contains the text".

View 6 Replies View Related

General :: Convert A Large Number Of File Types From None Standard To Text?

Sep 28, 2009

I have on my windows machine several hundred files that are a format of .nc .ncs for a CNC machine. I need to convert them to txt which is something as easy as opening in notepad and then saving as .txt but there are so many that this kind of action would take way too long.

The reason I am writing the linuxquestions is because I would feel more comfortable in loading a live CD and using some sort of terminal command to do this than I would to download one of the many "freeware" type programs I have found for windows (even more so since I have had a root kit before and had to start all the way over to get rid of it).

I need to know:

1. Is this possible to do with the terminal without super advanced knowledge.

2. Can one please point me in the right direction; something to read or an example

View 2 Replies View Related

General :: Identify File Types - Command Line Arguments - And Count - How Many Of Them Are Regular Files

Feb 20, 2010

Write a script that will take a list of filenames as arguments and output a count of how many of them are regular files, and how many of them are scripts (if the file is executable, it will be assumed to be a script file)

Counts always come back as 0

View 5 Replies View Related

Fedora :: Icons Of "default Application" / Get Predefined Application Icon To Open Same File Types?

Jan 7, 2011

I would like to get the predefined application icon to open the same file types.

for instance: *.avi, *.mp3 to have the VLC icon

and other application to have the icon of their default application.

So far I only found tips to install single icons or to add icon packs. :S

and is there any way to when you install an application make it default for such file types ?

View 1 Replies View Related

Ubuntu :: 10.04 - Font Types Look Weird

May 12, 2010

Text in firefox (mainly) as in other applications in my system look as you can see above. I didn't touch anything in the configuration. It's started from the very first moment I finished installing 10.04 Has anyone had the same issue?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved