Re: Jump to tag in a file opened in another session

2007-03-07 Thread Corinna Vinschen
On Mar 6 12:42, Yegappan Lakshmanan wrote: On 3/6/07, Corinna Vinschen [EMAIL PROTECTED] wrote: So, the bottom line is, I'm looking for is a way to open a file automatically in r/o mode if I'm going to jump to a tag in that file and the file is opened in another session. You can use the

Re: problems compiling on solaris

2007-03-07 Thread Rodolfo Borges
On 3/7/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: The first error mentioned (at vim:h:41) is part of the following: # if (SIZEOF_INT == 0) Error: configure did not run properly. Check auto/config.log. # endif Shouldn't that be: # if (SIZEOF_INT == 0) # error Configure did not run

Re: copyindent/preserveindent question

2007-03-07 Thread Bram Moolenaar
Alexei Alexandrov wrote: I was hesitating where to post this message to: editors.vim or editor.vim.devel, since I'm not sure if it's bug or I'm just missing something. Finally I decided to treat this as a bug. Problem: I can't get copyindent/preserveindent options working. The scenario

Re: [!] missing from :cb and related commands?

2007-03-07 Thread Bram Moolenaar
Yegappan Lakshmanan wrote: On 3/6/07, Gary Johnson [EMAIL PROTECTED] wrote: On 2007-03-07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Gary Johnson wrote: If I open a new window, read into it the results of a grep command, e.g., :r !grep -nH somepattern somefileset

Re: VimTips Wiki: New Direction

2007-03-07 Thread John Beckett
Denis Perelyubskiy wrote: why don't we discuss that here: http://en.wikibooks.org/wiki/Talk:Learning_the_vi_editor/Vim/TipsSandbox/Tip_1:_the_super_star :-) You and I started talking on that discussion page. I just wanted to say (to everyone) that now I think all comments would be better made

Re: VimTips Wiki: New Direction

2007-03-07 Thread John Beckett
Brian McKee wrote: One of the first things I was thinking about mirrors the above comments. http://en.wikibooks.org/wiki/Talk:Learning_the_vi_editor/Vim/ TipsSandbox/Tip_1:_the_super_star has a bunch of thanks for the great tip! type comments with more useage info interspersed. I think

Re: To imap or to iabbr

2007-03-07 Thread Matthew Winn
On Tue, 06 Mar 2007 15:45:48 -0600, Tim Chase [EMAIL PROTECTED] wrote: Multi-character mappings also have a slight delay in them, so in the preceeding example, after I type HELI, there's a slight pause while Vim sees if I am going to type U, or if I type something else, so it knows how to

Re: VimTips Wiki: New Direction

2007-03-07 Thread John Beckett
A few fundamental decisions need to be made so the conversion script can produce a result that minimises future effort. How will tips be found? Can there be a contents page? If so, the script should generate a suitable list, perhaps for hand-tweaking. Currently, the URL of the sample tip has

print hex value of cp936 Chinese char?

2007-03-07 Thread Zhaojun WU
Hi, all, Is it possible to print the hex value of the cp936-coded Chinese character under the current cursor, just like ga for the ASCII char. I found that g8 can print the correct hex value of UTF8-encoded Chinese character in a openning UTF-8 encoded file. But, for a cp936 (or GBK) encoded

Re: VimTips Wiki: New Direction

2007-03-07 Thread John Beckett
Paul Irofti wrote: Back-ups are better made on the server side. For mediawiki a regular sqldump (maybe added in crontab) is all that is necessary. Good. But can we actually do that? I thought we were planning to use a system where we have no access to the server except via a wiki interface.

Re: VimTips Wiki: New Direction

2007-03-07 Thread A.J.Mechelynck
John Beckett wrote: Brian McKee wrote: One of the first things I was thinking about mirrors the above comments. http://en.wikibooks.org/wiki/Talk:Learning_the_vi_editor/Vim/ TipsSandbox/Tip_1:_the_super_star has a bunch of thanks for the great tip! type comments with more useage info

Re: VimTips Wiki: New Direction

2007-03-07 Thread John Beckett
A.J.Mechelynck wrote: Moving the tip body to a wiki page and the comments to its talk page can (IIUC) be automated. /Then/ the tip author (or maintainer, etc.) can archive the talk page, remove empty comments (of the great tip kind), refactor useful comments into the tip body, etc. My

Re: VimTips Wiki: New Direction

