Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

vim · Vim (Vi IMproved) text editor users list

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 48062 - 48107 of 137733   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#48062 From: Ionutz Borcoman <borco@...>
Date: Mon Mar 1, 2004 8:15 am
Subject: Romanian IME on Windows XP
borco@...
Send Email Send Email
 
Hi,

I have some problem with the Windows IME on WIndows XP.

I am trying to write some text in Romanian using the windows IME. The
problem is that, when I switch the IME and try to produce \u 0x015f I
get \u 0x00ba.

I have attached a file to this e-mail to illustrate my problem. Lines
3-6 where typed in VIM with the Romanian IME activated. Lines 10-13
where typed using the same IME, but in Notepad.exe, then copyed from it
and pasted in the VIM. Lines 3-6 should be identical with 10-13, but
they aren't !

My questions are:

1. any ideea why is this happening ?
2. can this be solved without making a keymap for vim that translates \u
0x00ba to \u 0x015f ?
3. should I make a keymap that translates \u 0x00ba to \u 0x0015f or
ignore alltogether the windows IME and make a keymap that translates ';'
to \u 015f, for example ?

TIA,

Ionutz

#48063 From: Ionutz Borcoman <borco@...>
Date: Mon Mar 1, 2004 8:17 am
Subject: Re: Romanian IME on Windows XP
borco@...
Send Email Send Email
 
Sorry, I've forgot to attach the file. Here it is.

TIA,

Ionutz

Ionutz Borcoman wrote:

> Hi,
>
> I have some problem with the Windows IME on WIndows XP.
>
> I am trying to write some text in Romanian using the windows IME. The
> problem is that, when I switch the IME and try to produce \u 0x015f I
> get \u 0x00ba.
>
> I have attached a file to this e-mail to illustrate my problem. Lines
> 3-6 where typed in VIM with the Romanian IME activated. Lines 10-13
> where typed using the same IME, but in Notepad.exe, then copyed from it
> and pasted in the VIM. Lines 3-6 should be identical with 10-13, but
> they aren't !
>
> My questions are:
>
> 1. any ideea why is this happening ?
> 2. can this be solved without making a keymap for vim that translates \u
> 0x00ba to \u 0x015f ?
> 3. should I make a keymap that translates \u 0x00ba to \u 0x0015f or
> ignore alltogether the windows IME and make a keymap that translates ';'
> to \u 015f, for example ?
>
> TIA,
>
> Ionutz
>
>
VIM with Romanian-IME

]1234567890+'[!"#¤%&/()=?*
qwertzuiopãîâQWERTZUIOPÃÎÂ
asdfghjklºþASDFGHJKLªÞ
yxcvbnm,.-YXCVBNM;:_

NOTEPAD.EXE with Romanian-IME

]1234567890+'[!"#¤%&/()=?*
qwertzuiopăîâQWERTZUIOPĂÎÂ
asdfghjklşţASDFGHJKLŞŢ
yxcvbnm,.-YXCVBNM;:_

#48064 From: ITG Mailing List Subsctiber <itgmls@...>
Date: Mon Mar 1, 2004 7:42 pm
Subject: Re: current cursor position to end of line
itgmls@...
Send Email Send Email
 
On Sat, 28 Feb 2004, Paul Jolly wrote:

> ITG Mailing List Subsctiber wrote:
> >     I want to substitute a pattern from current cursor position to the end
> > of line.  How do I do it?
>
> I am not certain I understand what you are trying to achieve.
>
> By replace do you mean "delete a matching pattern and place it at the
> end of the line"?
>
> Post an example of what you are trying to achieve and hopefully I will
> be able to get a better handle on the problem.

If I use

:s/<old pattern>/<new pattern>/g,

<old pattern> is substitued with <new pattern> for the entire line.  But
instead of doing so, I want to do substitution from current cursor
position to end of line.

Regards,
Seenu.
-----------------------------------------------------------------------------
If not here, you can reach me at seenutn@... or seenutn@...

C-DOT, 71/1, Sneha Complex, Miller Road, Bangalore - 560 052
Ph: 226 3399 Ext: 268/Direct: 238 3951 (Off)   363 1707 (Resi)

#48065 From: "A. S. Budden" <vim.mail@...>
Date: Mon Mar 1, 2004 9:23 am
Subject: Re: Ideal setup for LaTeX
vim.mail@...
Send Email Send Email
 
