Re: kubuntu 13.04 green has changed

2013-05-19 Thread pansz
So you should mail to ubuntu group instead? (rgb.txt does not belong to kubuntu so you should ask ubuntu devs for that, or fire a bug on launchpad.net) On Sun, May 19, 2013 at 7:30 PM, John Little john.b.lit...@gmail.comwrote: Hi all I recently upgraded my Kubuntu to 13.04, Raring Ringtail,

Re: how to make vim indent \subsection in TeX files?

2013-04-09 Thread pansz
Install TeX plugins which support tex file indent. You can search in www.vim.org and find some TeX plugins/extensions. Or if all you want is just the indent, try copy indent/tex.vim from texsuite. On Wed, Apr 10, 2013 at 9:17 AM, leo barbosa.leona...@gmail.com wrote: Hello all, How i

Re: Vim on MSwin 8

2012-11-05 Thread pansz
FYI: android has hundreds of terminal emulator apps and android command line is in most case similiar to that of gnu/linux. On Tue, Nov 6, 2012 at 1:10 AM, john Culleton j...@wexfordpress.com wrote: Win 8 looks like Android, which has no command line access that I know of. -- You received

Re: Compiling Vim and gVim on Debian

2012-03-20 Thread pansz
On Wed, Mar 21, 2012 at 4:52 AM, John Degen johnde...@gmail.com wrote: Am I still missing packages? The Debian package (Vim 7.2.445) installs without problems and offers a huge version. sudo apt-get build-dep vim this is all you need to compile vim huge version. -- You received this message

Re: problems building vim with cygwin (Make_cyg.mak)

2012-03-01 Thread pansz
On Fri, Mar 2, 2012 at 1:39 AM, Chris Sutcliffe ir0nh...@gmail.com wrote: Dumb question, are you trying to build a native Windows vim or are you trying to create a Cygwin vim? Make_cyg.mak is specially designed to build native windows gvim.exe, so he is obviously trying to build native windows

Re: problems building vim with cygwin (Make_cyg.mak)

2012-02-29 Thread pansz
I've just downloaded the newest version of cygwin (1.7.11) and the hg version of vim (7.3.462) and using windows 7. change src/Make_cyg.mak and src/GvimExt/Make_cyg.mak , gcc ==gcc-3, g++ == g++-3 make -f Make_cyg.mak works without problem. :version shows Compilation: gcc-3 -O3

Re: Cygwin .vimrc file location and how to make changes?

2012-02-13 Thread pansz
On Sat, Feb 11, 2012 at 4:00 AM, tsai tsai...@gmail.com wrote: Hi everyone, After installing Cygwin, where is the default location of the .vimrc file so I can augment it? Kind of confusing. I know on my Linux box, it is hidden in the home directory and a simple ls -la will list it. That isn't

Re: Fuzzy Finder vs CtrlP

2012-02-05 Thread pansz
On Sun, Feb 5, 2012 at 8:34 AM, Chris Lott ch...@chrislott.org wrote: Has anyone used Fuzzy Finder and CTRLP enough to have thoughts on which one might be preferable? They seem quite similar, but I might be missing something that will come back to haunt me later :) In Oct. 2011, I've tried

Re: Fuzzy Finder vs CtrlP

2012-02-05 Thread pansz
Ctrl-P works well only when project root found. i.e. when you are editing from .hg, .svn, .git repositories. When Ctrl-P starts in a non-SCM-controled directory, it starts very slow (because it tries to read all files). For example, try cd /etc and then use vim ctrlp... If you do never start vim

Re: Redhat Linux has crippled Vim

2012-01-29 Thread pansz
On Fri, Jan 27, 2012 at 12:31 AM, howard Schwartz howard...@gmail.com wrote: This may not be the place to ask about this but: I recently had the misery of trying to work with vim on a Redhat Linux distribution at a university. By default, apparently (version 7.3) Are you talking about 12+

Re: can I disable input method in vim normal mode

2011-11-21 Thread pansz
2011/11/22 Tony Mechelynck antoine.mechely...@gmail.com: - for X11 (compiled with +xim)        :help mbyte-XIM - for all versions (compiled with either of the above)        :help 'imactivatekey'        :help 'imcmdline'        :help 'imdisable'        :help 'iminsert'        :help

Re: can I disable input method in vim normal mode

2011-11-21 Thread pansz
2011/11/22 alick oahz alick9...@gmail.com: I guess the best way is to use vimim plugin. You can find it here: This still does not solve the problem when you use console vim. because the XIM is always there. and now you've got 2 different IM. vimim can be more useful if you can completely

