Shell-like command completion

2011-04-17 Thread Ted
Hello folks, I've written a command that will replace the contents of a buffer with the output of a shell command. I'd like to have it provide completion as similar as possible to that used by bash itself. Ideally, I would like it to use the bash completions themselves, presumably by spawning a

Re: Shell-like command completion

2011-04-17 Thread Ted
Comments inline... On Apr 17, 11:55 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 18/04/11 04:23, Ted wrote: ... I've written a command that will replace the contents of a buffer with the output of a shell command. :%r !whatever or if the buffer contains the command's stdin

Calling autoloaded dictionary functions

2011-03-17 Thread Ted
dumb` and sedding out the remaining codes, but hopefully there is a better way. Salutations, -Ted -- 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

Re: Preventing accidental command-line pastes from destroying the universe

2010-08-27 Thread Ted
, there's the rub. Works well -- at least until I learn Arabic, anyway. Thanks for the lead. Cheers -Ted -- 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

Preventing accidental command-line pastes from destroying the universe

2010-08-23 Thread Ted
these sort of catastrophes. Alternatively, perhaps there is a way to get vim to save a session file when it exits due to an interrupt signal? Not perfect, since there are a few items not saved in a session file, but for a quick fix it would be helpful. Thanks -Ted -- You received this message from

Re: Tips for remembering command's of scripts

2010-08-10 Thread Ted
Seems interesting, thanks for the link, Tom. On Aug 10, 2:25 pm, Tom Link micat...@gmail.com wrote: AK: If I get you right, you've basically implemented a docstring parser for VimL... do I read you?  Is this code published somewhere? I use this ruby script to generate help files from

Re: Tips for remembering command's of scripts

2010-08-09 Thread Ted
? It would be easy enough to use Python's, but that would hurt portability. Cheers -Ted On Aug 9, 11:03 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 06/08/10 15:29, Jeri Raye wrote: Hi, Maybe a stupid question but do you have any tips on rembering all the command's

Re: Vim 7.3e ready for beta testing

2010-08-09 Thread Ted
, including empty lines, set by default to the current behaviour? Cheers -Ted [conque]: http://www.vim.org/scripts/script.php?script_id=2771 [vimshell]: http://github.com/Shougo/vimshell On Aug 9, 5:02 pm, Bram Moolenaar b...@moolenaar.net wrote: Boyko Bantchev wrote: On 8 August 2010 23:01, Bram

Re: how to deal with a space in a directory path in vim

2010-08-09 Thread Ted
It might be more straightforward to set the setting using let, eg :let path = 'C:\my\ projects/...' I tried a simpler such path containing a space under linux and `:find` was able to find a file there. Cheers -Ted On Aug 9, 11:26 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote

getting the source code for an anonymous function

2010-08-03 Thread Ted
I asked [this question] a while back on stackoverflow.com: how to get the source code for an anonymous VimL function. The response that I got explained that doing e.g. :function {42} would display the source code for anonymous function #42. This is particularly useful when debugging errors

Problems using `screen`ed vim-gnome vim which has survived an X crash

2010-07-25 Thread Ted
of using the `vim-gnome` build? Thanks -Ted [1]: http://superuser.com/questions/167387/recovering-from-x-crash-effects-on-vim-instances-running-under-screen -- 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

Re: Limitations of vim-python interface with respect to character encodings

2010-07-25 Thread Ted
Yes, very informative. Thanks for that explanation; I had it that vim would *always* convert to utf-8 for internal use. Cheers -Ted On Jul 18, 11:04 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 19/07/10 03:20, winterTTr wrote: On Sun, Jul 18, 2010 at 10:02 PM, Tony

Re: Limitations of vim-python interface with respect to character encodings

2010-07-17 Thread Ted
...), Vim always works with utf-8 natively, even under Windows. Cheers -Ted On Jul 16, 1:36 am, winterTTr winterttr@gmail.com wrote: On Fri, Jul 16, 2010 at 11:45 AM, Ted cecinemapasdera...@gmail.com wrote: I've recently discovered that there are some limitations with respect to using

Re: VIM -- Python eval interface

2010-07-15 Thread Ted
this be related to the number of posts that I've made on this group (just a couple so far)? I got around the problem by Forwarding this message, but maybe this messes up the threading. Cheers -Ted On Mar 29 2009, 11:02 pm, Hari hari.rangara...@gmail.com wrote: Hello All, Is there a reverse equivalent

Re: VIM -- Python eval interface

2010-07-15 Thread Ted
. I guess via a pastebin would be the best way? Sorry for the weird line wrapping; my code actually is under 80 characters wide 8'p On Jul 15, 9:45 pm, Ted cecinemapasdera...@gmail.com wrote: Hello,   Here's some code for a VimL function that is unrelated to the JSON aspects of this problem

Limitations of vim-python interface with respect to character encodings

2010-07-15 Thread Ted
I've recently discovered that there are some limitations with respect to using the python interface to bring non-ascii characters back into vim. For example, this command works as expected: :py vim.command(u'echo \u0061') a However this one gives the following error message: :py

Re: percentage of vim users running python

2010-07-07 Thread Ted
`. Presumably they wouldn't have responded if that weren't the case. Cheers -Ted On Jul 7, 7:33 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 30/06/10 03:20, Ted wrote: Hello folks, I'm wondering if there are some figures somewhere that would provide some sort of estimate

