Re: taglist: ctrl ] azerty

2007-05-24 Thread Jürgen Krämer
Hi, Mathieu Malaterre wrote: I am trying to use taglist on my AZERTY keyboard and I cannot get ctrl ] to work. If I type :ts + tagname I can see that taglist is working. this depends heavily on the operating system you use and the installed keyboard driver. For me on Windows XP with a

Re: vim | delete consecutive occurrences of a pattern

2007-04-27 Thread Jürgen Krämer
Hi, Nikolaos A. Patsopoulos wrote: I have a text that has many occurrences of a pattern . I want to delete every consecutive occurrence, e.g. Pattern Pattern other text Pattern Pattern Pattern Pattern other text Pattern Pattern Pattern should look like this: Pattern other text

Re: vim | delete consecutive occurrences of a pattern

2007-04-27 Thread Jürgen Krämer
Hi, Nikolaos A. Patsopoulos wrote: Tim Chase wrote: I have a text that has many occurrences of a pattern . I want to delete every consecutive occurrence, e.g. Pattern Pattern other text Pattern Pattern Pattern Pattern other text Pattern Pattern Pattern should look like this: Pattern

Re: join all lines inside pattern that occurs more than once

2007-04-26 Thread Jürgen Krämer
Hi, Nikolaos A. Patsopoulos wrote: I want to join all lines that are inside a given pattern and occurs more than once in the text, ie: PatternStart text1 text2 ...text3 ..text4 PatternEnd ... ... PatternStart text1 text2 ...text3 ..text4

Re: Getting rid of indents

2007-04-13 Thread Jürgen Krämer
Hi, Tomas Pihl wrote: As a convert from the dark side, I'm still learning Vim and have started to use it for editing mails (from mutt) to get some practice. One thing that I haven't managed to find is how I get rid of the (what I think) is some smart indenting after ( , ), / and , So if

Re: mark block from unknown position

2007-04-12 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] schrieb: I am trying to automate this: There is a file, which contains one path/filename at each line. Lines with equal files (contents wise) are grouped together. Groups are separated by # ---' (or whatever you want). To sort the lines of one group only I

Re: mark block from unknown position

2007-04-12 Thread Jürgen Krämer
Hi,, [EMAIL PROTECTED] wrote: J?rgen Kr?mer [EMAIL PROTECTED] [07-04-12 13:12]: Hi, [EMAIL PROTECTED] schrieb: I am trying to automate this: There is a file, which contains one path/filename at each line. Lines with equal files (contents wise) are grouped together. Groups are

Re: Finding something conatined in two lines?

2007-04-12 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] wrote: Suppose there is a file containing a path/filename -- in each line: # a.txt b.txt c.txt # 1.txt 2.txt 3.txt 4.txt # 1.txt 3.txt 4.txt # Now I want to replace any combination of 1.txt 2,txt by - say -

Re: copy pasting HTML code into vim

2007-04-10 Thread Jürgen Krämer
Hi, A.J.Mechelynck wrote: Kamaraju S Kusumanchi wrote: Let's say I open up a webpage, select some text and paste it into vim. Then all I see in vim is the text I see on the browser. While this is OK most of the times, sometimes I wish there is a way to paste the actual HTML code

Re: copy pasting HTML code into vim

2007-04-10 Thread Jürgen Krämer
Hi, me wrote: actually, the selected HTML code might be available from the clipboard. E.g., both Firefox and Internet Explorer put it there in multiple formats. The following are lists of the available formats after copying from FF and IE, respectively: 49161: DataObject 49422:

Re: script boolean operators

2007-04-10 Thread Jürgen Krämer
Hi, Horvath Adam wrote: I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 boolean and is written as and boolean or is written as ||. So your example becomes if i500 i1000. One working solution:

Re: VIM Delete All Except

