Rod Holcomb | 26 May 18:28 2016
Picon

Does :global convert tabs to spaces prior to sending to the screen?

I have the following function in my  .vimrc

command! -nargs=+ -complete=command TabMessage call TabMessage(<q-args>)
function! TabMessage(cmd)
  redir => message
  silent execute a:cmd
  redir END
  tabnew
  silent put=message
  set nomodified
endfunction

basically it redirect message to a new tab.
however when I run
:TabMessage g//

tabs my buffer get stripped on there way to the new tab.

Thoughts?

Thanks.

-- 
--

-- 
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.
(Continue reading)

Ni Va | 26 May 17:07 2016
Picon

Profiling startup of vim : Sourcing two same

Hi,

By checking my startup of gvim, i notice that some plugin like solarized is loaded two times.

I don't understand why, someone can explain to me that thing ?
thanks
niva

-- 
-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.000  000.000: --- VIM STARTING ---
000.000  000.000: Allocated generic buffers
001.000  001.000: locale set
003.000  002.000: GUI prepared
003.000  000.000: clipboard setup
(Continue reading)

skywind3000 | 26 May 07:49 2016
Picon

How to clear screen before running a shell command after bang(!) in freebsd

Starting working in freebsd, I notice the experience of shell command (!) is quite different in linux.

for example, ":!python %" in linux will clear the screen first and show the output of previous command and after
executing finished it returns to vim

but, ":!python %" in freebsd will scroll vim screen up and output directly below vim gui without 
clear the screen and show the previous output.

Someone in stackoverflow said ":!clear; xxx" could be useful if I want to clear the screen in freebsd, 
but it still can't show me the previous command output.
(http://stackoverflow.com/questions/6885792/clear-screen-before-bang )

Is there an option or building config for me to change the bang(!) experience in freebsd to linux version ?

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michał Urban | 24 May 10:32 2016
Picon

"Executing" vim files

Hi guys,

I've got file with extension vim, which is vim script (concretely this one: javascript.vim by Tye
Zdrojewski). How to "execute" it? In vimrc?

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aubertin.sylvain | 24 May 08:24 2016
Picon

Entries impossible in a Stoustrup code example

The mame of this code is "list". It seems to be incomplete (nowhere a cin instruction). It runs but it doesn't
work. May any one help me (I am a beginner).
Here is the code:

/*phone_book.cpp*/

#include<list>                                                           
#include<iostream>
#include<string>
using namespace std;

struct Entry {
        string name;
        int number;
        Entry(const string& n, int i) :name(n), number(i) { }
};

list<Entry> phone_book;

void print_entries()
/*
        this kind of function should use a parameter,        
        rather then a global name
*/
{
        typedef list<Entry>::const_iterator LI;

        for (LI i = phone_book.begin(); i != phone_book.end(); ++i) {
                const Entry& e = *i;    // reference used as shorthand
                        cout << '{' << e.name << ' ' << e.number << "}\n";
(Continue reading)

Channel commands: special characters, quotes and escaping

Hi list!

I'm currently playing around with the new channel support and came across something I do not fully
understand. Playing around with the demoserver.py I tried to send a command to my vim-instance via
feedkeys. The original command was:

:call feedkeys("ggOHello, world!\e")

From within vim this works. I tried to enter it in the server stdin as:

["ex", "..."]

and had to fight with the nested quotes. The special character "\e" is only accepted within double-quotes.
So I tried to include the whole call-command in single quotes which is not accepted by the default handler
leaving me with

["ex", 'call feedkeys("ggOHello, world!\e")']                                      
> Decoding failed - discarding input

in the ch_log. A working version is

["ex", "call feedkeys(\"ggOHello, world!\\e\")"]                                 

with a lot of escapes. I do not understand why the first solution does not work.

Tanks
Jan

-- 
--

-- 
(Continue reading)

Ni Va | 23 May 14:43 2016
Picon

ballonexpr

Hi,

After defining MyBaloonExpr and seeing it some first times displaying information under cursor, it seems
that the functionality do not display anymore.

May an autocommand should turn off balloneval?

When I ask Vim for definition func and set beval all is ok

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michał Urban | 23 May 10:44 2016
Picon

Vim is too clever for me

Hi,

If I write quotation mark " and then press "o" (new line) then I've got the same quotation mark on the new line.
How to disable it? The same behavior I noticed when pasting text from clipboard.

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Christian Brabandt | 20 May 14:07 2016

distribute my unicode plugin with vim?

Hi,
as some of you may know, I am maintaining a little unicode plugin
https://github.com/chrisbra/unicode.vim

Now I got an issue, that asks if it would be possible to distribute this 
plugin with Vim, so I am asking here for feedback. Would such a plugin 
or package be considered generally useful to be distributed with Vim or 
should I continue to maintain it as separate plugin?

Feedback is welcome.

Here is the description of the plugin, taken from 
https://github.com/chrisbra/unicode.vim/blob/master/README.md which also 
contains a little screencast:

This plugin aims to make the handling of unicode and digraphs chars in 
Vim easier. It serves 3 purposes:

    Complete Characters
    Identify Characters
    Ease the use of Digraphs

Complete Characters

A custom completion function is available to complete characters using 
their Unicode name or Codepoint. If a digraph exists for that character, 
it will be displayed in paranthesis. Press Ctrl-X Ctrl-Z to trigger this 
completion from insert mode. Also a new custom completion for digraph 
chars is available. Press Ctrl-X Ctrl-G to trigger this completion. It 
will display all digraphs, that are reachable from the previous typed 
(Continue reading)

Use Register as Search Pattern in Ex Mode silent

Hello Community,

I'd like to ask if there is somehow a way to use the Content I saved wit +%y+ before to the Clipboard in EX mode as
Search Pattern for the File. I tried it with a ".. combination, but it doesn't work because powershell is
complaining for a second " to close the string. I also tried it like \= <at>  <at>  which works fine as replace
pattern, but not for searches. I tried to set it to Register a with  <at> a= <at>  <at>  And I tried to paste it with <C-r>a ,
but it doesn't work, because commands like <C-r> are not working in written state. Do you have a solution
for that problem. I also would be fine If there is a way to read out the seach pattern from a File somehow with :r.

Thank you very much in advance!

Marcel

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Marco Silva | 19 May 20:49 2016
Picon

dbext result window: column width size problem

Hi, 

I'm using sqlite database and sometimes the column data width displayed
has the size of the column's name. I wanted to cut for a larger size.  I
searched all ways to do it, but closest was to set DBI_max_column_width,
which was fruitless, because I don't use DBI interface.

-- 
Marco Arthur  <at>  (M)arco Creatives

-- 
--

-- 
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 <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Gmane