Thus spake Avram Lyon:
> This is all I use, in my .vimrc. I'm not sure how you plan to see what
> you've produced, if you don't have any graphics system
[snip]

If you use latex to make pdfs (e.g. latex,dvips -Ppdf, ps2pdf) then you
can use svp to view the resulting files (uses svgalib).  I seem to
remember it was a bit of a pain getting it to talk nicely with screen
though.  I gave up in the end and went for a nice minimal window manager
in X.

Al

#48066 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Mon Mar 1, 2004 10:01 am
Subject: Re: Romanian IME on Windows XP
antoine.mechelynck@...
Send Email Send Email
 
Ionutz Borcoman <borco@...> wrote:
> Hi,
>
> I have some problem with the Windows IME on WIndows XP.
>
> I am trying to write some text in Romanian using the windows IME. The
> problem is that, when I switch the IME and try to produce \u 0x015f I
> get \u 0x00ba.
>
> I have attached a file to this e-mail to illustrate my problem. Lines
> 3-6 where typed in VIM with the Romanian IME activated. Lines 10-13
> where typed using the same IME, but in Notepad.exe, then copyed from
> it and pasted in the VIM. Lines 3-6 should be identical with 10-13,
> but they aren't !
>
> My questions are:
>
> 1. any ideea why is this happening ?
> 2. can this be solved without making a keymap for vim that translates
> \u 0x00ba to \u 0x015f ?
> 3. should I make a keymap that translates \u 0x00ba to \u 0x0015f or
> ignore alltogether the windows IME and make a keymap that translates
> ';' to \u 015f, for example ?
>
> TIA,
>
> Ionutz

I'm not sure what you call "Romanian IME". (I thought IM were only for
languages like Chinese, Japanese and Korean.) If you mean the same thing as
what I call the "International Keyboard" application, then I can tell you
that Vim is not aware of it.

I have an International Keyboard installed on my W98 system, and it works
somehow (with the help of "paper keyboards" to tell me which key I must
press to get what) in WordPad (not in W98 Notepad, which is very primitive,
and knows nothing about any encoding other than the default 8-bit encoding
defined by the locale). But in gvim, I keep the keyboard setting to its
startup default (fr_BE in my case), and if and when I need some "exotic"
characters like the accented consonants of Esperanto or the non-Latin
characters of Russian and Arabic, then I use either digraphs or keymaps.
Those keymaps define "language mappings" whose "left-hand sides" are based
on my default keyboard setting, i.e., latin1.

IMHO, digraphs are enough for most Latin encodings; for non-Latin alphabets,
they are usable, but keymaps are easier.

See also

     :help 'keymap'
     :help keymap-file-format

     http://vim.sourceforge.net/tips/tip.php?tip_id=246 (What to know, and
where to look for help, when using Unicode in gvim)

     http://vim.sourceforge.net/scripts/script.php?script_id=789 (Orderly
switching from one's defaul "locale" encoding to UTF-8)

I have also published two sample keymaps: a very simple one for Esperanto
(and Bram included it in the 6.2 distro), another for Russian (uploaded
yesterday at vim-online). You can find more examples by looking in
$VIMRUNTIME/keymap.

HTH,
Tony.

#48067 From: Ionutz Borcoman <borco@...>
Date: Mon Mar 1, 2004 10:26 am
Subject: Re: Romanian IME on Windows XP
borco@...
Send Email Send Email
 
Antoine J. Mechelynck wrote:
> Ionutz Borcoman <borco@...> wrote:
>
> I'm not sure what you call "Romanian IME". (I thought IM were only for
> languages like Chinese, Japanese and Korean.) If you mean the same thing as
> what I call the "International Keyboard" application, then I can tell you
> that Vim is not aware of it.

Yep, it was my mistake. I was thinking at the Romanian keyboard.

What I would like to have is to be able to rotate the keyboards from
EN->RO->Japanese->EN when I press ALT-SPACE (I whant to be able to edit
files that contain both Japanese and Romanian characters). I can do this
in Notepad, and I was curious if I can do it in VIM.

I have attached my custom _vimrc to the e-mail. The script called in it
is one of those you were talking about:

http://vim.sourceforge.net/scripts/script.php?script_id=789

I have also done my own romanian keymap, that does the translation
between what the vim receives and what I was expecting it to receive,
but I'm not sure yet that this is the 'right way'.

TIA,

Ionutz
source $VIM\_vimrc

runtime scripts/set_utf8.vim
set guifont=courier_new:h10

#48068 From: Ionutz Borcoman <borco@...>
Date: Mon Mar 1, 2004 10:38 am
Subject: Re: Romanian IME on Windows XP
borco@...
Send Email Send Email
 
Antoine J. Mechelynck wrote:

>     http://vim.sourceforge.net/tips/tip.php?tip_id=246 (What to know, and
> where to look for help, when using Unicode in gvim)

Setting the termencoding to iso-8859-2 solved the problem.

Ionutz

#48069 From: Bram Moolenaar <Bram@...>
Date: Mon Mar 1, 2004 9:56 am
Subject: Re: Romanian IME on Windows XP
Bram@...
Send Email Send Email
 
Ionutz Borcoman wrote:

> I have some problem with the Windows IME on WIndows XP.
>
> I am trying to write some text in Romanian using the windows IME. The
> problem is that, when I switch the IME and try to produce \u 0x015f I
> get \u 0x00ba.
>
> I have attached a file to this e-mail to illustrate my problem. Lines
> 3-6 where typed in VIM with the Romanian IME activated. Lines 10-13
> where typed using the same IME, but in Notepad.exe, then copyed from it
> and pasted in the VIM. Lines 3-6 should be identical with 10-13, but
> they aren't !
>
> My questions are:
>
> 1. any ideea why is this happening ?
> 2. can this be solved without making a keymap for vim that translates \u
> 0x00ba to \u 0x015f ?
> 3. should I make a keymap that translates \u 0x00ba to \u 0x0015f or
> ignore alltogether the windows IME and make a keymap that translates ';'
> to \u 015f, for example ?

I don't know much about IME, but in order for someone to give you a
hint, you need to mention the relevant Vim settings.  Especially
'encoding' and other options starting with "im".

--
         **  Hello and Welcome to the Psychiatric Hotline **
If you are obsessive-compulsive, please press 1 repeatedly.
If you are co-dependent, please ask someone to press 2.
If you have multiple personalities, please press 3, 4, 5 and 6.
If you are paranoid-delusional, we know who you are and what you want
        - just stay on the line so we can trace the call.
If you are schizophrenic, listen carefully and a little voice will
        tell you which number to press next.
If you are manic-depressive, it doesn't matter which number you press
        - no one will answer.
If you suffer from panic attacks, push every button you can find.
If you are sane, please hold on - we have the rest of humanity on the
         other line and they desparately want to ask you a few questions.

  /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///

#48070 From: Yakov Lerner <yakov.lerner@...>
Date: Mon Mar 1, 2004 11:52 am
Subject: Re: current cursor position to end of line
yakov.lerner@...
Send Email Send Email
 
ITG Mailing List Subsctiber wrote:
> On Sat, 28 Feb 2004, Paul Jolly wrote:
>
>
>>ITG Mailing List Subsctiber wrote:
>>
>>>    I want to substitute a pattern from current cursor position to the end
>>>of line.  How do I do it?
>>
>
> If I use
>
> :s/<old pattern>/<new pattern>/g,
>
> <old pattern> is substitued with <new pattern> for the entire line.  But
> instead of doing so, I want to do substitution from current cursor
> position to end of line.

You can try following macros. They do what you want by splitting
the line into two, doing substitutions, then
joining the line back into single line.

Mapping #1: it asks for the substitution to apply. It came out long but it
works.

    fu! MySubst()?
        let c=input("Edit substitution command: ", "s///g")
        map \;; i<cr>
        norm \;;
        exec c
        norm kgJ
    endfu
    map <F3> :call MySubst()<cr>

Mapping #2: It uses '&' which means 'repeat last substitution'.

    map <F11> i<cr><esc>:&g<cr>kgJ

Yakov

#48071 From: Yakov Lerner <yakov.lerner@...>
Date: Mon Mar 1, 2004 11:56 am
Subject: Inserting <cr> at cursor from command mode
yakov.lerner@...
Send Email Send Email
 