Re: Ubuntu packages of latest Vim? (to fix bug)

2011-11-06 Thread pansz
On Fri, Nov 4, 2011 at 7:52 PM, Szabolcs szhor...@gmail.com wrote: The one that comes with Oneiric has bugs that make gVim practically unusable if one has a Chinese input method installed, and I'd rather not have to mess with installing a self-compiled version. That is very tidy, not mess.

Re: how to make 'h,j,k,l' faster ?

2011-10-28 Thread pansz
2011/10/28 gaoqiang gaoqiangs...@gmail.com: ubuntu 11.04 vim73 yeah,it is fast enouth for almost all the users.   it is faster in a console if it is fast enough in system settings, see if it helps when disable all system plugin. ( set noloadplugins ) in your vimrc -- You received this

Re: Please fix: make Windows Vim use same files as unix. No reason not to and it's confusing in mixed envirionments.

2011-10-25 Thread pansz
On Wed, Oct 26, 2011 at 9:23 AM, Linda W v...@tlinx.org wrote: But I asked how it would be incompat if it looked for .vim, if found, then don't look for vimfiles.? You always have multiple runtimepath, at least you have ~/.vim and /usr/share/vim/vim73 as the runtimepath. If you ignore any

Re: vim website is often inaccessible caused by google

2011-10-12 Thread pansz
Use https for google is better in China (for me). This problem may simply be solved by change http:// to https:// for google in vim web site. On Wed, Oct 12, 2011 at 9:18 AM, H Xu xusu...@gmail.com wrote: Hello, I noticed that vim website now uses something from google. However, google is

Re: json indentation

2011-09-06 Thread pansz
On Wed, Sep 7, 2011 at 9:48 AM, Peng Yu pengyu...@gmail.com wrote: On Tue, Sep 6, 2011 at 7:19 AM, Taylor Hedberg tmhedb...@gmail.com wrote: You may have already tried this, but since JSON is just a subset of JavaScript syntax, have you tried setting 'filetype' to javascript? That's the

Re: json indentation

2011-09-05 Thread pansz
http://www.vim.org/scripts/script.php?script_id=1945 What about this one? On Tue, Sep 6, 2011 at 7:23 AM, Peng Yu pengyu...@gmail.com wrote: Hi, vim doesn't indent json file correctly. I'm not able to find a json vim indent file. Does anybody know if there is one? Thanks, Peng -- You

Re: json indentation

2011-09-05 Thread pansz
On Tue, Sep 6, 2011 at 7:23 AM, Peng Yu pengyu...@gmail.com wrote: Hi, vim doesn't indent json file correctly. I'm not able to find a json vim indent file. Does anybody know if there is one? Sorry I misunderstood it, you want indent for json. You may try using indent for lua. I personally

Re: how to use a plugin auto printf()

2011-07-26 Thread pansz
See if this works for you. http://www.vim.org/scripts/script.php?script_id=120 -- 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

Is there any __FILE__, __FUNCTION__, __LINE__ equivalent for vim script?

2011-07-07 Thread pansz
For debug reason we often need to print the current script name, function name and line number. suppose vim script is a program, is it possible to get the current script name and the current execution line in vim script? is there any functions of macros to get them? -- You received this message

vim function not first-class variable? how to create an alias for vim function ?

2011-07-05 Thread pansz
I want to do some coding like this: :func! Foobar(...) :endf :let s:myfuncname = Foobar :call s:myfuncname(1,2,3,4,5) if function name is first-class variable this should work, however it does not work. then is there any method to define an alias for a function? -- You received this message

Re: Way of opening local gVim edit remote file via putty?

