Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread Christian Brabandt
On Tue, March 26, 2013 03:41, neolus wrote: I couldn't figure out a way to phrase my question but I'm not asking about replacing patterns or anything. I'd like to know if it's possible in vim to ( visually ) show any certain character as something else. e.g. while editing a text file any

Question Ctrl+Shift+V

2013-03-26 Thread Hendrikus Godvliet
I have a problem to get pasted copy in to Vim Please take a look to this two screenshots Gedit and Vim Vim make's a mash of the pasting code http://hendrikus-godvliet.appspot.com/chakras/30001 Plaese can someone help to make me clear how to corect past copy from outsite Vim into Vim.

Re: Question Ctrl+Shift+V

2013-03-26 Thread David Fishburn
On Tue, Mar 26, 2013 at 8:25 AM, Hendrikus Godvliet hendrikusgodvl...@gmail.com wrote: I have a problem to get pasted copy in to Vim Please take a look to this two screenshots Gedit and Vim Vim make's a mash of the pasting code http://hendrikus-godvliet.appspot.com/chakras/30001 You

Re: Question Ctrl+Shift+V

2013-03-26 Thread David Ohlemacher
I have this in my .vimrc: The first line sets a mapping so that pressing F2 in normal mode will invert the 'paste' option, and will then show the value of that option. The second line allows you to press F2 when in insert mode, to toggle 'paste' on and off. The third line enables displaying

Re: Question Ctrl+Shift+V

2013-03-26 Thread Bartłomiej Laskowski
:set paste i CTRL+SHIFT+v esc :set nopaste or... in normal mode +P :wq - Pozdrawiam Laskowski Bartłomiej www.twardy.org ha...@twardy.org +48 693 001 458 W dniu 26.03.2013 13:25, Hendrikus Godvliet pisze: I have a problem to get pasted copy in to Vim Please take a look to

vim 64 python dll loading

2013-03-26 Thread CanisMajorWuff
Hello, I am trying to build vim on Win64. I have a successful build with Dynamic Python 27 Support. But it does not work properly it does not load the python library. My vim plugins inform me that I need python to run them. Here you can see the build of if_python.c gcc -c -Iproto -DWIN32

Re: Question Ctrl+Shift+V

2013-03-26 Thread Gary Johnson
On 2013-03-26, Hendrikus Godvliet wrote: I have a problem to get pasted copy in to Vim Please take a look to this two screenshots Gedit and Vim Vim make's a mash of the pasting code http://hendrikus-godvliet.appspot.com/chakras/30001 Plaese can someone help to make me clear how to

Re: Question Ctrl+Shift+V

2013-03-26 Thread Christian Brabandt
On Tue, March 26, 2013 13:25, Hendrikus Godvliet wrote: I have a problem to get pasted copy in to Vim Please take a look to this two screenshots Gedit and Vim Vim make's a mash of the pasting code http://hendrikus-godvliet.appspot.com/chakras/30001 Plaese can someone help to make me clear

Copying matched parts of lines

2013-03-26 Thread BPJ
Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? /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

Re: Copying matched parts of lines