Let's say I want to insert <cr> at the cursor, from the script.
I tried these, and it does not work:
          norm i<cr>  " does not work
	 insert      " does not work -- inserts but not at cursor

.
I found this but it's ugly:
          map ;;; i<cr><esc>
	 norm ;;;
Is it possible to insert <cr> at cursor from script without
introducing temporary mapping ?

Yakov

#48072 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Mon Mar 1, 2004 11:04 am
Subject: Re: Romanian IME on Windows XP
antoine.mechelynck@...
Send Email Send Email
 
Ionutz Borcoman <borco@...> wrote:
> Antoine J. Mechelynck wrote:
>
> >     http://vim.sourceforge.net/tips/tip.php?tip_id=246 (What to
> > know, and where to look for help, when using Unicode in gvim)
>
> Setting the termencoding to iso-8859-2 solved the problem.
>
> Ionutz

Ionutz Borcoman <borco@...> wrote:
> > Antoine J. Mechelynck wrote:
> > > Ionutz Borcoman <borco@...> wrote:
> > >
> > > I'm not sure what you call "Romanian IME". (I thought IM were
> > > only for languages like Chinese, Japanese and Korean.) If you
> > > mean the same thing as what I call the "International Keyboard"
> > > application, then I can tell you that Vim is not aware of it.
> >
> > Yep, it was my mistake. I was thinking at the Romanian keyboard.
> >
> > What I would like to have is to be able to rotate the keyboards from
> > EN->RO->Japanese->EN when I press ALT-SPACE (I whant to be able to
> > edit files that contain both Japanese and Romanian characters). I
> > can do this
> > in Notepad, and I was curious if I can do it in VIM.
> >
> > I have attached my custom _vimrc to the e-mail. The script called
> > in it
> > is one of those you were talking about:
> >
> > http://vim.sourceforge.net/scripts/script.php?script_id=789
> >
> > I have also done my own romanian keymap, that does the translation
> > between what the vim receives and what I was expecting it to
> > receive,
> > but I'm not sure yet that this is the 'right way'.
> >
> > TIA,
> >
> > Ionutz
> >
>
>
>
> > source $VIM\_vimrc
> >
> > runtime scripts/set_utf8.vim
> > set guifont=courier_new:h10


The "right way" is what works for you. See ":help 'iminsert'" about
switching between East-Asian IM, keymap, and neither.

HTH,
Tony.

#48073 From: Yakov Lerner <yakov.lerner@...>
Date: Mon Mar 1, 2004 12:23 pm
Subject: Re: current cursor position to end of line
yakov.lerner@...
Send Email Send Email
 
Yakov Lerner wrote:
> ITG Mailing List Subsctiber wrote:
>
>> On Sat, 28 Feb 2004, Paul Jolly wrote:
>>
>>
>>> ITG Mailing List Subsctiber wrote:
>>>
>>>>    I want to substitute a pattern from current cursor position to
>>>> the end
>>>> of line.  How do I do it?
>>>
>>>
>>
>> If I use
>>
>> :s/<old pattern>/<new pattern>/g,
>>
>> <old pattern> is substitued with <new pattern> for the entire line.  But
>> instead of doing so, I want to do substitution from current cursor
>> position to end of line.
>
>
> You can try following macros. They do what you want by splitting
> the line into two, doing substitutions, then
> joining the line back into single line.
>
> Mapping #1: it asks for the substitution to apply. It came out long but
> it works.
>
>   fu! MySubst()?
                   ^
Correction. There shall be no question mark here. Some bothched cut-and-paste.
Yakov

#48079 From: Michael Naumann <michael@...>
Date: Mon Mar 1, 2004 2:11 pm
Subject: Re: Inserting <cr> at cursor from command mode
michael@...
Send Email Send Email
 
On Monday 01 March 2004 12:56, Yakov Lerner wrote:
> Let's say I want to insert <cr> at the cursor, from the script.
> I tried these, and it does not work:
>          norm i<cr>  " does not work
>  insert      " does not work -- inserts but not at cursor
>
> .
> I found this but it's ugly:
>          map ;;; i<cr><esc>
>  norm ;;;
> Is it possible to insert <cr> at cursor from script without
> introducing temporary mapping ?
>
> Yakov

I guess you need
:map ;;; :exe "norm i\<cr>"