2007-03-07 Thread hermitte
Hello, John Beckett [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: Moving the tip body to a wiki page and the comments to its talk page can (IIUC) be automated. /Then/ the tip author (or maintainer, etc.) can archive the talk page, remove empty comments (of the great tip kind), refactor

Error when setting spellfile and spelllang?

2007-03-07 Thread Mark Woodward
Hi all, This is probably not the appropriate mailing list but I'm not subscribed to the dev list. OS: ubuntu edgy 6.10 Vim: VIM - Vi IMproved 7.0 (2006 May 7, compiled Feb 25 2007 20:14:58) Included patches: 1-30, 32, 31-32, 32-201 Compiled by MarkWoodward Huge version with GTK2 GUI. Features

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread A.J.Mechelynck
Zhaojun WU wrote: Hi, all, Is it possible to print the hex value of the cp936-coded Chinese character under the current cursor, just like ga for the ASCII char. I found that g8 can print the correct hex value of UTF8-encoded Chinese character in a openning UTF-8 encoded file. But, for a cp936

substitution eats combining diacritics

2007-03-07 Thread Denis Jacquerye
Hi I have a file with combining diacritics, when using the s/ function all the combining diacritics disappear. For example if the file has the string ɛ́ (U+025B, U+0301) after using the command :%s/^\(.*\)$/[[\1]]/ the diacritic U+0301 has vanished. Denis Moyogo Jacquerye

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread A.J.Mechelynck
Zhaojun WU wrote: Hi, Tony, Thanks for you reply. I've already tried the xxd solution, but it converts all of the characters into hex values, it is hard to locate a particular character's value. It might be possible to copy this character out to a new window and use :%!xxd to check its hex

Set preferred tag

2007-03-07 Thread Bin Chen
When I am using vim + ctags, and on some keyword I press CTRL+], it will jump to the tag that found by ctags. But in the case there resides many tags, the vim will pop a window to let me choose one. Can I set a preferred tag for given keyword so that I don't need to choose from a lot many tags

Re: rss feed for vim plugins

2007-03-07 Thread Tom Purl
On Wed, March 7, 2007 3:51 am, Thomas wrote: Hi, Since http://plasmasturm.org/feeds/vimscripts/ seems to be still out of order, I was looking for another way to keep track of updates of vim plugins and breathtaking new submissions. I came across this service http://feed43.com/ which appears

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread Cyril Slobin
On 3/7/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: As long as 'encoding' is set to UTF-8, there is no easy way to get the cp936 value of a given character in the buffer. I don't know if there is something specific with cp936, but for encodings I use daily (cp866, cp1251, koi8-r) the following

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread A.J.Mechelynck
Cyril Slobin wrote: On 3/7/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: As long as 'encoding' is set to UTF-8, there is no easy way to get the cp936 value of a given character in the buffer. I don't know if there is something specific with cp936, but for encodings I use daily (cp866, cp1251,

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread Cyril Slobin
On 3/7/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: IIUC, the above is for 'encoding' and 'fileencoding' being both 8-bit encodings. cp936 is the Microsoft encoding for mainland China: some characters (such as ASCII) are 8 bits, others are 16 bits; and UTF-8 (the 'encoding' Zhaojun uses) can use

Re: Omnicomplete for C - pattern not found problem