2011-07-05 Thread pansz
On Sun, Jul 3, 2011 at 4:31 PM, Laph laph...@gmail.com wrote: Is it possible a way in putty terminal opening my local gvim in windows desktop to edit the remote file without manually switching window and retyping `:e scp://...' again and again? Thanks in advance! Theoretically, it is

Re: chinese input: How to disable it?

2011-06-22 Thread pansz
On Wed, Jun 22, 2011 at 4:58 PM, Bernhard wern...@gmail.com wrote: If I enter e.g. 'e', delete it, then enter 't' I get a (presumably) chinese character. I've tried setting imdisable, but still get the same behaviour. How can I disable this? just FYI: digraphs and trigraphs are *not* Chinese

Re: make terminal VIM my default text editor Ubuntu 11.04

2011-05-24 Thread pansz
On Wed, May 25, 2011 at 1:42 AM, Juan incaurgarat juan...@gmail.com wrote: Thank you Ben, Gary and pansz that soulution did work, i had to change de $ for % thanks a lot for your help, this was driving me crazy. now, Ben, i dont like GVIM cuz it doesnt look like the terminal VIM can i

Re: make terminal VIM my default text editor Ubuntu 11.04

2011-05-23 Thread pansz
On Tue, May 24, 2011 at 6:20 AM, Juan incaurgarat juan...@gmail.com wrote: Exec=gnome-terminal -e vim \$1\ .desktop file is specified by freedesktop.org. http://www.freedesktop.org/wiki/Specifications/desktop-entry-spec you can check the specifications and know that you may want to use %F

vim crashes without -D_FORTIFY_SOURCE=1 in Ubuntu 11.04

2011-05-10 Thread pansz
Today I upgrade my computer to ubuntu 11.04. then I started to compile vim. when compiling, it shows many warnings for strcpy() in eval.c. gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/

Re: vim crashes without -D_FORTIFY_SOURCE=1 in Ubuntu 11.04

2011-05-10 Thread pansz
2011/5/10 Dominique Pellé dominique.pe...@gmail.com: Ubuntu for some reasons changed gcc to compile with -D_FORTIFY_SOURCE=2 by default  since Ubuntu-8.10 I didn't realise that, I think the default should be _FORTIFY_SOURCE=0, and that's why I'm surprised that vim does not work with the

Re: Unable to enter functions keys in .vimrc or any other file

2011-05-03 Thread pansz
On Wed, May 4, 2011 at 1:59 AM, Mahendra Ladhe lml...@gmail.com wrote: Thanks JR. The mapping is working. On my earlier Windows XP PC with vim 7.2, the control keys like F1 would be displayed in blue color, different than the rest of the text. That's why I found it odd when vim 7.3 was

Re: How do define a default highlight for none-linked group?

2011-05-01 Thread pansz
On Saturday, April 30, 2011 3:01:53 PM UTC+8, Ben Schmidt wrote: work, at least for CursorIM, though not for other standard highlight groups which are defined with defaults. The result, though, is yes, that your approach using default will Ben. Glad to see it will work and I will try it.

How do define a default highlight for none-linked group?

2011-04-28 Thread pansz
hi vimmers, for linked group we can use :hi default link to set a default value, for none-linked group we can't. Suppose my script want to set the default value highlight group CursorIM. i.e. if user color scheme has set the hi CursorIM, let it be, if user color scheme has not set the

Re: standard ubuntu lucid vim package is not +multibyte

2011-04-26 Thread pansz
On Tue, Apr 26, 2011 at 8:19 PM, Eric Smith e...@fruitcom.com wrote: Thanks Jeff for the prod. I did a do_release_upgrade Took me a straight to natty. Now everything works out of the box re rendering. Funny, I always hope that upgrades do this and they never seem to, till now ...

Re: any 'tagrelative' option for cscope?

2011-04-20 Thread pansz
On Wed, Apr 20, 2011 at 1:53 PM, Christian Brabandt cbli...@256bit.org wrote: Hi pansz! On Di, 19 Apr 2011, pansz wrote: By default, vim opens all file of ctags with directory relative to the tags file. This behaviour can be controlled by 'tagrelative' option. But for cscope, vim does

Re: standard ubuntu lucid vim package is not +multibyte

2011-04-20 Thread pansz
On Wed, Apr 20, 2011 at 7:04 PM, Eric Smith e...@fruitcom.com wrote: Why is this and how do I without having to compile, get back the mutibyte vim that I know and love in 7.3? -- - Eric Smith The standard vim packged with Ubuntu Lucid DO have +multibyte. Just make sure you do really have

How can I set the current Cursor to IME mode?

2011-04-19 Thread pansz
According to :h CursorIM Cursor will use CursorIM color when IME/XIM active, and back to Cursor color when IME disabled. When we have an internal vim script acting as IME/XIM, we need to set the Cursor to IME mode with vim script, is it possible? -- You received this message from the vim_use

any 'tagrelative' option for cscope?

2011-04-19 Thread pansz
By default, vim opens all file of ctags with directory relative to the tags file. This behaviour can be controlled by 'tagrelative' option. But for cscope, vim does not open file relative to directory where cscope.out lies, instead, it uses CWD. Build cscope.out with absolute path can solve

Re: how to justify i'm in VIM or GVIM?

2011-03-29 Thread pansz
On Tue, Mar 29, 2011 at 10:22 AM, G G greer...@ymail.com wrote: hi, all when i write a vim script, how can i decide whether i'm in VIM or GVIM? i mean, i want different colorsceme setting for each. IMO the easist way may be just : put something into your ~/.gvimrc which will only be executed

Re: OT: Vim Humans are...

2011-02-17 Thread pansz
On Fri, Feb 18, 2011 at 2:43 AM, meino.cra...@gmx.de wrote: Hi, first of all: My interest and/or question, which let me post here, is neither intended as the initial spark for a flame war nor as anything _against_ someone or something. May be it is a kind of exploring the psychology of the

Re: screen flashes despite set vb t_vb= in .vimrc

2011-02-17 Thread pansz
On Fri, Feb 18, 2011 at 1:25 AM, Ori Livneh ori.liv...@gmail.com wrote: Thanks, that worked! Is there a help file that explains what settings are overridden by .gvimrc? Aside from gui-specific options, which clearly belong in .gvimrc, how would I know when to reduplicate settings from .vimrc?

Re: highlight with transparent background

2011-02-15 Thread pansz
On Tue, Feb 15, 2011 at 8:00 PM, Jeroen Budts jer...@lightyear.be wrote: Hi, I'm trying to add some color to my statusline. I'm doing this by defining the User1 highlight and adding %1* to my statusline. This works, but I can't figure out how i can specify a transparent background for the

Re: screen flashes despite set vb t_vb= in .vimrc

2011-02-15 Thread pansz
On Wed, Feb 16, 2011 at 3:29 AM, Ori Livneh ori.liv...@gmail.com wrote: Hi, I have this line in my .vimrc (which I know is being executed, since other settings from it are applied) set vb t_vb= For some reason, though, I am still getting screen flashes. I must be overriding this setting

Re: Not VIM but vim_use related

2011-01-17 Thread pansz
On Tue, Jan 18, 2011 at 10:49 AM, Rostyslaw Lewyckyj urj...@bellsouth.net wrote: Oh. I am using SeaMonkey as my web browser email client, and YAHOO refuses to support SM (even though it is a  GEcko based almost FireFox clone  from Mozilla). So I am limited to YAHOO classic as far as mail

Re: C++0x lambda syntax

2010-11-23 Thread pansz
On Nov 24, 4:12 am, Bram Moolenaar b...@moolenaar.net wrote: Andrew Venikov wrote: Is there a quick way to fix that? Well, perhaps that's not a quick way, but it will make programmers who try to decipher C++ programs a lot more sane. A quick way may be to contact the author of syntax/c.vim

Re: Help about colorscheme.

2010-11-21 Thread pansz
please try the following: sudo apt-get build-dep vim then re-compile your vim 7.3 and install it. problem will solve. On Nov 22, 12:37 am, shuda Li lishuda1...@gmail.com wrote:  and installed Vim 7.3 by compiling the source. Tho OS I use is Ubuntu 10.04. -- You received this message from

Howto use the built-in tohtml.vim plugin when :set noloadplugins

2010-10-21 Thread pansz
I usually use :set noloadplugins in my .vimrc, and load plugins only when I need. If I want to use built-in netrwPlugin, I use :runtime plugin/ netrwPlugin.vim If I want to use built-in gzip, I use :runtime plugin/gzip.vim But when I want to use built-in tohtml, :runtime plugin/tohtml.vim does

Re: how to prevent loading python.vim

2010-08-12 Thread pansz
On Aug 13, 5:13 am, Charles Campbell charles.e.campb...@nasa.gov wrote: Since you want syn on, I suppose a normal vim would do.  Why not?   Smaller footprint, quicker loading, etc. debian packages 4 kinds of vim: 1. vim-tiny: This is Tiny version of vim, pretty useless IMO. 2. vim: This is

Re: how to prevent loading python.vim

2010-08-12 Thread pansz
On Aug 13, 10:19 am, bill lam cbill@gmail.com wrote: Чтв, 12 Авг 2010, pansz писал(а): 1. vim-tiny: This is Tiny version of vim, pretty useless IMO. This is an insult to the original vi. ;-) More seriously, after using vim.tiny for a week, I found it fit for most jobs that I needed

Re: Windows 7 64bit - use 32bit or 64bit Vim?

2010-04-29 Thread pansz
David Fishburn 写道: I regularily build my on Vim using VS 2008. I have just been upgraded to Windows 7 64bit and am beginning to set it up. Seems you always have to choose if you want (or can use) the 32bit version of software or find a 64bit version. Now, since I build my own Vim, I guess I

Re: Doing Unix on Windows

2010-04-22 Thread pansz
meino.cra...@gmx.de 写道: Hi, at home I am using Vim on Linux. at work I am using Vim on Windows. I am a Unixxer... At work I am not allowed all that nice gimmicks like grep, find, sed etc. which were ported to windows also due to security reasons. I would like to get back some of

Re: in Gnome Terminal in Ubuntu strange behaviour

2010-04-20 Thread pansz
anatoly techtonik 写道: That's why I've crossposted here. I thought Vim users will be more interested in making it Ubuntu-compatible. This requires testing how cursor keys behave in Vim in clean Ubuntu 10.04 beta 2 install if Vim is launched in Gnome Terminal. I am unable to test this at the

Re: in Gnome Terminal in Ubuntu strange behaviour

2010-04-20 Thread pansz
anatoly techtonik 写道: I believe that :nocompatible by default should help. Use EXINIT may does what you want, this can be done by package maintainer. -- 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: in Gnome Terminal in Ubuntu strange behaviour

2010-04-20 Thread pansz
MK 写道: I use vim in gnome-terminal on ubuntu 9.10 and have no problems (altho my current vim was built from source and is not the distro package). Perhaps you have the terminal set strangely? I can confirm the problem exists when you start vim with vim -u NONE, i.e. without .vimrc. --

Re: filereadable() while using cygwin shell in gVim

2010-04-12 Thread pansz
esquifit 写道: Regarding the suggestion of using cygwin vim in a terminal, I'd love being able to do it, but unfortunately the (binary) cygwin distribution of vim lacks a number of features (present on gVim) which I absolutely need, and I don't have currently the knowledge nor the time to attempt

Re: netrw can't expand '~' correctly when do gx in windows

2010-03-07 Thread pansz
Wu, Yue 写道: As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't support the '~' in path name, so I guess vim on windows doesn't expand '~'

Re: How to temporarily change Cursor color and change back

2010-03-04 Thread pansz
Christian Brabandt 写道: Hi pansz! On Do, 04 Mär 2010, pansz wrote: Script can use highlight command to change color, however, if a script meant to change one color temporarily, it has no knowledge about the previous setting. 1. the :hi Cursor is defined by my color scheme. 2. now in some

How to temporarily change Cursor color and change back

2010-03-03 Thread pansz
In gui we can define color with :highlight command. Script can use highlight command to change color, however, if a script meant to change one color temporarily, it has no knowledge about the previous setting. 1. the :hi Cursor is defined by my color scheme. 2. now in some case a script

Re: Calling :set ff=unix or ff=dos based on save location

2010-02-23 Thread pansz
corykendall 写道: Howdy ladies and gentlemen, I use VIM for all editing... half of which is saved on a Windows machine, and the other half of which is saved through Samba on a Unix machine. Gvim itself is running on windows. I'm looking for something I can add to my vimrc that automatically

Re: How to load project wise tag files

2010-02-23 Thread pansz
Karthik Kashyap Thatipamula 写道: Hi All, I have multiple projects in my work directory and for each project i have a tags file. In my vimrc i have an option to load my tags like :set tags=./tags,tags,~/work/prj1/src/tags Now i want to set this value dynamically depending on the project in

Re: How to change font on the fly?

2010-02-21 Thread pansz
Dotan Cohen 写道: If you're using konsole then your current editor is konsole, not vim. So you should tell konsole how to change the font. When you run vim inside konsole, it is possible to change font size of konsole by some konsole-specific escape-codes which can be sent inside vim script, you

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-21 Thread pansz
Teemu Likonen 写道: * 2010-01-24 21:13 (-0800), Peng Yu wrote: I know Lisp is very powerful. Is the language in vim as powerful? No, it's not. It seems that there are still unique features in Lisp which are not supported in any other language. In this sense Lisp is the most powerful language

Re: Open a new file if the file doesn't exist when using ctrl+W_ctrl+F?

2010-02-21 Thread pansz
Peng Yu 写道: If I type ctrl+W_ctrl+F over a string and there is not a file whose name is the string, vim will show E447: Can't file file 'the string' in path. However, sometimes I do want to open a new file with the string with some short cut. Is there a way to do so? It is better to write a

Re: How to change font on the fly?

2010-02-20 Thread pansz
Dotan Cohen 写道: Depending on what I am editing, I sometimes prefer a fixed-width font and other times a proportional font. My previous editor, Kate (KDE Advanced Text Editor) lets the user change the font on the fly. Can VIM do this, or is playing with the config file (thus requiring a restart)

Re: am i using

2010-02-03 Thread pansz
Maybe on certain Linux distributions which keep their Vim a year or more out of date this idea makes sense, but I still think even serious users can work for years without ever touching the C code. To do compile yourself is one thing, to touch the C code is quite another. Most Linux

Re: how to use string variable for cs add command

2010-02-03 Thread pansz
and since :exe[cute] accepts any number of arguments (and concatenates them space-separated), :exe 'cs add' CscopeDB CodeRoot would work just as well. Nice hint! -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: [CURIOUSITY] am i using

2010-01-31 Thread pansz
Raúl Núñez de Arenas Coronado 写道: Saluton pansz :) pansz p...@routon.com skribis: open-source software != free-as-in-freedom software. Vim is open-source, but it is not free-as-in-freedom software. I don't want to start a flamewar on this issue There won't be a flamewar on this issue: I'm

Re: Python indention

2010-01-28 Thread pansz
Torsten Andre 写道: Hi everyone, I am having some trouble with my indention in python. I installed the indention plugin for Python under [1] and according to the documentation, I think comments starting with a # should not moved to the very left of the page, but the current line indention should

Re: [CURIOUSITY] am i using

2010-01-28 Thread pansz
chika.tambun 写道: closed source text editor when i used to use vim?! this is happen when i give my opinion on a gnu/linux distro for requesting the full-vim package rather than mini one on the next release the distro, then they talk about freedom rather than the power of functionality. POSIX

Re: Issues with using Vim as Pager

2010-01-28 Thread pansz
Ajay Jain 写道: Hi, I am using vim to read man pages. My set up is that I use an ssh client (putty) over Windows to login to a Linux server. I use 1) export PAGER=/bin/sh -c \unset PAGER;col -b -x | vim -R -c 'set ft=man nomod nolist' -c 'map q :qCR' -c 'map SPACE C-D' -c 'map b C-U' -c 'nmap K

How to get vim patch version number in vim script?

2010-01-26 Thread pansz
Hi vimmers: It seems easy to know we're running in vim 7.2, but is it possible for a vim script to know what exactly the patch version is? like 7.2.344. Also, it is possible to know what vim is compiled with? like Normal version, Big version, Tiny version... Thanks. -- You received this

Re: How powerful is language build in vim compare with the language build in emacs?

2010-01-26 Thread pansz
Peng Yu 写道: I have learned neither the language for vim scripting nor the language for emacs scripting (which is lisp, right?). (I know mit-scheme, but I have never used emacs) May I ask the following questions? I know Lisp is very powerful. Is the language in vim as powerful? For what type of

Re: How to get vim patch version number in vim script?

2010-01-26 Thread pansz
John Little 写道: if !has(visual) echo Tiny elseif !has(eval) echo Small elseif !has(arabic) echo Normal elseif !has(profile) echo Big else echo Huge endif To me, the above clearly shows the clunkiness of the approach, I only did it

Re: [announcement] Windows gVim user can do wget without a flashing DOS box

2010-01-24 Thread pansz
bill lam 写道: A Japanese gentleman had written an dll as a replacement of system(). You may find it inside vim wikia. /* * Usage: * :echo libcall(mysystem, mysystem, cmd.exe\ndir\n) * :echo libcall(mysystem, mysystem, wget http://foo/bar.html;) * Reference: *

vim reproducible crash, with backtrace report

2010-01-21 Thread pansz
The related things: About my system: Linux pansz-pc 2.6.24-26-generic #1 SMP Tue Dec 1 18:37:31 UTC 2009 i686 GNU/Linux Ubuntu 8.04.3 LTS About vim: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 21 2010 14:23:52) Included patches: 1-327 Compiled by p...@pansz-pc Big version with GTK2 GUI

Re: Cannot use CTRL-Q in vim which in a PuTTY terminal.

2010-01-21 Thread pansz
Sylvia 写道: Hello, I am using PuTTY to access a Linux server. When I start vim on PuTTY terminal and try to use CTRL-Q to select a block, nothing happens. The block-select shortcut is Ctrl-V, not Ctrl-Q. Ctrl-V should work unless you had mapped it to something else. If that is the case,

How to effectively call a function in another script?

2010-01-21 Thread pansz
suppose we have a script: script_a.vim: start of script a let s:str1 = test1 let s:str2 = test2 function s:bar() return s:str2 function Foo() return s:bar() . s:str1 end of script a With this script as plugin, I cannot call from command with :echo Foo() It will report s:str1 and

Re: how to get vim to ignore file permissions (because it is confused)

2010-01-13 Thread pansz
Linda W 写道: I'm trying to edit a file on a remote server where my user maps to the owner of the file and it is writable, but vim seems to think the the file is 'read-only' and keeps giving me messages which is really throwing off my editing of the file as every time I write it out with 'w!', it

Re: Remote Mouse Support

2010-01-11 Thread pansz
Paul 写道: Hi, I'm wondering if this is even possible: I want to ssh to a remote server, open vim, split a file, and drag the split separator around with the mouse. More importantly, I want to use the * register, so I can select text with the keyboard and put it into my local X buffer (to

Re: cygwin dll for gvim win32's libcall()?

2010-01-07 Thread pansz
Sergey Khorev 写道: However, when I load the dll from within win32 gvim.exe, the gvim hangs up To study the problem, I had made the dll as simple as hello world. So the I hope you are not doing hello world in DllMain. I suspect the problem is not in Vim but rather with Cygwin. So I suggest to

cygwin dll for gvim win32's libcall()?

2010-01-06 Thread pansz
He vimmers: Is it possible for win32 gvim.exe to do libcall() for dll created by cygwin? I've created a simple dll make with cmake 2.6.4 + cygwin 1.7. The dll works great inside cygwin, i.e. I use cygwin console vim doing libcall() of the dll works great. However, when I load the dll from

eval.txt possible typo?

2010-01-04 Thread pansz
When reading eval.txt line 3722 and 3731, (:h libcallnr) I found the following: {only in Win32 on some Unix versions, when the +libcall| feature is present} I don't quite understand what it mean, does this mean only in Win32 or some Unix versions?, i.e. the on should be or? -- You received

Re: '*' search without cursor move

2009-12-21 Thread pansz
Steven Woody 写道: Hi, When I use '*' command to search and highlight current word in a file, the cursor also moves to the next match. But at many cases, I hope the cursor can be stay where it is and don't move at all. Can I? Thanks. press * then press # will send you back. so if you

Re: Vim script support of socket access or IPC (inter-process communication) ?

2009-12-17 Thread pansz
Sergey Khorev 写道: Vim is single-threaded application. If you want to implement proper IPC, for instance, Vim waiting on some event, you will need to rewrite much of its core I'm afraid. What if I can expect my communication to respond immediately? Anyway, we can define a timeout, for

Re: Vim script support of socket access or IPC (inter-process communication) ?

2009-12-15 Thread pansz
just 写道: I found nothing related to socket access or IPC feature in vim script so I cannot do that from within vim script. Seek for python or perl support is not an option here, since we should not add unnecessary dependency to end-users. Adding IPC support seems no problem for vim design

Re: How to compile with guifont ?

2009-12-14 Thread pansz
Timothy Madden 写道: Hello I compiled vim on a debian server and installed in in my home folder (~/usr/local), but the resulting executable can see no fonts when I press Tab on :set guifont=Tab and the default font is looking too condensed. The Edit menu has no GUI Font entry.

Vim script support of socket access or IPC (inter-process communication) ?

2009-12-14 Thread pansz
Hi, For some reason I need to access some local service within vim, this can be Unix socket (d-bus, x message, etc.) or TCP socket (http, ftp, etc.). A typical example is an IM engine, which can provide service to both XIM and vimim. The engine may need a relatively long start-up time to build

Re: Compiling vim on Ubuntu 64 bit

2009-12-13 Thread pansz
Tony Mechelynck 写道: Avoiding handmade changes to the Makefile also ensures that _patches_ to the Makefile will apply cleanly. If you use svn then nothing will broken. at least patches to Makefile never have problem for me. patches to the Makefile will merge with my own handmade changes.

Re: After I change the vimrc with vim, how to make it useful right now?

2009-12-07 Thread pansz
Tony Mechelynck 写道: On 04/12/09 07:22, zhangkai wrote: Hi, After I change the vimrc with vim, how to make it useful right now? now I have to close vim, and reopen it again. thanks best regards, That's the way to go; anything else requires special precautions in how you write the vimrc,

Re: How to accessing s: variable and s: functions in another script?

2009-12-07 Thread pansz
Tony Mechelynck 写道: Consider: if all you want is to split an already too long script into two, how much s: do you need to change? isn't there some similiar feature like include foobar.vim? i.e. source some script completely inside my own script-local namespace? No, there isn't. :source

Re: replace string with deleted line

2009-12-06 Thread pansz
Jason 写道: I have a file that contains a bunch of lines with only the word foo on it. I want go through the entire file and remove the lines with the words foo. Not just remove the word, but the entire line. How is this done in vim? I tried :%s/foo//g but it left the line you can

Re: How to accessing s: variable and s: functions in another script?

2009-11-19 Thread pansz
Kana Natsuno 写道: autoload/framework.vim: function! framework#get_parameter_x() return s:parameter_x endfunction plugin/engine_x.vim: call framework#set_parameter_x('...') call framework#_call_internal_stuff() Did you consider about this way? If so, why do you reject it?

How to accessing s: variable and s: functions in another script?

2009-11-18 Thread pansz
Hi everyone: When I want to design a plugin for a plugin, I may use such a feature. i.e. a plugin which is a generic framework for a kind of engine plugins, which could be implemented by another script: plugin/framework.vim engine_a.vim engine_b.vim engine_c.vim there may be different

Re: vim72 for redhat enterprise 4

2009-11-11 Thread pansz
thgr 写道: Hi vim users, I want to use all the great features of vim version 7 for redhat enterprise linux 4 (comes with vim 6.3) - so i downloaded the sources and compiled. But now I am missing some great features - can anybody tell me how they can be invoked (or tell me where I can

Re: How to map Ctrl+/ ?

2009-11-11 Thread pansz
Tony Mechelynck 写道: Experiment shows that press and hold Ctrl press and release / _in numeric keypad_ release Ctrl will be seen by gvim (at least, gvim with GTK2 GUI running in X11 with kdm winmanager) as C-/ i.e. Ctrl+slash (whatever that be). Whether Console

Re: colors and vimrc in sudo and su

2009-11-10 Thread pansz
Matt Wozniski 写道: On Sun, Nov 8, 2009 at 8:17 PM, pansz wrote: James Michael Fultz 写道: So why do you think sudo -e or sudo edit is better than sudo vi ? The latter does not preserve your personal Vim environment. oops, got it. I setup my sudo to always preserve my personal environment

Re: colors and vimrc in sudo and su

2009-11-08 Thread pansz
James Michael Fultz 写道: So why do you think sudo -e or sudo edit is better than sudo vi ? The latter does not preserve your personal Vim environment. oops, got it. I setup my sudo to always preserve my personal environment for all commands, so I do never need the sudo -e.

Re: colors and vimrc in sudo and su

2009-11-01 Thread pansz
oversky 写道: When I use $sudo vim file, vim uses ~/.vimrc, but not the color template in ~/.vim/colors. When I change to super user by su, vim uses some initial vimrc and color. How do I apply the user vimrc, color template and plugin for the above two situations? I just start using Ubuntu

Re: separate gvim and vim in a single .vimrc [no .gvimrc]

2009-11-01 Thread pansz
Tony Mechelynck 写道: set errorbells visualbell if !has('gui_running') console Vim setting let t_vb = \x07 . t_vb also ring the bell endif if has('autocmd') has('gui') must set it again for the GUI au GUIEnter

Re: Setting fenc or enc from an autocommand

2009-10-22 Thread pansz
bill lam 写道: thread is all about. The suggested utf8-guess pseudo encoding would work similar to the bomb pseudo encoding but wouldn't simple look at the first character but scan the whole buffer. I remembered there is a vim script that detect various chinese file encodings by scanning

Re: Open a file on the current buffer

2009-10-20 Thread pansz
winterTTr 写道: PS: simply speaking , I would like to open ( not just read ) a file on the current buffer , without creating a new buffer . I'm wondering what is the difference? why do you want to open without creating a new buffer? you can simply: 1. remember the current buffer in some

Re: Setting fenc or enc from an autocommand

2009-10-19 Thread pansz
Tony Mechelynck 写道: - If you want one particular file to be recognized as UTF-8 not only by Vim but also by other programs (let's say by other Windows editors such as WordPad; or by browsers if the files are in HTML, CSS or even plaintext) it helps if you use :setlocal bomb (or maybe

  1   2   3   >