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
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
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
, 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
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
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
? 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
, 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
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
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
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
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
...),
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
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
. 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
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
`. 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
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
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
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
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
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
, 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
-~--~~~~--~~--~--~---
--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
-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
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
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
).
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
.
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
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
...)
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
.
--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
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
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
/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
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
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
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
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
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
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
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
-~--~~~~--~~--~--~---
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
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
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
. 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
-~--~~~~--~~--~--~---
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
...
\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
@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
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
-~--~~~~--~~--~--~---
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
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
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
--
Ted
--
Ted Pavlic [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---
54 matches
Mail list logo