I have written a script to download scripts for vim directly from
thewww.vim.orgsite.
Please find a link to the same
:http://blog.amit-agarwal.co.in/2011/03/09/all-in-one-solution-for-all...
Would it be fit to be added to http://vim-scripts.org/vim/tools.html
which seems to be the most
Hi Amit Agarwal's,
I did a small review.
Summary:
- do research before starting work
- Learn how to code. This means avoiding duplication.
Nice comments are fine. Working code is always better.
- You can publish it nicer. Its hard to read within the small text box..
(eg paste sites such as
On Thu, March 17, 2011 8:01 am, Marc Weber wrote:
- Have you ever run this code !?
[#!/bin/bash]:
while true
do
A ; is missing.
No, that is perfectly valid.
regards,
Christian
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the
Excerpts from Christian Brabandt's message of Thu Mar 17 07:42:08 + 2011:
No, that is perfectly valid.
You're correct. I apologize for it. Sorry.
Marc Weber
--
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
All,
Say, in a terminal, I opened many files by invoking vim or gvim program many
times, like:
vim a
vim b
vim c
...
Than I realized I need to close all of them. So I had to close them one by
one:
%1 and :qa!
%2 and :qa!
...
Is there a better way to close all files by issuing one command or
I created different menu commands to let VIM do the same command but
for different modes:
- one if I have selected the text
- another one for the whole text
Would it be possible to let VIM/Vimscript auto-detect if I have
selected text (p.e. more then 2 characters)
--
You received this
Is it possible to open several files in the file explorer? Say I open the
file explorer with :e. and then I want to open 3 files in this directory and 4
in another. Is there a possibility to select these files and to open them all
at once?
Marco
who admits that he has not read the manual in
On Thu, Mar 17, 2011 at 11:08, Forest Wang wangme...@gmail.com wrote:
All,
Say, in a terminal, I opened many files by invoking vim or gvim program many
times, like:
vim a
vim b
vim c
...
Than I realized I need to close all of them. So I had to close them one by
one:
%1 and :qa!
%2
On Thu, March 17, 2011 12:14 pm, Ivan Krasilnikov wrote:
On Thu, Mar 17, 2011 at 11:08, Forest Wang wangme...@gmail.com wrote:
All,
Say, in a terminal, I opened many files by invoking vim or gvim program
many
times, like:
vim a
vim b
vim c
...
Than I realized I need to close all of
I want to assign a mapping like :nmap A-h ... But the result is that the
help menu (in gvim) pops up. I unable to find any mappings to A-h in the
:map output. :unmap A-h doesn't work as well. Other ALT key mapping work as
expected. How can I get rid of this help menu annoyance and assign my
Hi,
Marco wrote:
I want to assign a mapping like :nmap A-h ... But the result is that the
help menu (in gvim) pops up. I unable to find any mappings to A-h in the
:map output. :unmap A-h doesn't work as well. Other ALT key mapping work as
expected. How can I get rid of this help menu
On 2011-03-17 Jürgen Krämer jottka...@googlemail.com wrote:
I want to assign a mapping like :nmap A-h ... But the result is that
the help menu (in gvim) pops up. I unable to find any mappings to A-h
in the :map output. :unmap A-h doesn't work as well. Other ALT key
mapping work as
Reply-To: dva...@internode.on.net
In-Reply-To: 8fc5808f-0fa2-4ad8-bc01-b614c2943...@17g2000prr.googlegroups.com
On Wed, Mar 16, 2011 at 10:39:43AM -0700, Bee wrote:
On Mar 16, 12:02 am, Erik Christiansen dva...@internode.on.net
wrote:
I'll try to fly for a while without '2', but will have
On Thu, 17 Mar 2011, Erik Christiansen wrote:
[...]
OK, a quick check to see that I have the build-essential and
linux-headers-$(uname -r) packages on this box, fetch the 7.3 source,
and sudo make:
You shouldn't need `sudo` for the `make` portion. Just if you then
`make install` to
On Thu, March 17, 2011 2:17 pm, Benjamin R. Haskell wrote:
On Thu, 17 Mar 2011, Erik Christiansen wrote:
[...]
OK, a quick check to see that I have the build-essential and
linux-headers-$(uname -r) packages on this box, fetch the 7.3 source,
and sudo make:
You shouldn't need `sudo` for
Hi,
Erik Christiansen wrote:
Reply-To: dva...@internode.on.net
In-Reply-To:
8fc5808f-0fa2-4ad8-bc01-b614c2943...@17g2000prr.googlegroups.com
On Wed, Mar 16, 2011 at 10:39:43AM -0700, Bee wrote:
On Mar 16, 12:02 am, Erik Christiansen dva...@internode.on.net
wrote:
I'll try to fly for a
On Thu, Mar 17, 2011 at 09:17:38AM -0400, Benjamin R. Haskell wrote:
On Thu, 17 Mar 2011, Erik Christiansen wrote:
[...]
OK, a quick check to see that I have the build-essential and
linux-headers-$(uname -r) packages on this box, fetch the 7.3 source,
and sudo make:
You shouldn't need
On Thu, Mar 17, 2011 at 02:44:53PM +0100, Christian Brabandt wrote:
On Thu, March 17, 2011 2:17 pm, Benjamin R. Haskell wrote:
$ rpm -qf $(which vim)
$ sudo apt-get build-dep [whatever the prior command reported]
(or combined:)
$ rpm -qf --qf='%{NAME}\n' $(which vim) | xargs sudo
Marco wrote:
Is it possible to open several files in the file explorer? Say I open the
file explorer with :e. and then I want to open 3 files in this directory and 4
in another. Is there a possibility to select these files and to open them all
at once?
Marco
who admits that he has not
Ben Farquhar wrote:
Hi,
Im doing vimtutor. In particular, this:
1. Start editing the vimrc file. This depends on your system:
:e ~/.vimrc for Unix
:e $VIM/_vimrc for MS-Windows
2. Now read the example vimrc file contents:
:r
On Thu, Mar 17, 2011 at 03:05:23PM +0100, Jürgen Krämer wrote:
the way you have set formatlistpat photos. is interpreted as the
start of an item in a list. You get better results with
:set formatlistpat=^\\s*\\(\\d\\+\\\|\\a\\)\\.\\s*
Note that I have moved the \+ quantifier to
On 2011-03-17 Charles E Campbell Jr drc...@campbellfamily.biz wrote:
Marco wrote:
Is it possible to open several files in the file explorer? Say I open the
file explorer with :e. and then I want to open 3 files in this directory
and 4 in another. Is there a possibility to select these
Reply to message «How to close all files opened by different vim instances.»,
sent 11:08:22 17 March 2011, Thursday
by Forest Wang:
...
vim c
...
Than I realized I need to close all of them. So I had to close them one by
one:
%1 and :qa!
%2 and :qa!
...
Is there a better way to
There seems to be a discrepancy between the documentation for language
mapping the implementation in gVim 7.2. Inside help language-
mapping one of the items which is listed is when entering a search
pattern. However this doesn't seem to be true
If I type :lmap a c and then type /a it will
Actually my $TERM is always xterm and is neither changed in my .vimrc nor
.bashrc
However: This fixed it for me(put it in to my vimrc):
if !has(gui_running) $TERM is xterm
for [key, code] in [[, \eOP],
\[, \eOQ],
\[, \eOR],
On Wed, 2011-03-16 at 23:25 -0700, Tom Link wrote:
+AD4 +AD4 I have written a script to download scripts for vim directly from
thewww.vim.orgsite.
+AD4 +AD4 Please find a link to the same
:http://blog.amit-agarwal.co.in/2011/03/09/all-in-one-solution-for-all...
+AD4
+AD4 Would it be fit to be
On 17/03/11 07:44, JaredPar wrote:
There seems to be a discrepancy between the documentation for language
mapping the implementation in gVim 7.2. Inside help language-
mapping one of the items which is listed is when entering a search
pattern. However this doesn't seem to be true
If I type
On Mar 17, 8:45 am, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
language-mappings are only effective when keymaps are active (i.e.
'iminsert' set to 1). To toggle it, use Ctrl+^ in Insert or Command-line
mode; to toggle it in Normal mode you can use
:let imi = ! imi
which
On 17/03/11 16:52, JaredPar wrote:
On Mar 17, 8:45 am, Tony Mechelynckantoine.mechely...@gmail.com
wrote:
language-mappings are only effective when keymaps are active (i.e.
'iminsert' set to 1). To toggle it, use Ctrl+^ in Insert or Command-line
mode; to toggle it in Normal mode you can use
On Thu, 2011-03-17 at 07:01 +-, Marc Weber wrote:
+AD4 Hi Amit Agarwal's,
+AD4
+AD4 I did a small review.
+AD4
+AD4 Summary:
+AD4 - do research before starting work
I did. If you feel I missed something in my research, point me to it.
+AD4 - Learn how to code. This means avoiding
Jürgen Krämer-4 wrote:
let g:NERDTreeWinSize = 40
I think this is a better way of doing. I could not figure it out earlier.
Thanks for letting me know.
Vladislav Rovda wrote:
Also you can use shift + A to zoom (maximize - minimize) NERD tree window
Thats one way to do it, I tried
Am 17.03.2011 16:52, schrieb JaredPar:
On Mar 17, 8:45 am, Tony Mechelynckantoine.mechely...@gmail.com
wrote:
language-mappings are only effective when keymaps are active (i.e.
'iminsert' set to 1). To toggle it, use Ctrl+^ in Insert or Command-line
mode; to toggle it in Normal mode you can use
On Mar 17, 9:06 am, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
'iminsert', keymaps, and language-mappings affect:
- everything in Insert mode
- search strings entered in ? or / command-line mode
- replace letters, argument of r in Normal mode
- search letters, argument of f F t T
On 17/03/11 17:35, Andy Wokula wrote:
Am 17.03.2011 16:52, schrieb JaredPar:
On Mar 17, 8:45 am, Tony Mechelynckantoine.mechely...@gmail.com
wrote:
language-mappings are only effective when keymaps are active (i.e.
'iminsert' set to 1). To toggle it, use Ctrl+^ in Insert or Command-line
mode;
I recently started using the :yank, :copy and :move commands (as opposed
to doing the equivalent operations in normal mode).
Now say I have two windows open on distinct files. If my cursor is in
window A, is there any way to :yank a line from window B without having
to move my cursor to window
On 17/03/11 18:26, Jean-Rene David wrote:
I recently started using the :yank, :copy and :move commands (as opposed
to doing the equivalent operations in normal mode).
Now say I have two windows open on distinct files. If my cursor is in
window A, is there any way to :yank a line from window B
Reply to message «script to download scripts from vim.org»,
sent 19:17:06 17 March 2011, Thursday
by Amit Agarwal:
Some notes:
1. «grep pat1 | grep pat2 | sed 's/pat3/repl/g'» can be replaced with a single
«sed '/pat1/! d; /pat2/! d; s/pat3/repl/g'».
2. Most tr calls can also be merged into sed
* Tony Mechelynck [2011.03.17 13:50]:
Or if you know which lines to yank (let's say as the contents of some
variables or the result of some expressions) you could write a
function to go to the next window and come back:
func YankFromNext() range
wincmd w
It looks like calls to dictionary functions of autoload variables do
not trigger the autoload.
This happens when the `call` command is used, and does not happen when
`echo` or `let` is the command.
It also does not happen when the call() function is called instead of
making a direct call to the
On Mar 17, 11:35 am, JaredPar jaredppars...@gmail.com wrote:
This doesn't answer the part about why incremental search ever falls
back to command key mapping. I've looked through the documentation
for a bit and can't find any explanation for why this is happening.
I feel like there's a
Hi Amit Agarwal,
I've already admitted that I was badly mistaken about the do while ...
1) your presentation: still indentation is missing
2) What is the real goal? What do we want?
1) Your presentation:
That you present a big box showing the (no longer formatted code)
will cause
Excerpts from rameo's message of Thu Mar 17 10:22:11 + 2011:
Would it be possible to let VIM/Vimscript auto-detect if I have
selected text (p.e. more then 2 characters)
Try :h mode() and report whether this is what you've been looking for:
--
You received this message from the vim_use
Hi Marc Weber,
On Thu, 2011-03-17 at 23:22 +-, Marc Weber wrote:
+AD4 Hi Amit Agarwal,
+AD4
+AD4 I've already admitted that I was badly mistaken about the +ACI-do while
..+ACI.
+AD4
+AD4 1) your presentation: still indentation is missing
+AD4
+AD4 2) What is the real goal? What do we want?
On Thu, 2011-03-17 at 20:50 +-0300, ZyX wrote:
+AD4 Reply to message +AKs-script to download scripts from vim.org+ALs,
+AD4 sent 19:17:06 17 March 2011, Thursday
+AD4 by Amit Agarwal:
+AD4
+AD4 Some notes:
+AD4 1. +AKs-grep pat1 +AHw grep pat2 +AHw sed 's/pat3/repl/g'+ALs can be
replaced with a
On Wed, 2011-03-16 at 23:25 -0700, Tom Link wrote:
+AD4 +AD4 I have written a script to download scripts for vim directly from
thewww.vim.orgsite.
+AD4 +AD4 Please find a link to the same
:http://blog.amit-agarwal.co.in/2011/03/09/all-in-one-solution-for-all...
+AD4
+AD4 Would it be fit to be
Excerpts from Amit Agarwal's message of Fri Mar 18 04:06:58 + 2011:
+AD4 Can you describe briefly what your script does what you didn't find on
+AD4 vim.sf.net?
Currently I am using GLVS for managing my scripts.
GLVS was written when git, mercurial etc were less popular.
Also one of the
Reply to message «Re: script to download scripts from vim.org»,
sent 07:10:50 18 March 2011, Friday
by Amit Agarwal:
I wanted a while loop so that user can stay in the script and do
multiple things in one go. Can getopts be used in that situation. Please
help me on how to do it.
The getopt is
47 matches
Mail list logo