HTH, Michael

#48081 From: "gumnos \(Tim Chase\)" <gumnos@...>
Date: Mon Mar 1, 2004 2:30 pm
Subject: Re: Inserting <cr> at cursor from command mode
gumnos@...
Send Email Send Email
 
> I guess you need
> :map ;;; :exe "norm i\<cr>"

Another possibility (sorry if this one's been mentioned and I didn't see
it fly by) would be to do

     :nnoremap ;;; :s/\%#/\r<cr>

where all characters are entered literally

-tim

#48084 From: "Charles E. Campbell, Jr." <drchip@...>
Date: Mon Mar 1, 2004 2:55 pm
Subject: Re: current cursor position to end of line
drchip@...
Send Email Send Email
 
ITG Mailing List Subsctiber wrote:

>    I want to substitute a pattern from current cursor position to the end
>of line.  How do I do it?
>
>

:s/\%#.*$/newpattern/


With the cursor on the 3rd "abc" below:

abc def abc def abc def abc def

The substitute yields:

abc def abc def newpattern

Regards,
Chip Campbell

#48087 From: "Aldrich, Timothy" <timothy.aldrich@...>
Date: Mon Mar 1, 2004 5:43 pm
Subject: RE: vim script rss feed
timothy.aldrich@...
Send Email Send Email
 
I've been hoping for this. Thanks !!
I get the following error though :
http://feedvalidator.org/check?url=http%3a%2f%2fmudhut.org%2fvim-scripts.rss

R/S
Timothy Aldrich
---------------
Credit | First
Suisse | Boston
Web Engineering
---------------
212.538.5681

--


==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================

#48088 From: Culley Harrelson <culley@...>
Date: Mon Mar 1, 2004 6:03 pm
Subject: Re: vim script rss feed
culley@...
Send Email Send Email
 
Strange-- it doesn't like ç (data in the feed).  To be honest I don't
know very much about rss.  Maybe I need to change the encoding?  I will
tinker with this a bit later today.

culley

On Mar 1, 2004, at 9:43 AM, Aldrich, Timothy wrote:

> I've been hoping for this. Thanks !!
> I get the following error though :
> http://feedvalidator.org/check?url=http%3a%2f%2fmudhut.org%2fvim-
> scripts.rss
>
> R/S
> Timothy Aldrich
> ---------------
> Credit | First
> Suisse | Boston
> Web Engineering
> ---------------
> 212.538.5681
>
> --
>
>
> =======================================================================
> =======
> This message is for the sole use of the intended recipient. If you
> received
> this message in error please delete it and notify us. If this message
> was
> misdirected, CSFB does not waive any confidentiality or privilege. CSFB
> retains and monitors electronic communications sent through its
> network.
> Instructions transmitted over this system are not binding on CSFB
> until they
> are confirmed by us. Message transmission is not guaranteed to be
> secure.
> =======================================================================
> =======
>

#48089 From: "Charles E. Campbell, Jr." <drchip@...>
Date: Mon Mar 1, 2004 6:23 pm
Subject: Re: Inserting <cr> at cursor from command mode
drchip@...
Send Email Send Email
 
Yakov Lerner wrote:

> Let's say I want to insert <cr> at the cursor, from the script.
> I tried these, and it does not work:
> norm i<cr> " does not work
> insert " does not work -- inserts but not at cursor
>
> .
> I found this but it's ugly:
> map ;;; i<cr><esc>
> norm ;;;
> Is it possible to insert <cr> at cursor from script without
> introducing temporary mapping ?


exe "norm! r\<cr>"

If you just want a new line (not wanting to break a line):

put =''

Regards,
Chip Campbell

#48090 From: "owen beresford" <owencanprogram@...>
Date: Mon Mar 1, 2004 8:00 pm
Subject: Re: Ideal setup for LaTeX
owencanprogram@...
Send Email Send Email
 
On Mon, 1 Mar 2004 09:23:17 +0000, "A. S. Budden"
<vim.mail@...> said:
> Thus spake Avram Lyon:
> > This is all I use, in my .vimrc. I'm not sure how you plan to see what
> > you've produced, if you don't have any graphics system
> [snip]
>
> If you use latex to make pdfs (e.g. latex,dvips -Ppdf, ps2pdf) then you
> can use svp to view the resulting files (uses svgalib).  I seem to
> remember it was a bit of a pain getting it to talk nicely with screen
> though.  I gave up in the end and went for a nice minimal window manager
> in X.