2007-03-07 Thread Zarko Coklin
Thanks Vissale! At first I did not know how to use your plugin. Txt file in doc directory was more than helpluf :-) So wanted 'omnicomplete' functionality works quite well now! BTW, I also followed your advice and renamed cpp.vim to c.vim, cause at present I am interested in C code. Zarko

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread Zhaojun WU
Oops, josephwu is my another account. Gmail just wrongly chose my out mail addr. :( Best, Zhaojun On 3/8/07, Joseph WU [EMAIL PROTECTED] wrote: Hi, Cyril and Tony, Thanks. Tony's right. I just tested Cyril's solution. Unfortunately, when encoding=utf8 and fileencoding=cp936, line: let char

accounts and wikis

2007-03-07 Thread Charles E Campbell Jr
Hello! In order to prevent spam, some sort of verification procedure seems to be necessary. Vim's website already supports accounts; would requiring one to log into a vim account before making tips or add-ons to tips help? A verification step for account privilege (apply for account - mail

Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Zarko Coklin
Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I setup Vim so that it sources right ctags file depending from I

Re: print hex value of cp936 Chinese char?

2007-03-07 Thread Cyril Slobin
On 3/7/07, Joseph WU [EMAIL PROTECTED] wrote: Tony's right. I just tested Cyril's solution. Unfortunately, when encoding=utf8 and fileencoding=cp936, line: let char = matchstr(getline(.), ., col(.) - 1) can only get the *FIRST* 8-bit out of a 2-byte cp936-encoded Chinese character. (To my

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Gary Johnson
On 2007-03-07, Zarko Coklin [EMAIL PROTECTED] wrote: Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I

RE: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Michael Wookey
Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files. How can I setup Vim so that it sources right ctags file depending

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread A.J.Mechelynck
Gary Johnson wrote: On 2007-03-07, Zarko Coklin [EMAIL PROTECTED] wrote: Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2 At a very top level in each of these directories I have ctags files.

Re: VimTips Wiki: New Direction

2007-03-07 Thread Paul Irofti
On Wed, Mar 07, 2007 at 08:39:23PM +1100, John Beckett wrote: Paul Irofti wrote: Back-ups are better made on the server side. For mediawiki a regular sqldump (maybe added in crontab) is all that is necessary. Good. But can we actually do that? I thought we were planning to use a system

Re: VimTips Wiki: New Direction

2007-03-07 Thread Paul Irofti
On Wed, Mar 07, 2007 at 11:03:46AM +0100, A.J.Mechelynck wrote: John Beckett wrote: Brian McKee wrote: One of the first things I was thinking about mirrors the above comments. http://en.wikibooks.org/wiki/Talk:Learning_the_vi_editor/Vim/ TipsSandbox/Tip_1:_the_super_star has a bunch of

inoremap tips/examples (Was Re: add c/c++ snippets)

2007-03-07 Thread Eric Leenman
Hi, Triggered by the video presentation of Bram by making a iabbreviation or inoremaps of things you type often in combination with the reply of Gavin, would you like to share some of your inoremap mappings? Some like Gavin send? Plain and simple and very effective. [...] inoremap [ []LEFT

RE: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Zarko Coklin
Thanks to all who responded promptly. Special thanks to Michael Wookey. His solution is the most elegant one. It is based on upward search (which I did not know about). Therefore, setting following in .vimrc really did trick for me: Make sure semicolon is there. Used for upward search set

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Yegappan Lakshmanan
Hi, On 3/7/07, Zarko Coklin [EMAIL PROTECTED] wrote: Thanks to all who responded promptly. Special thanks to Michael Wookey. His solution is the most elegant one. It is based on upward search (which I did not know about). Therefore, setting following in .vimrc really did trick for me: Make

Re: accounts and wikis

2007-03-07 Thread Bram Moolenaar
Charles Campbell wrote: In order to prevent spam, some sort of verification procedure seems to be necessary. Vim's website already supports accounts; would requiring one to log into a vim account before making tips or add-ons to tips help? A verification step for account privilege

Re: Using right ctags file depending where Vim is started from - how?

2007-03-07 Thread Gary Johnson
On 2007-03-07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Gary Johnson wrote: On 2007-03-07, Zarko Coklin [EMAIL PROTECTED] wrote: Hi all! I am trying to automate my Vim setup as much as possible. On my PC I have 2 directories for 2 different releases. C:\Code_Rel1 C:\Code_Rel2

rotation

2007-03-07 Thread fREW
Does anyone know if there are any builtin commands to rotate the current line about a character or word? Example: rotate about the j and just respectively 'This is just a test ' becomes 'ust a testj This is' 'This is just a test' becomes 'a test just This is' I know it would be pretty easy to

Re: rotation

2007-03-07 Thread A.J.Mechelynck
fREW wrote: Does anyone know if there are any builtin commands to rotate the current line about a character or word? Example: rotate about the j and just respectively 'This is just a test ' becomes 'ust a testj This is' 'This is just a test' becomes 'a test just This is' I know it would be

Re: rotation

2007-03-07 Thread Tim Chase
Does anyone know if there are any builtin commands to rotate the current line about a character or word? I know it would be pretty easy to do these with macros, but I thought there might be some builtin or something. There's nothing built-in, but you can map something of the like: rotate

Re: rotation

2007-03-07 Thread fREW
Cool! Thanks Tim and A.J. And yeah, sorry about the typo with 'ust a test jThis is ', I meant to include that space. And I use Vim7 so I can use any extensions that may have been added then. Thanks again! -fREW On 3/7/07, Tim Chase [EMAIL PROTECTED] wrote: Does anyone know if there are

backspace key not working now

2007-03-07 Thread Brian Anderson
Hello, I made a few changes to my system this morning, and now my vim is acting very strange. I installed a program that removed vim-latexsuite. This was annoying, but not the subject of my message. Now when I am in Insert mode, Backspace key no longer works. After a certain point in the line

Re: rss feed for vim plugins

2007-03-07 Thread Thomas
Is there a way that we can subscribe to this feed, or do we have to create our own personal instance at free43? The user agreement for free feed conversion allows polling of the feed only once every 6 hours, which was one reason why I was asking if somebody knew a better (free)