2013-03-26 Thread Christian Brabandt
On Tue, March 26, 2013 16:43, BPJ wrote: Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? /bpj With a recent enough Vim, you can make use of :s command and execute VimL on the replacement part while not modifying the match (by using the

Re: Copying matched parts of lines

2013-03-26 Thread Tim Chase
On 2013-03-26 16:43, BPJ wrote: Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? Not elegantly, but it can be done: :let @a=''|g/pattern/let @a=@a. .matchstr(getline('.'), @/) (you can change the joining string from to \n if you want

Re: Copying matched parts of lines

2013-03-26 Thread Tim Chase
On 2013-03-26 16:56, Christian Brabandt wrote: On Tue, March 26, 2013 16:43, BPJ wrote: Is it somehow possible with :g// to copy only the matched parts of lines as with the -o option of grep? /bpj With a recent enough Vim, you can make use of :s command and execute VimL on the

gvim runs with opened console

2013-03-26 Thread CanisMajorWuff
Hello, I built a gvim without OLE or NETBEANS support. When I ran it the console opens and then only gvim window. And this console window continue to be till gvim dies. What can the reason be? -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Question Ctrl+Shift+V

2013-03-26 Thread Hendrikus Godvliet
David Thank this what i missed. And from now on I will rock, set paste to the Vim. Hendrikus 2013/3/26 David Fishburn dfishburn@gmail.com set paste -- -- 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: Question Ctrl+Shift+V

2013-03-26 Thread Marcin Szamotulski
On 20:46 Tue 26 Mar , Hendrikus Godvliet wrote: David Thank this what i missed. And from now on I will rock, set paste to the Vim. Hendrikus 2013/3/26 David Fishburn dfishburn@gmail.com set paste -- -- You received this message from the vim_use maillist. Do not

Profiling vim

2013-03-26 Thread Marco
Hi, since recently vim is maxing out my CPU a while after a file is loaded. It's definitely caused by my .vimrc (maybe a plugin?) Plain vim doesn't exhibit the behaviour. Is there a simple method to tell what it's doing while hitting the CPU? I tried using the build-in profiling commands, but it

Re: Profiling vim

2013-03-26 Thread Marc Weber
vim -V20/tmp/log will write a logfile. use tail -f (on *nix like os) to follow the file. If it goes crazy you have chance to understand what is going on. Also try to find out whether it happen in insert or normal mode or command mode (eg after typing :) Yes - bisecting is a good way - and

Re: Profiling vim

2013-03-26 Thread Marco
On 2013–03–26 Marc Weber wrote: vim -V20/tmp/log will write a logfile. I blindly typed this command. You should have warned me that it produces hundreds of MiB within seconds ;) use tail -f (on *nix like os) to follow the file. If it goes crazy you have chance to understand what is going on.

Re: Profiling vim

2013-03-26 Thread Marc Weber
Also when vim eats 100% CPU and blocks? If the plugin still allows you to type :qa!, then yes. Often you can abort the current operation by pressing ctrl-c Marc Weber -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Profiling vim

2013-03-26 Thread Marc Weber
Excerpts from Marco's message of Wed Mar 27 00:11:01 +0100 2013: On 2013–03–26 Marc Weber wrote: vim -V20/tmp/log will write a logfile. I blindly typed this command. Thanks for trusting me :) You should never do that. The culprit was the easytags plugin, which is removed from my system now

Re: Profiling vim

2013-03-26 Thread Marc Weber
https://github.com/xolox/vim-easytags/issues/27 Anyway, you should leave a comment that this is happening to you too, to make it more likely that the author takes action. Just uninstalling the plugin is not helping anybody. Marc Weber -- -- You received this message from the vim_use maillist.

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread neolus
I considered using fontforge that way, only issue is I'm not sure if fonts have particular resrtictions to cell size for each character. For my purposes I'm doing more of a ( replace character with wide character e.g. from: ? to: ) kinda thing.. -- View this message in context:

Re: Profiling vim

2013-03-26 Thread Marco
On 2013–03–27 Marc Weber wrote: https://github.com/xolox/vim-easytags/issues/27 Anyway, you should leave a comment that this is happening to you too, to make it more likely that the author takes action. Usually I submit a bug report when there is none. But generally I refrain from submitting

Re: Profiling vim

2013-03-26 Thread Marc Weber
Excerpts from Marco's message of Wed Mar 27 01:20:22 +0100 2013: Usually I submit a bug report when there is none. But generally I refrain from submitting ”me, too” comments. 1) There is no better way to tell devs that their plugins are being used. 2) The bug report says sometimes it just

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread neolus
whenever I tried with two characters vim complained it was an invalid argument. conceallevel 2 is on but it still won't work with more than one character. I tried hi Special gui=bold guibg=#00 guifg=#022FEE set cole=2 syn match Container B conceal cchar=AE syn match

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread neolus
Also even if fontforge could let me draw a wide glyph doesn't vim only allow monospace fonts anyway? -- View this message in context: http://vim.1045645.n5.nabble.com/replace-represenation-of-certain-characters-with-a-string-of-characters-tp5714620p5714650.html Sent from the Vim - General

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread John Little
On Wednesday, March 27, 2013 2:47:14 PM UTC+13, neolus wrote: Also even if fontforge could let me draw a wide glyph doesn't vim only allow monospace fonts anyway? In principle, CJK fonts have double width characters in them. See, f.ex., :help guifontwide. However, I have just imparted the

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread neolus
if that's all it's not worth looking into for me, as I in fact want more than just two character width . -- View this message in context: http://vim.1045645.n5.nabble.com/replace-represenation-of-certain-characters-with-a-string-of-characters-tp5714620p5714652.html Sent from the Vim - General

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread neolus
I'm sorry to be misleading, from the start I wanted to be able to do this with more than 2 characters ( at least 4 in particular) it seems like I gave the impression that I only needed two. -- View this message in context:

Re: replace represenation of certain characters with a string of characters?

2013-03-26 Thread John Little
I wanted to be able to do thiswith more than 2 characters ( at least 4 in particular) Another thought, you could use autocommands on reading and writing the file to change what's seen, like the way vim handles gzipped files. Regards, John Little -- -- You received this message from the

mouse cursor and copy/paste

2013-03-26 Thread SanDiegoGary
Hi, I'm using VIM 7.3 on Windows 7 (32-bit). I want two things: 1) Prevent active window selection to change VIM cursor location (don't want the left mouse click to select the VIM window to affect the existing VIM cursor) 2) Ability to copy/paste to/from windows keyboard (preferrable with