Wednesday, May 1, 2013

Re: Removing junk .swp files

Scratch the part about -type d

~Mike

On May 1, 2013, at 10:49 AM, BPJ <bpj@melroch.se> wrote:

> Is there any easy/automatized way to remove junk (as in not associated with any file currently open in (g)vim) .swp files
> in the current directory and its subdirectories?
> A plugin perhaps?
>
> /bpj
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> --- You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Removing junk .swp files

On Wednesday, May 1, 2013 12:49:06 PM UTC-5, BPJ wrote:
> Is there any easy/automatized way to remove junk (as in not
>
> associated with any file currently open in (g)vim) .swp files
>
> in the current directory and its subdirectories?
>
> A plugin perhaps?
>

Such .swp files should never exist if you always exit Vim normally.

Only when Vim crashes or gets terminated abnormally will you have such files hanging around.

Having them stick around is how recovery works.

One of the "swap exists" choices that will appear the next time you edit that file, is to delete the swap file. If Vim is not editing that file, under what circumstances should Vim delete them? You risk losing the ability to recover files if Vim scans the current directory for any swap files on startup or something.

On Unix-like systems, swap files should be hidden by default, so you won't see them cluttering up anything unless you deliberately show swap files.

On Windows systems, check out my autohide plugin to accomplish the same:

http://www.vim.org/scripts/script.php?script_id=4505

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Removing junk .swp files

You could setup a tmp directory for where swp files are stores.

set directory=~/.vim/tmp/swap

If you have swp files littered about, run this command to recursively find and delete them:

find . -type d -name .swp | xargs rm -rf

~Mike

On May 1, 2013, at 10:49 AM, BPJ <bpj@melroch.se> wrote:

> Is there any easy/automatized way to remove junk (as in not associated with any file currently open in (g)vim) .swp files
> in the current directory and its subdirectories?
> A plugin perhaps?
>
> /bpj
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> --- You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Removing junk .swp files

Is there any easy/automatized way to remove junk (as in not
associated with any file currently open in (g)vim) .swp files
in the current directory and its subdirectories?
A plugin perhaps?

/bpj

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Fix for missing keys on bluetooth keyboards


For those who're trying to get vim going on tablets with bluetooth keyboards, it appears this provides solution for missing keys. <http://forums.logitech.com/t5/Keyboards-and-Keyboard-Mice/Tablet-Keyboard-missing-keys-fix/td-p/699426>

Regards,
------------------------------------------------------------------------------------------
Eric Weir

"Any assurance economists pretend to with 
regard to cause and effect is merely a pose."

- Emanuel Derman






Re: :Explore shows nothing if path contains an embedded tilde (Windows)

Ben Fritz wrote:
> On Tuesday, April 30, 2013 5:38:06 PM UTC-5, Dameron, Gregg wrote:
>> I'm running gvim 7.2 on Windows 7.
>>
>>
>>
>> If I attempt ":Explore" or ":e ." when any folder in my current working directory contains a tilde (e.g., "my~example_folder"), the Netrw Directory Listing buffer displays nothing below the last row of equals signs. Not even "../" is displayed.
> I assume you're running with a netrw plugin around the same age as Vim 7.2 (around 5 years old).
>
> The first thing I think you should try, if you're able, is upgrading your entire Vim installation. cream.sourceforge.net has Vim installers built for Windows with fairly recent patch levels. Currently it is on 7.3.829 and the Vim source is at 7.3.918.
>
> If you can't upgrade the whole install, you can try downloading the latest netrw plugin and placing it in your personal Vim plugin directories. But a 7.2 executable is so old I'm not sure whether the latest netrw will even function with your current Vim.
>
> Vim does install to non-standard areas (like C:\Vim or C:\Users\JohnDoe\Vim) if the only problem you have with installing is write access.
>
Hello!

Using Vista, netrw v149d, and vim 7.3.816, I had no problems with a
directory called "Dir~3". I tested with: :e [path] and with :Explore
[path] variants under both cygwin and windows-style gvim.

Regards,
C Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

vim indexer with auto complete plugin

After using indexer plugin[1] a while, it basically fulfills my requirement. So is there any recommended plugin that would work with indexer plugin? Previously I use javacomplete, but looks like it is incompatible with other `jump to definition function` plugin like easytags, indexer.

Thanks for help

[1]. https://github.com/shemerey/vim-indexer

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.