Re: percentage of vim users running python

2010-06-30 Thread Ted
Thanks to all for providing input on my question. I realized that the demographic is a bit more restricted than the general population of vim users; it is that portion thereof who actually install vim modules at all. It's informative to learn that there are some in that group who would not be

percentage of vim users running python

2010-06-29 Thread Ted
advantageous to have that code available outside of the context of vim. I also find that I tend more and more toward a functional programming style that doesn't work particularly well in vimscript. Cheers -Ted -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

calling dictionary functions with call()

2010-03-31 Thread Ted
Hello, I'm hoping to call a static dictionary function using call(). By static I mean that the keyword 'dict' is not used in the function's definition. I use this nomenclature in the hopes that the effect of this keyword is to declare a static member function as is possible in java/C++/etc, ie

Re: Google Chrome under Linux and problems with * and +

2010-03-31 Thread Ted
Hi Raúl, I've been having the same problem. Somewhere along the line the copied text is getting converted from ISO-8859-1 to utf-8. This causes problems because it's actually already in UTF-8. So to convert the current line back you can do :.!iconv -f utf-8 -t ISO-8859-1 I have no idea why

Re: Unclutter .vimrc

2009-09-28 Thread Ted Pavlic
 I think I also can use svn for this ? (svn is already installed on  my system...) Or join the 20th century and stop using svn... then join the 21st century and use git or Mercurial. --Ted P.S. If you search the Internet, you should find several resources for managing RC files (or your home

Re: Unclutter .vimrc

2009-09-28 Thread Ted Pavlic
, send him/her the .hg directory. That's all I'm sayiin'. --Ted -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Using vim as interface to Wikipedia

2009-05-26 Thread Ted Pavlic
--Ted On 5/22/09 3:49 AM, Andrey Zhidenkov wrote: Hello, all. I want to use vim to edit Wikipedia articles. I found a syntax file for .wiki (http://www.vim.org/scripts/script.php?script_id=1787), but this is a syntax highlighting only. It will be great if there was a plugin or script wich would

Re: == appears

2009-05-26 Thread Ted Pavlic
-LaTeX is ever updated to support AMS math/mathutils, I imagine == will be replaced with = instead. These things are documented in: :help latex-suite IIRC, these mappings are provided via IMAP, and so you can add something like... :call IMAP('==', '==', 'tex') in your .vimrc. --Ted On 5/26

Re: Visual-mode pasting modifies unnamed buffer. Correct?

2009-02-25 Thread Ted Pavlic
this as many times as you like, the unnamed register will be changed each time. That passage is clear to me. (I assume it's an addition to :help v_p?) Thanks -- Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family

Re: Visual-mode pasting modifies unnamed buffer. Correct?

2009-02-25 Thread Ted Pavlic
for pasting out of other buffers... Thanks! -- Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. --~--~-~--~~~---~--~~ You

Re: Vi editor for answering emails?

2009-02-25 Thread Ted Pavlic
). You can then use standard Vim mappings to map commonly used commands (e.g., Chatzilla) to ex-mode or vi-mode commands. As in Vim, it's all in the... :help And Vimperator 2.0 is nearly out of beta! --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association

Visual-mode pasting modifies unnamed buffer. Correct?

2009-02-24 Thread Ted Pavlic
. Is this the desired behavior? If so, shouldn't it be documented? Also, is there any way to disable this behavior? I'm happier knowing that only d, c, s, 'x, and y put things into the unnamed buffer. Thanks -- Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http

Re: Vi editor for answering emails?

2009-02-24 Thread Ted Pavlic
use Vimperator as your external editor (for both textarea and input_type=text). 2.) Can use Vim keybindings in every other part of Firefox. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your

Re: Vi editor for answering emails?

2009-02-24 Thread Ted Pavlic
...) But hey... whatever. As long as you're not editing your .vimrc with emacs, I guess it's OK. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS

Re: Fold

2009-02-18 Thread Ted Pavlic
. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Ted Pavlic
But aliases don't work there because they are expanded only in interactive shells. Use :set shcf=-cl to get :!alias to give you the expected result. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto

Re: What is the shell VIM uses for :!command ?

2009-02-09 Thread Ted Pavlic
Ahh, thank you. I knew I had the shell set properly, but I didn't realize that about alias. It's not just shell, but shellcmdflag too :help shcf --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family

Vim's gitconfig filetype (and folding)

2009-01-28 Thread Ted Pavlic
/gitconfig.vim. I'll paste those rules here (but beware of word wrap): :set foldexpr=getline(v:lnum)=~'^[;#]\\s*\\(ex\\\|vi\\\|vim\\):'?\1\:((getline(v:lnum)=~\^#=[\)?\1\:\1\) :set fdm=expr --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http

Re: svn/git/etc blame compatible syntax highlighting

2009-01-25 Thread Ted Pavlic
options... :set annotatetype=git (for the left side of git blame) :set filetype=perl (for the right side of git blame) Otherwise, you'd need something like gitBlamePerl.vim and gitBlameC.vim and . . . (and a way to autodetect which one to use) --Ted -- Ted Pavlic t

Re: vim latex suite - can't find file ????.tex

2009-01-16 Thread Ted Pavlic
I can't find file `???.tex'. .tex Emergency stop Does it actually give you ? marks? Or do those represent a generic file name? Do a :pwd to verify that Vim is actually sitting in the same directory as your TeX files. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS

:abbr this'is'a'test works in :help's buffer but not elsewhere?

2009-01-16 Thread Ted Pavlic
the value of modifiable doesn't change the behavior in the main window) Why does this behavior occur? VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 12 2009 16:10:51) MacOS X (unix) version Included patches: 1-75 --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page

Placement of quotes in :abbr causes E474 at strange times

2009-01-16 Thread Ted Pavlic
I notice that :abbr stuff and :abbr stuff do not give me E474, but :abbr stuff and :abbr stuff do. So what's the rule? When does an abbr give a E474 and when does it not? --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page

Re: Placement of quotes in :abbr causes E474 at strange times

2009-01-16 Thread Ted Pavlic
So what's the rule? When does an abbr give a E474 and when does it not? I see now. :help :abbr didn't help me, but :help abbreviations did. Thanks -- --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family

Re: latex-suite - executing script after plugin loading

2009-01-15 Thread Ted Pavlic
of tex type is detected, and those commands will be executed /after/ all others. --Ted -- Ted Pavlic t...@tedpavlic.com Please visit my ALS association page: http://web.alsa.org/goto/tedpavlic My family appreciates your support in the fight to defeat ALS

Re: Remove *TeX leftovers

2009-01-06 Thread Ted Pavlic
use a GNUmakefile rather than a Makefile. Vim-LaTeX doesn't look for those) --Ted -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: :shell and .bash_login

2009-01-02 Thread Ted Pavlic
vim from a launcher, you should wrap it in a login shell bash -lc vim That's effectively how MacVim solves the problem with its instances of vim. --Ted On 12/31/08 5:32 AM, Hunt Jon wrote: Hi I'm using a Mac and VIM, which comes by default. If I run :shell, the shell doesn't seem

Re: :shell and .bash_login

2008-12-31 Thread Ted Pavlic
Pardon the terse response. I'm on a cell phone. Look at shcf setting in vim. Change to -lc to run a login shell. Otherwise use macvim with login shell pref checked on. Or adjust your environment.plist file. On 12/31/08, Gary Johnson garyj...@spk.agilent.com wrote: On 2008-12-31, Hunt Jon

Re: Use ctags and taglist plugins for LaTeX

2008-12-14 Thread Ted Pavlic
for that. Additionally, the TeXer might do something like... \let\oldsubsection\subsection \renewcommand{\subsection}{stuff...\oldsubsection} and that way Vim wouldn't be confused at all. --Ted -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received

Re: Use ctags and taglist plugins for LaTeX

2008-12-14 Thread Ted Pavlic
. Is it possible to make things user extensible though? --Ted (who has never used ctags in Vim) -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Use ctags and taglist plugins for LaTeX

2008-12-14 Thread Ted Pavlic
comprehensively handle LaTeX is probably shooting too far right now. Having something that just handles the basic sectioning commands might be a more tractable task. --TEd -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received this message from

Re: Use ctags and taglist plugins for LaTeX

2008-12-13 Thread Ted Pavlic
... \frontmatter \backmatter \appendix \bibliography{...} Oh, and every macro (\macro) eats all whitespace (including newlines) after it. Comments start with % anywhere in the line, and that % eats all whitespace after it and STARTING on the NEXT LINE. --Ted -- Ted Pavlic t...@tedpavlic.com

Re: how can i unregister to VIM group

2008-12-11 Thread Ted Pavlic
@googlegroups.com List-Help: mailto:vim_use+h...@googlegroups.com List-Unsubscribe: http://googlegroups.com/group/vim_use/subscribe, mailto:vim_use+unsubscr...@googlegroups.com --Ted -- Ted Pavlic t...@tedpavlic.com --~--~-~--~~~---~--~~ You received

Including a Mercurial (ini file) syntax with Vim

2008-12-08 Thread Ted Pavlic
to see hgrc syntax support (as an INI file or otherwise). --Ted -- Ted Pavlic [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Including a Mercurial (ini file) syntax with Vim

2008-12-08 Thread Ted Pavlic
Alternatively, the existing cfg file type works well for such files autocmd BufNewFile,BufRead *.hgrc,*hgrc setfiletype cfg --Ted Ted Pavlic wrote: Vim presently comes packaged with a gitconfig filetype. However, it doesn't have any support for Mercurial hgrc files

Re: Including a Mercurial (ini file) syntax with Vim

2008-12-08 Thread Ted Pavlic
So does the already existing 'dosini' filetype. However, neither 'dosini' nor your 'ini' syntax file allow for comments at end of line, ie Okay. All good points. So maybe gitconfig should be the filetype for hgrc files. --Ted -- Ted Pavlic [EMAIL PROTECTED

Turning off W11 without autoread?

2008-11-20 Thread Ted Pavlic
set buftype to something nonempty, but that doesn't seem like a good idea. Thoughts? Thanks -- Ted -- Ted Pavlic [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http

Re: Turning off W11 without autoread?

2008-11-20 Thread Ted Pavlic
-- Ted -- Ted Pavlic [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---