2007-04-05 Thread Jürgen Krämer
Hi, jas01 wrote: I have a huge file where I need to delete all lines except for a few I need. I'm trying to do this in a single command. I know that: :v/Text/d will delete all lines except for ones containing 'Text.' I have no idea how to put multiple strings so the command deletes

Re: autocmd bug?

2007-03-27 Thread Jürgen Krämer
Hi, A.J.Mechelynck wrote: Jürgen Krämer wrote: [...] the FileType event is only fired once with the exact filetype you specified in your set command, so you must additionally define the following autocommand: autocmd FileType c.doxygen setlocal cindent number cursorline

Re: autocmd bug?

2007-03-26 Thread Jürgen Krämer
Hi, Michael Wookey schrieb: I have the following in my .vimrc: filetype plugin indent on autocmd FileType c,h,cpp,hpp,cs setlocal cindent number cursorline If I have a new buffer and set the filetype as follows, everything works just fine: :set filetype=c However, if

Re: Best way to repeat a sequence of keystrokes/commands with a single keypress ?

2007-03-09 Thread Jürgen Krämer
Hi, Ivan Vecerina wrote: I sometimes want to repeat a sequence of operations like I would repeat a single command. For example, I can repeat with '.' something like: gI//ESC{is a single operation '.' repeats all} But I cannot as easily repeat: 02r/{ '.' will repeat the 2r/ ,

Re: :!start command: need to be root

2007-02-14 Thread Jürgen Krämer
Hi, Régis B. wrote: I use gVim on a Linux computer (KUbuntu), and I am trying to launch a program from inside gvim with the !start command, so for instance: :!start kdvi or :!start /usr/bin/kdvi But I get the following error: start: need to be root shell returned 1 So obviously

Re: How to diff in gvim

2007-02-13 Thread Jürgen Krämer
Hi, Naim Far wrote: Does anyone know how to do vert diffsplit between two buffers?! When using diffsplit I have to supply the full path of the second comparison file, what if I simply want the comparison to be done with another already opened buffer?! execute :diffsplit in both

Re: /Pattern with grouping ([]) and word character abrev (\w)

2007-02-07 Thread Jürgen Krämer
Hi, Thomas Michael Engelke wrote: I'm trying to use a regex for searching in a file. I noticed that inside square brackets \w seems to loose all magical matching abilities. Is there a way to reverse that loss or do I have to specify everything inside [] explicitly? yes, inside []

Re: Workspace concept ala TextPad

2007-02-07 Thread Jürgen Krämer
Hi, A.J.Mechelynck wrote: Eric Leenman wrote: I read on the script that I need to follow the 6 points mentioned. [start of point 1] 1. Download the workspace.zip file and unzip the files to the $HOME/.vim or the $HOME/vimfiles or the $VIM/vimfiles directory. This should unzip the

Re: break option lines

2007-02-06 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] schrieb: is it possible in a vimrc for comma separated option strings like this one below to break: set dictionary=$VIM\SQLDict\BPMS_Stamm.txt,$VIM\SQLDict\BPMS_Mandant.txt,$VIM\SQL Dict\CBS_2005.txt,$VIM\SQLDict\ICCS_Net_Strommixer.txt,$VIM\SQLDict\DBS.txt,$

Re: jump from word to word

2007-01-30 Thread Jürgen Krämer
Hi, Claus Atzenbeck wrote: w jumps from word to word. However, it considers German umlauts (äöüÄÖÜ) and German sz (ß) as word end. For example, w stops at the indicated positions: Schwämme überall. ^ ^^ ^^ ^ However, I would desire instead: Schwämme überall.

Re: 7.0.188 - problem with directory browser?

2007-01-27 Thread Jürgen Krämer
Hi, Bill McCarthy wrote: After sending my response, I received the following alien language (probably German from the .de) email. I copied no recipient at @youngs.de. Perhaps a member of this list is sending away from office responses to the list? From: [EMAIL PROTECTED] Die

Re: disable é map in tex-suite