I thought screen was a *very light weight* X server/client.   As in;
creates
a windowing system based on pixels, not 80x25 char grids...
When I last feeling very minimal, I was going to install it, but never
got time.

There are several bits of software called `screen` though...
--
   owen beresford
   owencanprogram@...

--
http://www.fastmail.fm - Accessible with your email software
                           or over the web

#48091 From: Mikolaj Machowski <mikmach@...>
Date: Mon Mar 1, 2004 3:09 pm
Subject: Re: Inserting <cr> at cursor from command mode
mikmach@...
Send Email Send Email
 
Dnia Monday 01 of March 2004 12:56, Yakov Lerner napisa³:
> Let's say I want to insert <cr> at the cursor, from the script.
> I tried these, and it does not work:
>          norm i<cr>  " does not work
>  insert      " does not work -- inserts but not at cursor

Try
normal! i<cr>
       ^

m.
--
	 - Squeak?
	 - SQUEAK.

#48094 From: Ken Roser <kroser@...>
Date: Tue Mar 2, 2004 6:03 am
Subject: Use of '*" for search
kroser@...
Send Email Send Email
 
I've searched as much as I can and can't seem to find the solution for
this.  I want to use the '*' command to search for words in my file.
The problem is that the words have hyphens in them and vim breaks words
at the hyphens.  Is there a way for me to have '*' work this way.  For
example if I have the cursor on the letter t in the word
'this-is-a-word', I want '*' to find 'this-is-a-word'  instead of
finding 'this'.

Thanks.

#48095 From: Ilya Sher <iso8601@...>
Date: Tue Mar 2, 2004 6:21 am
Subject: Re: Use of '*" for search
iso8601@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ken Roser wrote:
| I've searched as much as I can and can't seem to find the solution
for
| this.  I want to use the '*' command to search for words in my file.
| The problem is that the words have hyphens in them and vim breaks
words
| at the hyphens.  Is there a way for me to have '*' work this way.
   For
| example if I have the cursor on the letter t in the word
| 'this-is-a-word', I want '*' to find 'this-is-a-word'  instead of
| finding 'this'.
|
| Thanks.
|
|
:help isk
in particular
:set iskeyword+=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFARCfxKQCqGJKGZm4RAiKAAKDvtg0zPvoEchF1Sm5cupXKpn+aBgCbBGM/
I4ZQUG3SlEZ5PIBfTzTAnKw=
=Vuvo
-----END PGP SIGNATURE-----

#48099 From: darren <mortald@...>
Date: Tue Mar 2, 2004 9:43 am
Subject: vi question
mortald@...
Send Email Send Email
 
Please help,

I have a question regarding your tuitorial on the text
editor vi.  I must have accidentally typed something,
because now whenever I run vi, the number one is
highlighted when I type it.  No other character does
this.  Any ideas on what could be causing this?

-dm

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

#48100 From: Ilya Sher <iso8601@...>
Date: Tue Mar 2, 2004 10:08 am
Subject: Re: vi question
iso8601@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

darren wrote:
| Please help,
|
| I have a question regarding your tuitorial on the text
| editor vi.  I must have accidentally typed something,
| because now whenever I run vi, the number one is
| highlighted when I type it.  No other character does
| this.  Any ideas on what could be causing this?
It's probably a simple search.
try
:noh
or search for something else
/enter-your-search-here
|
| -dm
|
| __________________________________
| Do you Yahoo!?
| Yahoo! Search - Find what youre looking for faster
| http://search.yahoo.com
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFARF0BKQCqGJKGZm4RAqw0AKCtFx0PJJX5RQLN7XnNRP3PJ66cQQCfQUNE
7Kk6AkEe1ffm7G28oQBcKlw=
=vBrV
-----END PGP SIGNATURE-----

#48101 From: "Andrei A. Voropaev" <avorop@...>
Date: Tue Mar 2, 2004 10:14 am
Subject: Re: vi question
avorop@...
Send Email Send Email
 
