Gvim ~ files

I upgraded to Vim 7.0.17 and now every time a edit a file vim creates another file with the same file name as the one I edited appened with a "~". This file stays even after I save and close gvim. What is it and how can I get rid of them?
-kyle

Put
set nobackup
in your .vimrc. As the name of that setting implies, it's a backup mechanism.

Similar Messages

  • Gtk warning messages

    I get this warning message everytime I try to run something from terminal:
    [jinn@estergon .dc++]$ gvim files.xml.bz2
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    (gvim:3484): Gtk-WARNING **: Kan inte hitta temamotorn i "module_path": "xfce",
    [jinn@estergon .dc++]$
    I have just installed xfce4 4.4 svn, related? I dont know how to fix this.. its annoying

    Um, why are you trying to open a *compressed* file using a text editor?  Does gvim support this?  I think you first need to 'bunzip files.xml.bz2', then open 'gvim files.xml'.

  • Use gvim to edit text areas and get it to use javascript.vim syntax file

    I have had a lot of trouble with javascript and editting files via apex's "javascript" sections in the page.
    The font in firefox did not distinguish various braces well enough for me. I kept accidentally mixing curly braces and parens... And I would now and then put the plsql concatenate operator || instead of the javascript +. Bleah! There are SO many ways to completely break javascript. And the whole javascript herd goes down when just one little function anywhere in there has an errant brace or quote. So I started resenting not using my customary text editor gvim. I have to have this stuff colorized and have showmatch turned on!
    So anyway I found that you can edit textareas with gvim, I don't know if this is commonly known or not so
    I thought I'd mention it. Or you can use whatever editor you want.
    I only tried this on windows but theoretically it works on other operating systems modulo you
    adjusting the shell details appropriately.
    First of all install the"It's all text!' firefox extension and restart firefox.
    then create a batch file something like this:
    (NB: don't call a batch file the same name as an executable. That can cause pesky loops :-)
    gvimrun.bat:
    c:\vim\vim73\gvim.exe %1 -c "set filetype=javascript"
    Note the pathname to gvim.exe needs to be customized. Note the parameter for passing the first argument along. (%1) The set filetype is telling it effectively to use the c:\vim\vim73\syntax\javascript.vim file.
    so then when you bring up your page in apex , when you put the mouse cursor right below the
    down arrow of the vertical scrollbar on the rhs of the textarea, you should see a little blue button
    that says "edit". Then right click and choose preferences. Direct it to your batch file.
    And if all is well it will work and invoke gvim with syntax coloring. Which makes it just a tiny bit less likely to really flub it.
    Now if anyone else wants to pick up the baton and figure out how to get more than one syntax
    in effect such as javascript and jquery? I did find a jquery.vim file out there. ...
    Now that we know how to do this if someone knows some really super great javascript /jquery
    editor that might be way better than gvim I would definitely consider that! Javascript is easy to screw up
    Edited by: lake on Jan 2, 2011 11:34 AM

    Hi Mathan. Here is something i have trying to do. This vi does not write it correct... and have I done something wrongly or "stupidly" in code
    Problems:
    -Second row is inroccet
    -If i know that device returns array where is 10 elements. Can I trust that and just return 10 elements from array and changed it to string?
    -Can I trust queue in this way?
    I think hardest in labview coding is that you dont know what kind component you should use and what is the right way to use them.
    Attachments:
    array to file.vi ‏21 KB

  • Best way for multiple files in vim?

    I've been trying out vim for a couple of weeks now, and I must say that I like it. I use it mostly for programming at work (a couple of hours per day).
    One thing I haven't settled on is how to use a single vim instance to edit multiple files. I've tried tabs and have been reading about vim+screen (how does yank + paste work between vim instances under screen, btw?).
    Which method would you recommend?

    ArchArael wrote:
    Ramses de Norre wrote:A combination of tabnew, split and vsplit
    That's also my case. I also prefer gvim over vim because of better font rendering and major amount of colors. I don't use screen proficiently but suppose you can use "+y for copying and "+gp for pasting.
    You could map these combination to some keyboard shortcut.
    By the way...sorry if offtopic.
    I can see why many of users use screen. I use it only if I have to keep active a job over a ssh session. Locally I prefer tabs or multiple terminal windows instead.
    when you're connected to a remote computer, you don't want to reconnect for each terminal tab. so you use screen and get used to the shortcuts and use it at your local pc too.

  • SQL Loader and foreign characters in the data file problem

    Hello,
    I have run into an issue which I can't find an answer for. When I run SQL Loader, one of my control files is used to get file content (LOBFILE) and one of the fields in the data file has a path to that file. The control file looks like:
    LOAD DATA
    INFILE 'PLACE_HOLDER.dat'
    INTO TABLE iceberg.rpt_document_core APPEND
    FIELDS TERMINATED BY ','
    doc_core_id "iceberg.seq_rpt_document_core.nextval",
    -- created_date POSITION(1) date "yyyy-mm-dd:hh24:mi:ss",
    created_date date "yyyy-mm-dd:hh24:mi:ss",
    document_size,
    hash,
    body_format,
    is_generic_doc,
    is_legacy_doc,
    external_filename FILLER char(275) ENCLOSED by '"',
    body LOBFILE(external_filename) terminated by EOF
    A sample data file looks like:
    0,2012-10-22:10:09:35,21,BB51344DD2127002118E286A197ECD4A,text,N,N,"E:\tmp\misc_files\index_testers\foreign\شیمیایی.txt"
    0,2012-10-22:10:09:35,17,CF85BE76B1E20704180534E19D363CF8,text,N,N,"E:\tmp\misc_files\index_testers\foreign\ลอบวางระเบิด.txt"
    0,2012-10-22:10:09:35,23552,47DB382558D69F170227AA18179FD0F0,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\leesburgis_á_ñ_é_í_ó_ú_¿_¡_ü_99.doc"
    0,2012-10-22:10:09:35,17,83FCA0377445B60CE422DE8994900A79,binary,N,N,"E:\tmp\misc_files\index_testers\foreign\làm thế nào bạn làm ngày hôm nay"
    The problem is that whan I run this, SQL Loader throws an error that it can't find the file. It appears that it can't interpret the foreign characters in a way that allows it to find that path. I have tried adding a CHARACTERSET (using AL32UTF8 or UTF8) value in the control file but that only has some success with Western languages, not the ones listed above. Also, there is no set of defined languages that could be found in the data file. It essentaially could be any language.
    Does anyone know if there is a way to somehow get SQL Loader to "understand" the file system paths when a folder and/or file name could be in some other langauge?
    Thanks for any thoughts - Peter

    Thanks for the reply Harry. If I try to open the file in various text editors like Wordpad, Notepad, GVIM, andTextpad, they all display the foreign characters differently. Only Notepad comes close to displaying the characters properly. I have a C# app that will read the file and display the contents and it renders it fine. If you look at the directory of files in Windows Explorer, they all are displayed properly. So it seems things like .Net and Windows have some mechanism to understand the characters in order to render them properly. Other applications, again like Wordpad, do not know how to render them properly. It would seem that whatever SQL Loader is using to "read" the data files also is not rendering the characters properly which prevents it from finding the directory path to the file. If I add "CHARACTERSET AL32UTF8" in the control file, all is fine when dealing with Western langauges (ex, German, Spanish) but not for the Eastern languages (ex. Thai, Chinese). So .... telling SQL Loader to use a characterset seems to work, but not in all cases. The AL32UTF8 is the characterset that the Oracle database was created with. I have not had any luck if I try to set the CHARACTERSET to whatever the Thai character set is, for example. There problem there though is that even if that did work, I can't target specific lagauages because the data could come from anywhere. It's like I need some sort of global "super set" characterset to use. It seems like the CHARACTERSET is the right track to follow but I am not sure, and even if it is, is there a way to handle all languages.
    Thanks - Peter

  • How to find out what files a package has installed?

    Sometime you installed a package, but you don't know the name of the command to run and you don't know the name and location of the configuration files. There are conventions but is there a way to show those information explicitly?

    aberkoke wrote:
    You can try
    $locate
    for example. you write
    $locate firefox
    and you will see all files about firefox.
    That's a partial solution. Suppose I installed a package called gtk-vim, but the binary is gvim and I didn't know that. If I use
    locate gtk-vim
    it will not find "gvim".
    Besides, different packages may install files with names identical or partially identical. What I want to find out is what files a specific package installed or removed, or changed, just like the deb package manager in ubuntu.

  • How to change fonts in Gvim's menus

    How can I change the fonts in Gvim's menues? I tried to add this in the .Xdefaults file
    Vim*useSchemes: all
    Vim*sgiMode: true
    Vim*useEnhancedFSB: true
    Vim.foreground: Black
    Vim.background: Wheat
    Vim*fontList: 7x13
    Vim.menuFontSet: -*-bitstream vera sans mono-medium-r-*-*-10-*-*-*-*-*-*-*
    with no luck.
    Orjanp...

    [xerxes2@UFU ~]€ cat .gtkrc-2.0
    #$(gtkconfigdir)/gtkrc.iso-8859-2
    # This file defines the fontsets for iso-8859-2 encoding
    # make symliks or hardlinks to gtkrc.$LANG if your language uses iso-8859-2
    # and a gtkrc.$LANG doesn't exist yet.
    gtk-font-name = "bitstream bold 12"

  • [SOLVED] `Vim/Gvim: set mouse=a works only in Gvim?

    I'm diving into the world of (g)vim this weekend and although I'm starting to get the hang of things, I seem to be having a problem with the mouse functionality.  I have set mouse=a specified in my .vimrc and gvim respects it, but when I run vi in a terminal session (urxvt) I have to explicitly type :set mouse=a in ex mode before it will work.  Am I missing something?
    Here's what I've got in my .vimrc (linked also ~/.gvimrc) so far:
    " (G)vim settings
    set nocompatible " use gVim defaults
    colorscheme wombat " define syntax color scheme
    syntax on " enable syntax highlighting
    set mouse=a " make sure mouse is used in all cases.
    set backspace=2 " full backspacing capabilities
    set nocindent " set C style indenting off
    set cmdheight=2 " command line height
    set ignorecase " ignore case in search patterns
    set laststatus=2 " occasions to show status line, 2=always.
    set ruler " ruler display in status line
    set showmode " show mode at bottom of screen
    set number " toggle line numbers
    set nobackup " disable backup files (filename~)
    set hlsearch " highlight all search results
    set showmatch " show matching brackets (),{},[]
    " Gvim Settings
    set guioptions-=T " disable toolbar icons
    set guifont=Consolas\ 8 " backslash any spaces
    SOLVED: Silly me I was running 'vi' which has no X support... pacman -S vim fixed it fine.
    Last edited by thayer.w (2007-09-04 00:02:49)

    I just had an issue with no sound after recent updates.  Not sure it's the same problem you are having. 
    I found I had to open Audio Mixer, select Sound card: HDA Intel PCH (Alsa mixer), Select Controls, check box for Speaker and check box for Headphones.  After doing this I found the Speaker volume was set at minimum (although Master and PCM were already set at maximum).  Adjusted Speaker volume up and I finally had sound again.

  • [SOLVED] recommendation for a text editor that can handle 25mb+ files?

    Not sure where to put it, so I put it her (if it's not the right place, can someone please move it.. thanks!)
    I'm building a database of about 60,000 files in folder X.
    I'm using php to organise all the files and clean them up (for exmaple removing "-" and ":") and then sticking them into a database.
    my main text editor is vim,and then I usually use a gui based editor for fast navigation (lets see you go through 1,010,131 lines of output in vim).
    The output is usually suppressed,  but the amount of files in X, changes daily (one day can go without change, then next day a user can add 20 files and another user can remove a file), so whenever a new file comes in I want to see that my code can handle it properly, then be able to stick in thee db properly.
    recently trying to open a 1million line file in Kate, or Kwrite seems to crash dolphin (KDE).
    If I install gvim, I'll need to remove Vim, and I dont want to do that.
    I'm looking for something small with scroll bars, that only needs to edit txt files.
    Last edited by scarletxfi (2010-09-28 22:37:10)

    scarletxfi wrote:I tired that, it wasnt the same, I don't know the exact line number, and as the files always change and are different from each other, i check locations which I know to be problematic..
    thanks for the suggestions thought , I see I have to work on my VIM navigation skills
    If you know that it's some specific subdirectory that usually messes up, or you know the name of the file you want to find, you can do /FILENAME to search for it. If you know it usually is around line 600,000, then try out 600000G.

  • Font problem in Gvim

    I'm having a slight issue with using a specific font in Gvim. Here's the problem. When I open Gvim and select this font, it displays fine and works without any problem whatsoever. But when I use this line in my .gvimrc file,
    set guifont=Adore64\ 6
    and I open up a new session of Gvim, it results in garbage characters.
    Now, I've tried fontforge to no avail, and of course I've spent time googling for a solution but haven't been able to solve it. I did find something about Gvim not being able to display non-monospace fonts or something along those lines, but if that's the case, why does the font display just fine if i manually change it once I've opened a new session?

    Morrad wrote:
    I'm sorry for the wild goose chase then.
    Last couple stabs in the dark^H^H^H questions:
    Can you specify the font without the size successfully? (ie, :set guifont=Adore64)
    Does it work when you specify a different font size?
    What happens if you start from a given font, and manually try to set the guifont while gvim is running?
    What is vim's encoding set to (:set encoding)?  Does changing that do anything to help?
    No worries man, really appreciate the help. As for those questions.
    No luck there
    Nope, tried 8, 10, 12 as well as 6, but still getting garbage characters (Size changes though).
    That works
    It's currently set to 'encoding=utf-8', and changing it to =iso8859 or =Latin1, didn't seem to work either.
    It's strange because if I'm able to set it manually once Gvim is opened you would assume the exact same command would work in the .gvimrc file. And just in case there might be some conflicting commands or something, here's my full .gvimrc file.
    colorscheme waspy
    set nu!
    set ts=4
    set lines=40
    set columns=100
    set guifont=Adore64\ 6
    set sw=4
    set cin
    set cinw=if,else,while,do,for,switch
    syntax on
    set syntax=c

  • File association in xfce4

    I am wondering how file association works in xfce4.
    Examples: After emacs was installed, xfce4 wanted to open all kinds of files in a new instance of emacs. An .scm scheme source code file was opened in StarCraft Map Editor An .xml file was opened in winebrowser,  many many instances of winebrowser were opened, stole all cpu time and I had to kill the X session. An .mp3 is opened in gxine. (I think gxine has a horrid UI, I use it as an opera plugin.)
    In the right click menu I can choose between gxine or vlc or audacious. "Open With Other Application" > "Use as default for this kind of file"  is an option too, but I rather have this information accessible in one conf file. Now is there one somewhere?

    Yes, there were relevant files in ~/.local/share/applications/  I was staring right at them and didn't see. Anyway I don't understand them and their syntax well enough to edit them yet.
    mimeinfo.cache
    [MIME Cache]
    application/x-wine-extension-ini=wine-extension-ini.desktop
    image/gif=feh-usercreated-1.desktop
    image/jpeg=feh-usercreated-1.desktop
    application/x-wine-extension-hlp=wine-extension-hlp.desktop
    image/png=feh-usercreated-1.desktop
    application/x-wine-extension-scx=wine-extension-scx.desktop
    text/html=wine-extension-htm.desktop;wine-extension-html.desktop;
    text/plain=gvim-usercreated.desktop;wine-extension-txt.desktop;
    application/rtf=wine-extension-rtf.desktop
    application/x-chm=wine-extension-chm.desktop
    application/xml=wine-extension-xml.desktop
    text/x-scheme=wine-extension-scm.desktop
    application/x-mswrite=wine-extension-wri.desktop
    A lot of wine stuff and feh doesn't animate .gif
    defaults.list
    [Default Applications]
    application/xml=gvim.desktop
    audio/mpeg=vlc.desktop
    video/x-flv=vlc.desktop
    text/x-scheme=gvim-usercreated.desktop
    application/x-shockwave-flash=opera.desktop;conkeror.desktop
    video/x-ms-wmv=vlc.desktop
    text/html=opera.desktop
    This one looks better, but isn't it a bit short? (Neither opera or conkeror will actually play the .swf I know I have to fix that somewhere else.)
    File type, as thunar shows it, seems to be another thing and the cmd "file" shows yet another type.
    /etc/xdg/xfce4/helpers.rc     are just 3 apps and I'm only using 2 since I don't use a mail app.

  • [SOLVED] Open file in current Vim session

    Hello,
    I'm wondering if it's possible to send a file to Vim and have it opened in a new tab within a currently running session/instance.  I'm using the Awesome WM and I'd ultimately like to have the Ranger file manager running in one tag and have it send opened files to a master Vim session running in another tag.
    Thanks for any help,
    Rob
    Last edited by rennis250 (2010-10-27 22:35:57)

    Ah, I was aware of the gVim command and was looking for a terminal implementation.  Thanks, fellas!  It looks like --remote-tab-silent will fit into my work flow nicely.
    Thanks,
    Rob

  • Recommend me a good video player (and help with GVim!)

    How can I replace these seamlessly?
    Totem -> some kind of decent gstreamer video player (suggestions?)
    Gedit -> GVim

    I've found recently my "perfect" (so far) combination in video/audio running on GNOME. That is mplayer+gnome-mplayer+gmusicbrowser.
    gnome-mplayer is a frontend for mplayer and I think is smooth and simple. gmusicbrowser uses mplayer too for playing any audio file. So, you don't need gStreamer nor xine-lib at all. It even sounds strange (not the audio I get).
    Last edited by ArchSoarer (2010-02-18 23:57:17)

  • [SOLVED] FUBAR gvim display

    I reccently installed gvim to use as my text editor, but I'm having a bit of trouble seeing text, whitespace, or anything otherwise meaningful on it.  I've tried changing the font, setting the encoding to utf8, which helped some people who were having problems with similar rectangles showing up for foreign characters, uninstalling/reinstalling gvim, and pacman -Syu, all to no avail.  I explored my logs folder as was suggested in the sticky, but I'm not really sure where I'd find anything that would be helpful.
    Vim works just fine.
    My display:
    http://puu.sh/eo6JT/4a04216ede.jpg
    Last edited by vorom (2015-01-14 20:17:48)

    The picture's an empty file.
    The start screen: http://oi59.tinypic.com/2dmca9t.jpg
    I hadn't created a .vimrc or a .gvimrc.  I stole a user's gvimrc from the internet which read
    " 100 columns, 60 lines
    :set co=100
    :set lines=60
    " Use visual bell instead of beeping
    :set visualbell
    " Use CSS for HTML conversion
    :let html_use_css = 1
    " Luxi Mono 8 point font
    :set gfn=Luxi\ Mono\ 8
    and used that one, which did very little.  Picture: http://oi57.tinypic.com/2q0ok2a.jpg
    Last edited by vorom (2015-01-12 21:17:31)

  • [SOLVED] vi/vim/gvim rebuild from ABS failed

    Hi, tried to rebuild vi from source (to get rid of ruby dependence of vim,gvim by modifing PKGBUILD) and got this message.
    having patch file:7.2.166
    having patch file:7.2.001-100.gz
    Number of patches does not match the patchlevel!
    Edit the PKGBUILD accordingly!
    If I change the PKGBUILD so that
    _patchlevel=167
    instead of
    _patchlevel=65
    It gives me the following message
    having patch file:7.2.166
    having patch file:7.2.001-100.gz
    patching file src/pty.c
    patching file src/version.c
    patch unexpectedly ends in middle of line
    patch: **** Only garbage was found in the patch input.
    How should I modify PKGBUILD to actually build it
    Last edited by ogronom (2009-05-11 13:21:07)

    patchlevel should only be 166, as there isn't a patch 167 yet.
    ftp://ftp.vim.org/pub/vim/patches/7.2/
    I think the problem might be that the 1-100 file is a collection of individual patches (inclusive from 1 to 100). The patch fetch/apply scriptlet might be trying to apply all those twice. It is a fairly simple shell script (not alot of logic).
    on line 21 of get_patches.sh
    for _line in $(/bin/cat MD5SUMS); do
    you could try changing that to
    for _line in $(/bin/cat MD5SUMS | grep -vF '-'); do
    that should work, in conjunction with changing the patchlevel to 166
    EDIT: You should also file a bug report about the get_patches script failing if there are patch bundles included in the md5sum file from the vim patch directory, as it appears to be trying to add the patch bundle as well as the individual patches.
    Last edited by cactus (2009-05-11 02:56:35)

Maybe you are looking for

  • Gmail Buttons Not Working In Safari 6.0.5

    The Archive, Spam, Delete and Mark As Read buttons don't work in Safari 6.0.5 any more (OSX 10.8.4). I've enabled the Developer Menu, cleared the cache, no better. Anyone got any ideas? Having to use the Gmail app on my iPhone at the mo!

  • Coding for message

    Hi experts, i have a table with one field subtype  which contains 4 values like x1,x2,x3,x4. i want to give a message with pop up like "for these subtypes x1,x2,x3,x4 the materail nos are not assigned'" plese suggest with sample code using message cl

  • No Apps in Apps Tab

    When I open CC Desktop (Mac) and click on the Apps Tab, I get a Download Error message: Clicking Reload button does nothing. Any suggestions? Thanks!

  • Photoshop CS6 trial download on Mac

    I am using a MacBook with 10.4.11 software.  Downloaded the CS6 trial version and it worked fine.  Tried to open the app and it acts like it will open but then does nothing.  Trashed everything and downloaded again with same results.  Any ideas?

  • My files are suddenly going dark after certain operations?

    Last week a very strange (and new) thing began to happen.  If I have multiple files open in tabbed viewing and I perform certain operations on any one of the open files, all of the open files suddenly darken considerably.  It looks as though I had cr