2007-01-23 Thread Jürgen Krämer
Hi, neolistic wrote: It don't works, I tried iunmap é iunmap M-i and I can see the map with :imap i é@PlugTex_InsertItemOnThisLine from :help map-listing | When listing mappings the characters in the first two columns are: | | CHAR MODE~ | Space

Re: change syntax highlighting

2007-01-10 Thread Jürgen Krämer
Hi, Geue, Stephan wrote: Hello, I would like to change the VIM colors, i.e. the C/C++ mapping of VIM colors to Xterm colors. First, I changed a few lines within /etc/X11/app-defaults/Xterm-color but this also changed the color scheme of the shell which is not my intention - and in some

Re: Indendation of Progress code

2007-01-10 Thread Jürgen Krämer
Hi, Thomas Michael Engelke schrieb: I have a problem with indendation of a piece of Progress code. It's representative of a bit of indendation problems I have now and again, always indenting way too far without any visible cause. I hope someone can reproduce the issue. I've attached the

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Jürgen Krämer
Hi, Suresh Govindachar wrote: A.J.Mechelynck wrote Suresh Govindachar wrote: Start gvim via command: c:\opt\vim\vim70\gvim.exe --noplugin -u NONE -U NONE :saveas boo.c :set filetype=c Enter following text: if(1) { /*

Re: % jumping over {} in c-files in the midst of {{{ folds

2007-01-08 Thread Jürgen Krämer
Hi, Suresh Govindachar wrote: Jürgen Krämer wrote: I don't see a place in the help files where % is documented to skip comments. You can only force it to skip strings by removing % from cpoptions (see :help cpo-%). In the steps I gave to reproduce the bug

Re: GVIM 7-0-178 seizing up

2006-12-19 Thread Jürgen Krämer
Hi, Steve Hall wrote: From: zzapper david tvis co.uk, Tue, December 19, 2006 6:53 am http://downloads.sourceforge.net/cream/gvim-7-0-178.exe?modtime=1165578469big_mirror=0 Downloaded above by following links from vim.org It works fine with most files but cannot edit .vimrc (unless I

Re: Linewise-only vnoremap

2006-12-07 Thread Jürgen Krämer
Hi, Vigil wrote: vnoremap doesn't appear to care whether the text was selected blockwise or linewise. How can I make a map work in linewise mode only? you can use the visualmode() function and wrap your actual mapping with an if-statement: :vnoremap F2 :c-uif visualmode() == 'V' bar echo

Re: add yanked line to already yanked lines

2006-11-23 Thread Jürgen Krämer
Hi, Daniel Nogradi wrote: I often find myself in need of copying (yanking) non-consecutive multiple lines so that I can paste them somewhere else in a consecutive way. Several lines are scattered around the file and would like to collect them kind of. At the moment I go to to first

Re: sorting columns alphabetically

2006-11-22 Thread Jürgen Krämer
Hi, Vim Visual wrote: I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after the surname (3rd column). How can I do that? I know how to sort it after the first one (visual + !sort) with VIM 7 you can sort inside VIM:

Re: set backupext dynamicly

2006-11-10 Thread Jürgen Krämer
Hi, Eric Leenman wrote: I've tried it but then I get the message : Error E510 'Can't backup file (add! to override) I have a clean gvim70.exe downloaded today. I've added two lines to my _vimrc, see below for the complete file. Do I need to do something with backup and write backup?

Re: Replacing '%' in a text file

2006-10-09 Thread Jürgen Krämer
Hi, Muhammad Farooq-i-Azam wrote: I have to replace every occurrence of % in a file with % |. I have been effectively replacing text using the following construct: :%s/\text\/replacement/g However when I try to do the following: :%s/\%\/% |/g I am greeted by an error message.

Re: bug in map expr and complete()

2006-10-06 Thread Jürgen Krämer
Hi, Hari Krishna Dara wrote: The help on complete() gives an example as a usage pattern which seems to be very useful, but it doesn't work. Here is a slightly modified example to avoid breaking the lines in email transmission: inoremap expr F5 ListWeeks() func! ListWeeks() call

Re: toggling keymap

2006-10-04 Thread Jürgen Krämer
Hi, Sven Brueggemann schrieb: where do I find CTRL-^ on a German keyboard? I know that I can map it, but I'd like to see if the standard keystroke fits my needs before changing it. on my keyboard and with Windows XP it's CTRL-6. Regards, Jürgen -- Sometimes I think the surest sign that

Re: SR

2006-09-22 Thread Jürgen Krämer
Hi, Eric Leenman schrieb: I have a file where I deleted all lines that don't contain a certain pattern For example I want to delete all lines that don't contain XXX and YYY. Before: [start of file] abcde XXX fghij YYY 12345 AAA 67890 BBB klmno XXX pqrst YYY 09876 XXX 54321 BBB

Re: sorting lines on lenght of characters

2006-09-22 Thread Jürgen Krämer
Hi, Eric Leenman wrote: Is it possible to sort lines on line length? Shortes firsts, longest last? If so how do you do this? I would put the line lengths at the front of each line with leading zeroes, sort the buffer, and remove the line lengths. With Vim 7.0 you can do this with the

Re: What is the key nameing of...

2006-09-21 Thread Jürgen Krämer
Hi, Meino Christian Cramer wrote: I often have the problem to guess, how a certain keysequence is named by the syntax of the vim scripting language. Recently I tried to map Control-CursorUp but it simply does not work for me. Is there any function/script/hack/trick/* like Ctrl-v

Re: Selective line deletion

2006-09-18 Thread Jürgen Krämer
Hi, Fabien Meghazi wrote: This is a stupid question about a basic feature but I don't have yet enough knowledge with vim. How can I delete all lines of a buffer where at least one instance of foobar is found ? eg the output of: grep -v file.txt foobar :g/foobar/d Regards,

Re: vim | insert filename into file

2006-09-14 Thread Jürgen Krämer
Hi, Nikolaos A. Patsopoulos wrote: how can anyone add the filename in the file in ex-mode? C-R% and %p works only in normal mode :put % Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact

Re: Counts for mapping

2006-09-11 Thread Jürgen Krämer
Hi, Tom Carr wrote: Let's say I have the following mapping: nnoremap = 3l Now if I type =, it moves 3 characters to the right, as expected. Now if I type 1=, it moves 13 characters to the right instead of 3. Now if I type 3=, it moves 33 characters to the right instead of 9. Any idea

Re: testing patchlevel from script

2006-09-10 Thread Jürgen Krämer
Hi, Yakov Lerner wrote: How can a script test for specific patchlevel ? For example, I have vim 7.0.86 and I need to check in the script that patchlevel is = 7.0.86. But v:version is 700. How ? It would be nice if to have patchlist available through some v: variable. you can check for a

Re: expr returning path of sourced script?

2006-08-26 Thread Jürgen Krämer
Hi, sgp wrote: On Windows gvim 7.0 I want to :set complete= to a file in the same folder of a syntax file c:\path\to\syntax\syn.vim c:\path\to\syntax\keywords.txt what expression can I use with :exe to achieve that? I tried adding exe set

Re: vim doesn't create backups of files edited in /tmp

2006-08-25 Thread Jürgen Krämer
Hi, Alexander Skwar wrote: In my ~/.vimrc, I've got, among other settings, set backup. Because of this, vim creates backup files in the current directory. That's good! But when I edit a file which is in /tmp, there's no backup file left behind. Why's that so and how do I change this?

Re: saving unnamed buffer

2006-08-21 Thread Jürgen Krämer
Hi, A.J.Mechelynck wrote: Yakov Lerner wrote: I fixed another bug, the '*' missing in the autocommand: au BufWritePre * if(expand('%') == '') | exe file .TempName() | endif au BufWritePre * if(expand('%') == '') | exe saveas .TempName() | endif , but still no luck. I'm still

Re: renaming unnamed buffer at creation

2006-08-21 Thread Jürgen Krämer
Hi, Yakov Lerner wrote: Now that my attempt to write unnamed buffer under name /tmp/N failed, I want to autoname empty buffer. My first attempt does not work. Autoevent is ot invoked. function! TempName() let x=1 while filereadable(/tmp/.x) let x = x + 1 endwhile

Re: E505, File is write-protected

2006-08-21 Thread Jürgen Krämer
Hi, Wolfgang Schmidt wrote: when I try to write (:w) a certain buffer, I get E505 (~ file XXX is write-protected, override with w!). The protection seems to be set by Vim, not the OS (WinXP). So I looked for the readonly option value, but it's set to noreadonly. I also checked write,

Re: renaming unnamed buffer at creation

2006-08-21 Thread Jürgen Krämer
Hi, Charles E Campbell Jr wrote: Yakov Lerner wrote: Now that my attempt to write unnamed buffer under name /tmp/N failed, I want to autoname empty buffer. My first attempt does not work. Autoevent is ot invoked. The autocmd system is always invoked based on the buffer name. Thus

Re: tabedit readonly

2006-08-18 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: How do I open a new file in a new tab, but in the read only mode. :tabedit -R file_name Does not seem to work. :tab sview file_name Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: gP-confusion

2006-08-16 Thread Jürgen Krämer
Hi, Meino Christian Cramer wrote: From: Yakov Lerner [EMAIL PROTECTED] Subject: Re: gP-confusion Date: Wed, 16 Aug 2006 12:54:52 + On 8/16/06, Meino Christian Cramer [EMAIL PROTECTED] wrote: ...and what is the difference between y$$gp and y$$gP then. Or in other

Re: non-greedy pattern matching

2006-08-16 Thread Jürgen Krämer
Hi, Wolfgang Schmidt wrote: I'm trying to do a regexp replacement. My original line is ignore MATCH1 ignore_again MATCH2 I want to match MATCH1 and MATCH2, so here's my trial: s/^ignore \(.*\{-}\) .*\{-} \(.*\)/matched:\1,\2/gc I tried to use \{-} to make the .* match non-greedy,

Re: using filereadable function

2006-08-16 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: I am trying to use the filereadable function. My code looks like given below (This code is part of a function) - if (!filereadable(a:dataFile) ^ ^ remove the quotes. let @/ = rs_searchString keepjumps exec

Re: half of hlsearch

2006-08-11 Thread Jürgen Krämer
Hi, Meino Christian Cramer wrote: I am searching for a way to switch hlsearch half on (or half off...). Normally hlsearch is nice when searching regulary for a keyword or phrase. On the other side it highlight half of my text, if I do things like y/space .

Re: Patch (Unofficial): Malformed characters in menu and toolbar when using zh_CN.GBK encoding under Linux

2006-08-10 Thread Jürgen Krämer
Hi, Max Dyckhoff wrote: Bram, you have an overflow in your signature :) Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 1:44 PM Subject: Re: Patch (Unofficial): Malformed characters in menu and toolbar when using

Re: Copy a line of text without the LF

2006-08-08 Thread Jürgen Krämer
Hi, Meino Christian Cramer schrieb: I am using vim 7.0.42 on a Linux system. I want copy a complete line of text *without+ the final LF at the end, so it is possible to insert it elsewhere in the midth of text. [snip] just use y$ Regards, Jürgen -- Sometimes I think the surest

Re: howto set magic=very?

2006-08-08 Thread Jürgen Krämer
Hi, Linda W wrote: I couldn't figure out what flag to use to turn on the very magic flag by default. Could someone maybe tell me where I should have looked to find it? :-) there is no such flag. Everytime you want to use a very magic pattern you have include \v inside the pattern.

Re: Copy a line of text without the LF

2006-08-08 Thread Jürgen Krämer
Hi, Meino Christian Cramer wrote: From: Jürgen Krämer [EMAIL PROTECTED] Subject: Re: Copy a line of text without the LF Date: Tue, 08 Aug 2006 10:56:24 +0200 Meino Christian Cramer schrieb: I am using vim 7.0.42 on a Linux system. I want copy a complete line of text *without

Re: Display the current character

2006-08-08 Thread Jürgen Krämer
Hi, Ben lemasurier wrote: Is there a way to dispaly the current cursor position? e.g,, character 23. :set ruler Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin)

Re: Search and Replace with a Regular Expression

2006-08-03 Thread Jürgen Krämer
Hi, Marv Boyes wrote: Hello, all. I've been tasked with migrating a large MS Works database into the 21st century. The thing's original setup didn't enforce any sort of standardization in data entry, so there are nearly as many different formats and styles in the data as there have been

Re: Sorting a file

2006-08-02 Thread Jürgen Krämer
Hi, Eric Leenman wrote: I have a long file which contains like: ## | 0123456 ## Line 18 | 123 Line 19 |abc

Re: Deleting a repetative pattern

2006-08-02 Thread Jürgen Krämer
Hi, Eric Leenman wrote: I have a file which contains lines like below Line 18 |200 040 200 200 200 051 200 1C2 200 2E2 Line 18 | 200 040 200 040 200 052 200 1B9

Re: Deleting a repetative pattern

2006-08-02 Thread Jürgen Krämer
Hi, Eric Leenman wrote: I see that my the 'ASCII-layout' is not what it should be. The command deletes all 200. How can I give the command to deleted only the 1st, 3rd, 5th, 7th, ect.. 200? And leaving (if any) the 2nd, 4th, 6th, ect. %s/\200\\(\%(.\{-\}\200\\)\?\)/ \1/g this

Re: au! failure in vimrc

2006-07-31 Thread Jürgen Krämer
Hi, Bill McCarthy wrote: Suppose two plugins define autocmds, so after start Vim, :au FuncUndefined displays: * call AsNeeded(1,expand(afile)) Tlist_* source C:\vim\vimfiles\plugin\taglist.vim Now I add a line to my _vimrc: au! FuncUndefined * call

Re: Add to jumplist

2006-07-31 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: Is there a function, to add the line under the cursor to the jump-list ? This may sound strange. I am coding a function in which from the current line, the cursor moves to a different line or a file altogather. I want a way to come back if needed by the

Re: Clearing Jumplist

2006-07-31 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: When I open a particular file, I want to clear all the jumplist. How do I do that ? Is there any function when called clears the jumplist. I don't think there is a function for this. The best way I could think of is to set the jumplist to the same

Re: Visual select / paste behaviour

2006-07-28 Thread Jürgen Krämer
Hi, Roel Vanhout wrote: Take the following example: file file_id=myidc:\test.txt/file When the cursor is on the 'm' of 'myid' and I press 'vw', a word is selected in visual mode. However, the at the end of 'myid' is also selected. How do I change the list of 'word separators'? to

Re: Visual select / paste behaviour

2006-07-28 Thread Jürgen Krämer
[Resending this because I noticed that the original mail had been encoded with base64 by either my mail client or a server on the way to the mailing list.] Hi, Roel Vanhout wrote: Take the following example: file file_id=myidc:\test.txt/file When the cursor is on the 'm' of 'myid' and

Re: Matching non-capitalized words?

2006-07-26 Thread Jürgen Krämer
Hi, Tim Chase wrote: :%s/\[a-z]\+\//gI another option is to include \C in the regular expression itself: :%s/\C\[a-z]\+\//g One should be careful about this, as the help states: :help /\C Note that 'ignorecase', \c and \C are not used for the character

Re: search and result

2006-07-25 Thread Jürgen Krämer
this ? use the search() function: if search('/^\w\+\t\w\+') != 0 do something endif Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61

Re: search and result

2006-07-25 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: I am actually having a little bit complicated situation. Inside a search() fucntion, can I use, variables. The part of the code is given below. let rs_sig = expand(cword) exec '1' exec '/^\s*module\s\+\w\+' let rs_line=getline(.) let

Re: Matching non-capitalized words?

2006-07-25 Thread Jürgen Krämer
Hi, Tim Chase wrote: Make sure 'ignorecase' is off: :set noignorecase :%s/\[a-z]\+\//g If you don't want to bung with your vim-wide (or bufferwide) settings, you can always just change your :s to include the I flag. :%s/\[a-z]\+\//gI another option is to include \C in

Re: How can I know difference between Vim6.3 and Vim 6.2?

2006-07-21 Thread Jürgen Krämer
between the minor versions? :help version-6.3 Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-Weilheim

Re: Incompatible change in 7.0 which were not mentioned

2006-07-20 Thread Jürgen Krämer
. Is this a bug or a feature? from :help version7 (lines 156 to 158): | When defining a user command with |:command| the special items could be | abbreviated. This caused unexpected behavior, such as li being recognized | as line1. The items can no longer be abbreviated. Regards, Jürgen -- Jürgen

Re: search history - more questions

2006-07-19 Thread Jürgen Krämer
?? There is a histdel() function. And finaly another question - How do I put the result of the following command in a variable. :his / -2 :let var = histget('/', -2) Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: OPen a dialog box

2006-07-19 Thread Jürgen Krämer
in comments into it. I want to do almost the samething. Looked into ccase.vim, but no clues. have a look at :help input() :help inputdialog() Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres

Re: Shortest Pattern Match

2006-07-12 Thread Jürgen Krämer
united (see :help /\ze for the special meaning of \ze) Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim

Re: substitute a char with newline

2006-07-12 Thread Jürgen Krämer
denotes the NUL character which is used internally to represent end-of-line. To insert newlines you have to use \r: :%s/@/\r/g Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2

Re: substitute a char with newline

2006-07-12 Thread Jürgen Krämer
is written by inspecting the fileformat option. Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-Weilheim

Re: Irritating column numbers with encoding=utf-8

2006-07-06 Thread Jürgen Krämer
Hi, Bram Moolenaar wrote: Jürgen Krämer wrote: with 'encoding' set to utf-8 there is a quite confusing (to me) difference between the column number and my expectations (supported by the virtual column number) if there are non-ASCII characters on the line. I don't know what the intended

Re: Irritating column numbers with encoding=utf-8

2006-07-05 Thread Jürgen Krämer
Hi, James Vega wrote: On Wed, Jul 05, 2006 at 11:50:51AM +0200, Jürgen Krämer wrote: with 'encoding' set to utf-8 there is a quite confusing (to me) difference between the column number and my expectations (supported by the virtual column number) if there are non-ASCII characters

Re: problem in understading 0tag usage

2006-06-28 Thread Jürgen Krämer
nothing. 'cscopetag' is a boolean option. You have to append a question mark to query its state, otherwise you would/did just set it: :verbose set cst? Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-WeilheimFax: +49 / 74 61 / 93 53 - 99

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
) Could something be hardcoded in my settings? I'm running vim 6.4.6 the default version with ubuntu 6.06. maybe the 'gdefault' option is on. What does :verbose set gdefault? output? Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: Replace all on a line

2006-06-26 Thread Jürgen Krämer
freundlichen Grüßen, Jürgen Krämer -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-WeilheimFax: +49 / 74 61 / 93 53

Re: What might cause .vimrc not to be read

2006-06-22 Thread Jürgen Krämer
Hi, [EMAIL PROTECTED] wrote: Marc Weber [EMAIL PROTECTED] writes: No idea what might cause this but you might try * adding alias gvim=gvim -c source ~/.vimrc I'm not using gvim. I work in X at home machine but even then I use vim. But a lot of what I do is from a bash cmdline

Re: Extra spaces after reformatting.

2006-06-22 Thread Jürgen Krämer
Hi, ChengHsin Hsu wrote: I recently start using vim for writing tex files. I found that an extra space is always added between lines after reformatting (e.g., gq}). For example: Original text: a...b c...d d...e Reformatted text: a...b c...d d...e Is there an option that I

Re: Differences in the gf command between Windows and Linux

2006-06-21 Thread Jürgen Krämer
that command. Does anyone have a clue as to how I can do this? Or would this be considered a bug? have a look at :help 'isfname' This options determines which characters are valid in a file name. To remove the brackets execute :set isfname-=[ :set isfname-=] Regards, Jürgen -- Jürgen Krämer

Re: gf , isfname and @

2006-06-13 Thread Jürgen Krämer
() (i.e., a library function) returns true. Have a look at :help 'isfname' and search for the first @ below the different default values of this option. There you'll find an explanation and how to insert a @ into this option. Regards, Jürgen -- Jürgen Krämer

Bug with gU and German sharp s?

2006-06-08 Thread Jürgen Krämer
, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-WeilheimFax: +49 / 74 61 / 93 53 - 99

Re: what is wrong with this autoload var usage?

2006-06-07 Thread Jürgen Krämer
function scope: '. g:t#var endfunction Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-Weilheim

Re: vimgrep only .c/.h/.cpp extensions?

2006-06-07 Thread Jürgen Krämer
/**/*.{[ch],cpp} work for you? Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-WeilheimFax

Re: page scrolling

2006-05-18 Thread Jürgen Krämer
Hi, Ilya Hegai wrote: please, point me to the command, which allow to scroll page line by line, like in mc viewer (F3) with arrow keys :help CTRL-E :help CTRL-Y Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: Vertical selection

2006-05-18 Thread Jürgen Krämer
Hi, Baha-Eddine MOKADEM wrote: Is it possible to make a vertical selection in a text, to have a rectangular selection in the text ? If so, how ? :help ctrl-v Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: C-W C-] to split vertically