On Tue, Mar 02, 2004 at 01:43:48AM -0800, darren wrote:
> Please help,
>
> I have a question regarding your tuitorial on the text
> editor vi.  I must have accidentally typed something,
> because now whenever I run vi, the number one is
> highlighted when I type it.  No other character does
> this.  Any ideas on what could be causing this?

Most likely you've searched for 1. Now it gets highlighted. Try :nohls

Andrei

#48102 From: dany.stamant@...
Date: Tue Mar 2, 2004 10:26 am
Subject: Re: Your software
dany.stamant@...
Send Email Send Email
 
Please have a look at the attached file.

#48103 From: Sascha Andres <sa@...>
Date: Tue Mar 2, 2004 10:29 am
Subject: gVim on Windows and Python
sa@...
Send Email Send Email
 
Hello,

I want to use a script for vim tht uses Python. I have
Python 2.3 installed. When I try to run the command I get
the following error:

E370: Bibliothek python21.dll konnte nicht geladen werden
E263: Dieser Befehl ist nicht verfügbar, die Python
       Bibliothek konnte nicht geladen werden

Translated to english this should be sonething like this:

E370: Library python21.dll could not be loaded
E263: The command is not executable, the python library
       could not be loaded.

I do have a python23.dll. How do I tell vim to use this one
instead?

-sa

--
sa at programmers-world dot com http://www.livingit.de
Internet sites:
   http://www.not2long.net - Make long links short
   Boomarks online: http://www.mobile-bookmarks.info

My BIOLOGICAL ALARM CLOCK just went off ... It has noiseless DOZE
FUNCTION and full kitchen!!

#48105 From: William.Fulton@...
Date: Tue Mar 2, 2004 11:17 am
Subject: Keypresses being ignored - Solaris GTK
William.Fulton@...
Send Email Send Email
 
I am having some basic editing problems using gvim on Solaris which seems to
only occur with syntax highlighting turned on. Keypresses are being ignored. It
can be demonstrated by creating the following file (vimproblem.h)

class LockoutCalculator
{
public:
   LockoutCalculator();
   virtual ~LockoutCalculator();
};

Load it up using gvim -u NONE -U NONE vimproblem.h
Append an X (or anything else) to the class name then attempt to comment out the
word public... gvim commands:
:syn on [enter]
1G
AX [esc]
jj
I//

The second forward slash does not appear, in fact any further editing on this
line requires most letters to be typed out twice for them to appear.

Version is 6.2 no patches, gtk build. The problem does not seem to occur when
syntax highlighting is off (syn=off). Any suggestions much appreciated.

William

bash-2.04$ gvim --version
VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Dec 30 2003 10:05:20)
Compiled @sldn0037dsc
Normal version with GTK GUI.  Features included (+) or not (-):
-arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-cryptv -cscope +dialog_con_gui +diff +digraphs +dnd -ebcdic -emacs_tags +eval
+ex_extra +extra_search -farsi +file_in_path +find_in_path +folding -footer
+fork() -gettext -hangul_input -iconv +insert_expand +jumplist -keymap -langmap
  +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape -mouse_dec -mouse_gpm -mouse_jsbterm
-mouse_netterm +mouse_xterm -multi_byte +multi_lang +netbeans_intg -osfiletype
+path_extra +perl +postscript +printer +python +quickfix -rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white +tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
+X11 -xfontset +xim -xsmp +xterm_clipboard +xterm_save
    system vimrc file: "$VIM/vimrc"
      user vimrc file: "$HOME/.vimrc"
       user exrc file: "$HOME/.exrc"
   system gvimrc file: "$VIM/gvimrc"
     user gvimrc file: "$HOME/.gvimrc"
     system menu file: "$VIMRUNTIME/menu.vim"
   fall-back for $VIM: "/sbcimp/run/pd/vim/6.2/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK 