2006-05-15 Thread Jürgen Krämer
Hi, Salman Khilji wrote: This does not work. Is it a bug that the following still splits horizontally instead of vertically? :vertical execute normal ^W] :nnoremap c-w] :vertical wincmd ]cr Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH

Re: Maximizing the vim window in not-english Windows XP

2006-05-10 Thread Jürgen Krämer
not work? In the first case: the letter required is the one underlined in the window's system menu entry that maximizes the window. In the second case please show us what you have tried so far. Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: Maximizing the vim window in not-english Windows XP

2006-05-10 Thread Jürgen Krämer
a :simalt DÖ opens the Edit File dialog. Can you test this with a similar menu entry by replacing the uppercase O-Umlaut with a greek letter? If this works then the system menu might be treated differently. Rgards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co

Re: Inexplicable Error Running Script

2006-05-10 Thread Jürgen Krämer
(autocmd) endif E n d script autoci When I source this script under Vim 7.0 I receive the following errors: line 20: E126: Missing :endfunction line 21: E171: Missing :endif Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KG

Re: Indentation and blank lines

2006-05-09 Thread Jürgen Krämer
: :inoremap cr crXbs Regards, Jürgen -- Jürgen Krämer Softwareentwicklung HABEL GmbH Co. KGmailto:[EMAIL PROTECTED] Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15 78604 Rietheim-WeilheimFax: +49 / 74

Re: fast file opening / find file as you type

2006-05-09 Thread Jürgen Krämer
for achieving this? Pressing a key combination, typing in some letters, hitting enter and you opened another file? though I don't think that VIM uses indexing, maybe :help :find :help 'path' is what you have been looking for. Regards, Jürgen -- Jürgen Krämer