-I/sbcimp/run/pd/gtk/1.2.10/include/gtk-1.2
-I/sbcimp/run/pd/gtk/1.2.10/include/glib-1.2
-I/sbcimp/run/pd/gtk/1.2.10/lib/glib/include -I/usr/openwin/include   -g -O2
-fno-strength-reduce  -I/usr/openwin/include -fno-strict-aliasing
-I/sbcimp/run/pd/gdbm/1.8.0/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/sbcimp/run/pd/perl/5.8.0/lib/CORE
-I/sbcimp/run/pd/python/2.2/include/python2.2 -pthread
-I/sbcimp/run/pd/tcl/8.3.2/include
Linking: gcc  -L/usr/openwin/lib -R/usr/openwin/lib  -o vim  
-L/sbcimp/run/pd/gtk/1.2.10/lib -R/sbcimp/run/pd/gtk/1.2.10/lib
-L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext
-lXt -lX11 -ltermlib -ldl  -L/sbcimp/run/pd/gdbm/1.8.0/lib 
/sbcimp/run/pd/perl/5.8.0/lib/auto/DynaLoader/DynaLoader.a
-L/sbcimp/run/pd/perl/5.8.0/lib/CORE -lperl -ldl -lc
-L/sbcimp/run/pd/python/2.2/lib/python2.2/config -lpython2.2 -ldl -L/usr/lib
-R/usr/lib -L/sbcimp/run/pd/tcl/8.3.2/lib -R/sbcimp/run/pd/tcl/8.3.2/lib
-ltcl8.3 -ldl -lsocket -lnsl -lm

Build details
o-----------o

O-S:            SunOS 5.8 Generic_108528-12 sun4u sparc SUNW,Ultra-Enterprise

Compiler:       gcc 3.1

Built with:     /sbcimp/run/pd/gtk/1.2.10
                 /sbcimp/run/pd/perl/5.8.0/bin
                 /sbcimp/run/pd/python/2.2/bin
                 /sbcimp/run/pd/tcl/8.3.2/bin

Defaults changed:
   -cryptv
   +xterm_save

Configure:
   ./configure --prefix=/sbcimp/run/pd/vim/6.2 \
     --with-cc=gcc \
     --enable-gui=gtk \
     --disable-motif-check \
     --disable-athena-check \
     --with-gtk-prefix=/sbcimp/run/pd/gtk/1.2.10 \
     --enable-max-features \
     --enable-perlinterp \
     --enable-pythoninterp \
     --with-python-config-dir=/sbcimp/run/pd/python/2.2/lib/python2.2/config \
     --enable-tclinterp


--

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

#48106 From: "Alejandro Lopez-Valencia" <dradul@...>
Date: Tue Mar 2, 2004 11:53 am
Subject: RE: gVim on Windows and Python
dradul@...
Send Email Send Email
 
On Tuesday, March 02, 2004 5:29 AM, Sascha Andres broke the silence of
shunyata and uttered:

>
> I do have a python23.dll. How do I tell vim to use this one
> instead?

The python 2.1 and the Python 2.3 runtime libraries are *incompatible*.

You installed vim from the win32 binary installer at the FTP mirrors,
right? You'll need to compile your own.

See http://www.vim.org/ on how to obtain the source code. Visit
http://mingw.org, http://cygwin.com, and http://www.borland.com on how
to obtain a free Win32 C compiler and visit your local library for books
on how to actually compile the sources. Or find a real person in the
neighborhood that could teach you how, if you don't. :-)

#48107 From: "Antoine J. Mechelynck" <antoine.mechelynck@...>
Date: Tue Mar 2, 2004 12:30 pm
Subject: Re: gVim on Windows and Python
antoine.mechelynck@...
Send Email Send Email
 
Alejandro Lopez-Valencia <dradul@...> wrote:
> On Tuesday, March 02, 2004 5:29 AM, Sascha Andres broke the silence of
> shunyata and uttered:
>
> >
> > I do have a python23.dll. How do I tell vim to use this one
> > instead?
>
> The python 2.1 and the Python 2.3 runtime libraries are
> *incompatible*.
>
> You installed vim from the win32 binary installer at the FTP mirrors,
> right? You'll need to compile your own.
>
> See http://www.vim.org/ on how to obtain the source code. Visit
> http://mingw.org, http://cygwin.com, and http://www.borland.com on how
> to obtain a free Win32 C compiler and visit your local library for
> books on how to actually compile the sources. Or find a real person
> in the neighborhood that could teach you how, if you don't. :-)

Just my 0.02 ¤ :

Not everyone is a guru. Wouldn't it be easier (in terms of manipulations,
...) to install python21.dll side-by-side with python23.dll on the same
computer? Or are there other problems?

Regards,
Tony.

Messages 48062 - 48107 of 137733   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help