Re: vim7: elflord got different

2006-05-21 Thread Yakov Lerner
On 5/21/06, Jabba Laci <[EMAIL PROTECTED]> wrote: Hi, > AFAIK, the colorscheme script is the same. However, let's try to guess > what might cause a single colorscheme to display differently on > different machines... > > Gvim or console Vim? How many colors does the colorscheme require? Are > th

Re: cindent/smartindent, >> and #

2006-05-21 Thread Yakov Lerner
On 5/21/06, Andre Majorel <[EMAIL PROTECTED]> wrote: Is there any way to have the functionality of cindent/smartindent and still have ">>" indent lines beginning with "#" ? Try this: :set cinkeys-=# vim manual says: If the 'smartindent' option is on, or 'cindent' is on and 'cinkeys' conta

missing system functions in .vim/systags

2006-05-21 Thread Yakov Lerner
I created systags per ':help ft-c-omni' suggestion: ctags -R -f ~/.vim/systags /usr/include /usr/local/include and added systags to &tags (set tags+=~/.vim/systags). Now I find that system() does not appear in ~/.vim/systags generated as above. This is Linux, and prototype for system() appears

Re: Reload file?

2006-05-20 Thread Yakov Lerner
On 5/20/06, David Woodfall <[EMAIL PROTECTED]> wrote: Just wondered if there is a way to reload a file. I sometimes edit files, save them, and then run a process that may change the file. I'd like to know if there is a way to reload the changed file into vim from within. :e command will reload

Re: Extending Vim7 with plugins

2006-05-20 Thread Yakov Lerner
On 5/19/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: IMHO the help files are only for those, who are know already, what they are searching for. A newbie gets hopelessly lost. Meino, The vim learning path is eaier for those who used "old vi". Those who used vi feel at home in vim. But

Re: Extending Vim7 with plugins

2006-05-19 Thread Yakov Lerner
On 5/19/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: I am only wishing not to be urged to study electrotechnics before I will be able to change a light bulb. On the glass-full side, it looks like you learned already to operate the light switch. That's good. Are you asking now how many

Re: Extending Vim7 with plugins

2006-05-19 Thread Yakov Lerner
On 5/19/06, Robert Hicks <[EMAIL PROTECTED]> wrote: Is there some tutorial out there for a newbie starting with Vim7 to learn how to program for it? The "Write a Vim script" tutorial is bundled with vim. You only need to know how to open it in vim. Here is how: :he usr_41 vim will open docum

Re: automatic gvim start and problems

2006-05-19 Thread Yakov Lerner
On 5/19/06, roberto <[EMAIL PROTECTED]> wrote: On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > > On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: > > > actually this is what happens: > > >

Re: search next, prev while in /pattern editing

2006-05-18 Thread Yakov Lerner
On 5/18/06, Eric Arnold <[EMAIL PROTECTED]> wrote: On 5/18/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > I think this does what you want. You only need to use "/", though, > since you can now go up and down while in "/" : > > cmap N:redraw/ > cmap n:redraw/ Thanks to everybody who responded

Re: automatic gvim start and problems

2006-05-18 Thread Yakov Lerner
On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: > On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > > Opens two windows for me: (1) polar_bal.c and (2) polar_angle_d.c > > Is this good or bad ? > >

Re: automatic gvim start and problems

2006-05-18 Thread Yakov Lerner
On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > Opens two windows for me: (1) polar_bal.c and (2) polar_angle_d.c > Is this good or bad ? > > Yakov > actually this is what happens: it opens one window splitted in t

Re: Shell command history in VIM?

2006-05-18 Thread Yakov Lerner
On 5/18/06, Wijaya Edward <[EMAIL PROTECTED]> wrote: Is there a way to enable history view of all the shell command executed under vim, i.e. with :! shell_command In an indirect way, sort of, yes. You need to, first, pull all history lines (using either redir+:history, or using histget() functi

Re: clearing the command line

2006-05-18 Thread Yakov Lerner
On 5/18/06, Eric Arnold <[EMAIL PROTECTED]> wrote: I''ve been chasing this for a while, so I might as well ask, even though it seems like a stupid question. What's the right way to clear the command line between echo blocks in a script, without causing a full screen redraw? Everything I try eve

search next, prev while in /pattern editing

2006-05-18 Thread Yakov Lerner
I am using incsearch. I wanted to define 2 mappings that act while I am in /search pattern editing mode, and that take me to next/prev match while leaving the cursor in /pattern commandline. Is it possible ? Yakov

Re: automatic gvim start and problems

2006-05-18 Thread Yakov Lerner
On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: On 5/18/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: > > # "start.sh" > > # session for polar_angle_* # > > /usr/bin/gvim -S ~/codes/polar_angle/Ses

Re: CurorLine, set cursorline: slow, slower, slowest ?!

2006-05-18 Thread Yakov Lerner
On 5/18/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: Hi, VIM has a neat feature to highlight the line the cursor is in. This makes reading wide texts easier. Unfortunatley (at least with my system) moving the cursor become very slow. Is there a way out (a config trich for example

Re: automatic gvim start and problems

2006-05-18 Thread Yakov Lerner
On 5/18/06, roberto <[EMAIL PROTECTED]> wrote: hi all i work with gvim 6.3.71 using 3-4 windows at the same time; i save them all using the following script that is automatically executed upon start of kde 3.3 being saved in ~/.kde/Autostart # "start.sh" # session for polar_angle_* # /usr/bin/

Re: I don't have $VIMRUNTIME after installation

2006-05-18 Thread Yakov Lerner
On 5/18/06, victor NOAGBODJI <[EMAIL PROTECTED]> wrote: I'm using ubuntu breezy 5.10 I have installed vim70. I don't have this environment variable. The user manual makes a lot of reference to it. Help me. It's define *under* vim/gvim, not outside of it. Try: vim :echo $VIMRUNTIME you'll

Re: page scrolling

2006-05-18 Thread Yakov Lerner
On 5/18/06, Jürgen Krämer <[EMAIL PROTECTED]> wrote: 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 Also try :set so=999 and arrow-up, arrow-down Yakov

Re: using variables in ! command

2006-05-17 Thread Yakov Lerner
On 5/18/06, Jared <[EMAIL PROTECTED]> wrote: This should be really easy, but I can't find an example in the help that shows what I'm trying to do. I'm mapping an external command to a function key, but I can't figure out how to include a variable in the command. Specifically, I want to specify t

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Yakov Lerner
On 5/17/06, Baha-Eddine MOKADEM <[EMAIL PROTECTED]> wrote: Hi all, I have a file which behaves differently whether edited with win32 Notepad and gVim. When opened in notepad I got several lines, which is the most convenient "layout" for me, but when opened in gVim I got the file in only one lin

Re: , maparg(), and UTF-8

2006-05-16 Thread Yakov Lerner
On 5/17/06, Luc Hermitte <[EMAIL PROTECTED]> wrote: Hello, I have a problem with an old hack that works fine in latin1, but starts to cause problems in UTF-8. The hack helps to replace activation key-sequences from i-mappings with their mapped value, which are actually calls to script-local fun

Re: Calling through a function reference with a variable argument list

2006-05-16 Thread Yakov Lerner
On 5/16/06, Bob Hiestand <[EMAIL PROTECTED]> wrote: I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function references that define common operations for each source control system in

Re: ***SPAM*** about switch between buffers

2006-05-15 Thread Yakov Lerner
On 5/15/06, Strange <[EMAIL PROTECTED]> wrote Hi, vimmers. Ones I have two buffers in a window, I just do some changes in the first buffer, use :w to save and use :bn! to switch to the next buffer. Then use :bp! to switch back the first buffer, now all the undo history is unavailable. It seems w

Re: triggering autoread

2006-05-15 Thread Yakov Lerner
On 5/15/06, Eric Arnold <[EMAIL PROTECTED]> wrote: I guess I was hoping for "tail -f" behavior. I've got a process that's writing stuff I want in Vim, but if it fails then I want to know it. As it is, I can map a key, or use CursorHold, and keep hitting it when I want to see the output. It wo

Re: Vertical splits

2006-05-15 Thread Yakov Lerner
Salman, Try the following patch. --- ex_docmd.c.000 2006-05-15 16:04:10.0 + +++ ex_docmd.c 2006-05-15 16:03:36.0 + @@ -1709,6 +1709,7 @@ */ save_cmdmod = cmdmod; vim_memset(&cmdmod, 0, sizeof(cmdmod)); +cmdmod.split |= WSP_VERT; /* * Repeat

Re: triggering autoread

2006-05-15 Thread Yakov Lerner
On 5/12/06, Eric Arnold <[EMAIL PROTECTED]> wrote: Is there any way to cause autoread to trigger more often? As far as I can tell, it only triggers on a focus change (just a guess). So, if some external program is slowly writing to the file, you don't get the updates (in Windows anyway) unless

Re: Slow startup

2006-05-14 Thread Yakov Lerner
? Yakov On 5/12/06, Jeffrey Pratt <[EMAIL PROTECTED]> wrote: It works; thanks. So, I assume it was trying to connect to the X server. Maybe offtopic, but can you tell me why X is slow, or point me somewhere that could tell me? On 5/11/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:

Re: echo question

2006-05-14 Thread Yakov Lerner
On 5/14/06, Jared <[EMAIL PROTECTED]> wrote: On 5/14/2006 1:37 AM, Gerald Lai wrote: > On Sun, 14 May 2006, Yakov Lerner wrote: >> Try 2 things >> (1) add :redraw before the :echo in question >> (2) if that doesn't help, make message shorter. >> I noticed

Re: echo question

2006-05-13 Thread Yakov Lerner
On 5/14/06, Jared <[EMAIL PROTECTED]> wrote: I have a simple question that I can't seem to figure out. When I use the echo command to echo a statement on my open window, it simply displays that message in the status bar. However, if I use echo in a function, it adds "Please ENTER or type comman

Re: :bd should NOT close the Window

2006-05-12 Thread Yakov Lerner
On 5/12/06, Salman Khilji <[EMAIL PROTECTED]> wrote: When you have a window split, issuing a :bd command closes the buffer AND one panes of the split window as well. I like to have my maximized window split vertically in 2 panes all the time and would NOT want the :bd command to close any of the

Re: $HOME\_vimrc isn't read when file is opened over context menu

2006-05-12 Thread Yakov Lerner
On 5/12/06, Alexander Skwar <[EMAIL PROTECTED]> wrote: I installed vim 7.0 on a Windows XP machine. My $HOME\_vimrc file contains, among other things, the following line: C:\>type "%HOME%\_vimrc" | find "color" colors koehler When I open gvim by directly executing C:\Program Files\Vim\vim70\gvi

Re: Slow startup

2006-05-11 Thread Yakov Lerner
On 5/12/06, Jeffrey Pratt <[EMAIL PROTECTED]> wrote: Hi: I just built Vim 7 on Cygwin, linked with ncurses, and it takes 54 sec to start in rxvt! (It starts normally if done from the regular Cygwin Bash Prompt.) I've built it on two other machines with the same configuration options, and neither

Re: Question about using variable with RegEx counter

2006-05-11 Thread Yakov Lerner
On Wed, May 10, 2006 at 02:53:20PM -0600, Shaun Cummins wrote: :syntax region Keyword start="^\w\+\s\+\z(\d\+\)" end=#\(\s*\(".\+"\|'.\+'\).*\n\)\{\z1\}# How about :syntax region Keyword start="^\w\+\s\+\z(\d\+\)" \ end=#^\s*"[A-Z]*\z1"# ? Yakov

Re: vim70 and insert tab -

2006-05-11 Thread Yakov Lerner
On 5/11/06, Emmanuel Sixou <[EMAIL PROTECTED]> wrote: So I am debugging: imap gives me: i @=20_InsertSmartTab() and I don't know where it comes from. grep InsertSmartTab on all the files did not find anything. Must come from some plugin you're using. Do :scriptnames Yakov

Re: vim70 and insert tabs

2006-05-11 Thread Yakov Lerner
On 5/11/06, Emmanuel Sixou <[EMAIL PROTECTED]> wrote: No matter its value, in both linux and windows, this behavior is the same. What's value of et option (set expandtab?') ? Yakov Lerner

www.vim.org/tips

2006-05-10 Thread Yakov Lerner
I asked to resolve this inconvenience on www.vim.org/tips website several years ago. I am repeating my plea again. It is very inconvenient that it's impossible to edit my tips on www.vim.org/tips. There are always improvements, additions, reactions user's feedback, typos that one wants to fix. T

Re: vim70 and insert tabs

2006-05-10 Thread Yakov Lerner
On 5/11/06, Emmanuel Sixou <[EMAIL PROTECTED]> wrote: Hi vimmers, vim70 inserts spaces instead of tabs after a non tab char. This behavior differs from vim64 with the same setting. I went through the help on the different tab related options but could not find something that would change this beh

Re: status bars

2006-05-10 Thread Yakov Lerner
On 5/10/06, Sergei Gerasenko <[EMAIL PROTECTED]> wrote: > :hi StatusLine | hi StatusLineNC I'm sorry, maybe I'm not understanding something completely, but the highlighting works correctly already -- but only when there's one file open. If there are two or more windows, the best I can so far

Re: Syntax Highlighting problem

2006-05-10 Thread Yakov Lerner
On 5/10/06, Jerin Joy <[EMAIL PROTECTED]> wrote: Hi, I use gvim as my default editor. My source files are in a non standard language whose syntax is similar to Verilog. When I open files from command line in independent gvim windows the syntax highlighting uses the verilog syntax which is what I

Re: fast file opening / find file as you type (fwd)

2006-05-09 Thread Yakov Lerner
On 5/9/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: On Tue, 9 May 2006 at 9:32pm, Yakov Lerner wrote: > Benjamin Reitzammer <[EMAIL PROTECTED]> wrote: > > I'm forwarding this to the list so that everyone can help :) > > > > -- Forwarded messag

Re: Vim 7 mapping change?

2006-05-09 Thread Yakov Lerner
On 5/9/06, Robin Becker <[EMAIL PROTECTED]> wrote: I am trying out Vim 7.0 and see a major difference in the way my old mappings work. I have for many years mapped g to G so I can use the lower case g to jump around the file instead of shift+g. Under 6.4 and earlier that works well, but with vim

Re: fast file opening / find file as you type (fwd)

2006-05-09 Thread Yakov Lerner
Benjamin Reitzammer <[EMAIL PROTECTED]> wrote: I'm forwarding this to the list so that everyone can help :) -- Forwarded message -- Date: Tue, 9 May 2006 19:36:45 +0200 From: Benjamin Reitzammer <[EMAIL PROTECTED]> To: Gerald Lai <[EMAIL PROTECTED]> Subject: Re: fast file opening

Re: fast file opening / find file as you type

2006-05-09 Thread Yakov Lerner
On 5/9/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote: On 5/9/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 5/9/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote: [...] > > Now my question: > > Is there something similar for vim? Or do you guys have

Re: fast file opening / find file as you type

2006-05-09 Thread Yakov Lerner
On 5/9/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote: Hi, I've searched the archive and asked many search engines for help, but I still haven't found what I'm looking for (well, I'll stop the humming, singing instantly ;) Currently I switch between jEdit and vim on a hourly basis, depending

Re: Squelching DOS Window & Swap File on SCP Transfer

2006-05-07 Thread Yakov Lerner
On 5/7/06, Max Cantor <[EMAIL PROTECTED]> wrote: Hi all, I'm sure this has been brought up before because I remember reading it, but I don't remember the solution (if there was one). I'm successfully editing my remote files locally using the SCP net plugin, but whenever I write a file, I have tw

The :hi MatchParen situation

2006-05-07 Thread Yakov Lerner
# This mail has correct subject. Please ignore my other email # with weird subject. It was some cut&paste error. I am changing and trying different of colors for 'hi MatchParen' , and inevitably I get into this problem: I get into situation when the paren is *already* that color!!! and thus highl

'function! Str2hex(s) let result="[".strlen(a:s)."] " let k=0 while k < strlen(a:s) let code = char2nr(a:s[k]) let result = result . printf("%02x(%c) ", code, code ) let k = k + 1 endwh return result

2006-05-07 Thread Yakov Lerner
I am changing and trying different of colors for 'hi MatchParen' , and inevitably I get into this problem: I get into situation when the paren is *already* that color!!! and thus highlighting is not visible !! Does anybody get this, too ? (I work in console vim). So: is it possible maybe that mat

Re: lines folding by pattern ; was Re: hiding lines

2006-05-07 Thread Yakov Lerner
On 5/7/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 5/6/06, Bill Pursell <[EMAIL PROTECTED]> wrote: > >> Yakov Lerner wrote: >> > On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: >> > >> >> > :v (and :g) mad

Re: lines folding by pattern ; was Re: hiding lines

2006-05-06 Thread Yakov Lerner
On 5/6/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: > >> > :v (and :g) made my day..! >> >> Yes, I use this a lot if I just want to filter out a set of lines, or see >> only l

Re: Syntax file

2006-05-05 Thread Yakov Lerner
On 5/5/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 5/5/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: > I would like to color a file as follows: > > Everything is "normal" except for lines whose > foldlevel is different from the foldlevel of both >

Re: Syntax file

2006-05-05 Thread Yakov Lerner
On 5/5/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: I would like to color a file as follows: Everything is "normal" except for lines whose foldlevel is different from the foldlevel of both the line above and the line below. For such lines, the color should be Color_N where N is

Re: Commenting out a block of text

2006-05-05 Thread Yakov Lerner
On 5/5/06, Max Dyckhoff <[EMAIL PROTECTED]> wrote: F4 I want to do a block comment, namely put /* at the beginning of the selection and */ at the end. Currently I am using a massive hack for this (xi/**/p) but was wondering if there was anyway of doing a search and replace for an entire block, so

Re: Backups question

2006-05-05 Thread Yakov Lerner
On 5/5/06, David Venus <[EMAIL PROTECTED]> wrote: 1. How do I get VIM to automagically create the directory (if it does not exist) Add this to your vimrc: :if !isdirectory('c:/temp/vim_backups.d') :call system('mkdir c:\temp\vim_backups.d') endif 2. How do I set VIM to not append a bac

Re: Highlighting cursor in a color terminal

2006-05-05 Thread Yakov Lerner
On 5/5/06, Alexander Klink <[EMAIL PROTECTED]> wrote: Hey, I am currently on a Linux console on a HP Jornada where the cursor is barely visible. When editing, I use visual mode as a workaround to quickly find out where I am in the file. But this is not the solution I would like to use in the lon

Re: LiveJournal S2 Syntax Highlighting - Strings

2006-05-04 Thread Yakov Lerner
On 5/5/06, Max Cantor <[EMAIL PROTECTED]> wrote: S2 has a special type of string that is delimited by three quotes, which allows you to include quotes and double quotes in the string, unescaped. (This is useful for quote-heavy stuff like HTML.) It looks like this: """this is a "cool string" in

lines folding by pattern ; was Re: hiding lines

2006-05-04 Thread Yakov Lerner
On 5/4/06, Jack Donohue <[EMAIL PROTECTED]> wrote: > :v (and :g) made my day..! Yes, I use this a lot if I just want to filter out a set of lines, or see only lines containing some text (like the old XEDIT command). But what I'd really like to to is continue editing in this view and not lose al

Re: File Extenstions

2006-05-04 Thread Yakov Lerner
On 5/4/06, Adrian Walls <[EMAIL PROTECTED]> wrote: I am using gvim and when I edit a file it makes a copy of the file on my disk with a ~ appendend to the new file created. How can I switch this off as I do not want this file being created. I assume that is this some kind of back up copy of the

Re: scripted :isearch?

2006-05-04 Thread Yakov Lerner
On 5/4/06, Neil Bird <[EMAIL PROTECTED]> wrote: Is there a script function version of :isearch (akin to taglist)? I don't know about builtin function. But it's possible to write such a function by redirecting the output of :ilist. Do you mean function a-la :ilist that returns list of match

Re: regex @vim, negating a group

2006-05-03 Thread Yakov Lerner
On 5/2/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: Pattern /\i\+\(ion\)\@/ matches words that do not end with 'ion' Two more ways to match words not ending with 'ion': 2) This pattern also matches words not not ending with 'ion': \<\(\w*ion

Re: console vim on win - double CR's

2006-05-03 Thread Yakov Lerner
On 5/3/06, Hugo Ahlenius <[EMAIL PROTECTED]> wrote: Hi, I have vim 6.4 (non cygwin) installed on a couple of Win2k3 servers, running the built in MS telnet server. When I connect using the built-in WinXP/Win2k telnet client I am able to get color in vim console sessions without any problems, an

Re: regex @vim, negating a group

2006-05-03 Thread Yakov Lerner
le anything he's written before. Then he falls silent, looks at this formula and runs out of the room. Half an hour passes. He returns and says "All right. I checked it. It's really obvious". Daniel Einspanjer <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > Pattern >

trap changes in 'modified' state

2006-05-03 Thread Yakov Lerner
I want to trap changes in the value of 'modified' (execute my commands when first change is done to the buffer, and when undo reverts buffer to unmodified state). How can I achieve this ? Note that this is not necessarity connected to Insert mode. Buffer can easily become modified without enter

Re: vimgrep with ':hide' command modifier does not keep buffers loaded?

2006-05-03 Thread Yakov Lerner
On 5/2/06, John Player <[EMAIL PROTECTED]> wrote: > I did , too. File is in disk cache in both cases. In 1st case, > file opens imemdiately. In 2nd case, it takes time. I suspect > that for unlisted+hidden files, vim keeps swapfile open which is > what helps him open file immediately without usin

Re: vimgrep with ':hide' command modifier does not keep buffers loaded?

2006-05-02 Thread Yakov Lerner
On 5/2/06, John Player <[EMAIL PROTECTED]> wrote: > > So I guess the help for 'vimgrep' is wrong and the buffers are not > > kept loaded -- vim just remembers there file names. > > I made small experiment that shows that help for 'hide vimgrep' > is correct. > > I created 60MB size file x so that

Re: vimgrep with ':hide' command modifier does not keep buffers loaded?

2006-05-02 Thread Yakov Lerner
On 5/2/06, John Player <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Yakov Lerner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 02, 2006 9:46 AM > > On 5/2/06, John Player <[EMAIL PROTECTED]> wrote: > > "To be able to do this Vim load

Re: regex @vim, negating a group

2006-05-02 Thread Yakov Lerner
On 5/2/06, o1792 <[EMAIL PROTECTED]> wrote: Hi vimmers, When searching through text files using regex, I am trying unsuccessfully to negated a complicated pattern without success. What doesn't help is the double usage of the circumflex ^ character (may also be called caret, not sure), because i

Re: vimgrep with ':hide' command modifier does not keep buffers loaded?

2006-05-02 Thread Yakov Lerner
On 5/2/06, John Player <[EMAIL PROTECTED]> wrote: "To be able to do this Vim loads each file as if it is being edited. When there is no match in the file the associated buffer is wiped out again. The 'hidden' option is ignored here to avoid running out of memory or file descriptors when searchi

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/2/06, Suresh Govindachar <[EMAIL PROTECTED]> wrote: Yakov Lerner wondered: > But how do you remove #ifdef blocks? I mentioned piping because > there is ready utility, 'unifdef', that removes some or all of > #if blocks. Isn't there a way to do a m

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/2/06, Gary Johnson <[EMAIL PROTECTED]> wrote: > Thus spake Yakov Lerner on Mon, May 01, 2006 at 10:06:57PM +0300 or thereabouts: <[EMAIL PROTECTED]> [2006-05-01 17:25]: > > On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: > > >Is it possible to comple

Re: hiding lines

2006-05-01 Thread Yakov Lerner
On 5/1/06, Bill Pursell <[EMAIL PROTECTED]> wrote: Is it possible to completely hide lines? Something stronger than merely folding. In particular, I'd like to be able to display the buffer with all lines containing "assert" hidden, or to hide lines between and including #ifdef/#endif pairs. C

Re: mouse selected text on winxp

2006-05-01 Thread Yakov Lerner
On 5/1/06, oystercatcher <[EMAIL PROTECTED]> wrote: Sorry if this is an obvious one but I searched using a variety of arguments and nothing was too clear. I also looked at _gvimrc and changed the line highlight Normal guibg=white # from gray80 which made it much easier to see the selected

Re: highlighting tabbed text

2006-05-01 Thread Yakov Lerner
On 5/1/06, Michael Naumann <[EMAIL PROTECTED]> wrote: Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? > For example in the line a\tb\t\tc\td I want "a\t" to be color1, "b\t\t" to be color2 and "c\t

Re: Asking vim...

2006-05-01 Thread Yakov Lerner
On 5/1/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: Is there a way for a script to determine, whether a certain key-shortcut is used in any mode ? :he mapcheck() :he hasmapto() Yakov

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: >> On Sun, 30 Apr 2006, Yakov Lerner wrote: >> >> > On 4/30/06, Bram Moolenaar <[EMAIL PROTE

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Gerald Lai <[EMAIL PROTECTED]> wrote: On Sun, 30 Apr 2006, Yakov Lerner wrote: > On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: >> > :help 'compatible' >> > >> > where (among other things) you can find the warning >> &

Re: How to auto-escape space in filename when write

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: Very often, when I - snip some notes from web - paste them into an empty buffer - yank the key sentence as filename - then try to :write Vim report "E77: Too many file names". How can the spaces in filename be automatically escaped when I sa

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > :help 'compatible' > > where (among other things) you can find the warning > > This is a special kind of option, because when it's set or reset, > other options are also changed as a side effect. CAREFUL: Setting or > rese

Re: How to permanently save the buffer without accidentally undo the change ?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Eddy Zhao <[EMAIL PROTECTED]> wrote: At some point, I want to permanently save the buffer with out the possibility of accidentally undo the changes I've made (this happens sometimes). How can I clear the undo stack (without leaving the current buffer). Or any other simpler way of achi

Re: move to the end of the line in insert mode

2006-04-30 Thread Yakov Lerner
On 4/30/06, shello <[EMAIL PROTECTED]> wrote: Is there any quick way to move to the end of the line in insert mode ? i map a key to do that : inoremap $a But it doesn't work ! Where is my mistake? There is no mistake. does not work on some terminals. Try control-keys, or Fn keys, or key if y

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: From: "Yakov Lerner" <[EMAIL PROTECTED]> > On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > > In my ${HOME}/.vimrc I > > set history=100 > > after restar

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton <[EMAIL PROTECTED]> wrote: On Sun, Apr 30, 2006 at 14:11 +0300, Yakov Lerner wrote: > In x11, it's possible that window manager intercepts Ctrl-FN. > For example, my WM (kde) binds Ctrl-Fx to workspace switch. > So application doesn't get it. You

Re: where is vimfiles?

2006-04-30 Thread Yakov Lerner
On 4/30/06, Akbar <[EMAIL PROTECTED]> wrote: I want to install this script: http://www.2072productions.com/?to=phpindent.txt install details: Just make sure the name of the file is php.vim and copy it under your vimfiles/indent folder. PHP syntax coloring must be turned on. But where is the vim

Re: History and "set history=xx"

2006-04-30 Thread Yakov Lerner
On 4/30/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: in the help there is mentioned: Use the 'history' option to set the number of lines that are remembered (default: 20). In my ${HOME}/.vimrc I set history=100 after restarting vim I did :set history output is 2

Re: keybindings

2006-04-30 Thread Yakov Lerner
On 4/30/06, Anton <[EMAIL PROTECTED]> wrote: I found such a problem: I can't use key combinations with functional keys, so I can't map something on Ctrl+F9 for example. If I map it on Ctrl+ everything works. In help I found that such a binding should look like :map But if doesn't work. Where is

synIDattr() doesn't show highlight group of misspelled word

2006-04-29 Thread Yakov Lerner
To see the highlight group of the highlighted char/word, I use the mapping below. I picked it somewhere from tips. It works for syntax and for match highlights. But it shows no highlight group when on misspelled (red) word, althoug highlight is visible on screen. Why ? fu! ShowSyntaxGroup() e

Re: Mapping ?

2006-04-29 Thread Yakov Lerner
On 4/29/06, Eric Crahen <[EMAIL PROTECTED]> wrote: Is it possible to map CTRL-[ ? That generates the ESC code, In X11, you can use xmodmap to have Esc and Ctrl-[ send different things, I think. But this is platform-dependent thing. Under xterm, you can customize xterm resources to do it. Maybe

Re: Disable scratch buffer

2006-04-29 Thread Yakov Lerner
vim -u NONE -U NONE' to make sure that without plugins this does not happen. Yakov Its the same one you'd get when you open vim w/ no filenames. I'll poke around andd if there is a setting causing that On 4/28/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: > On 4/2

Re: How to customize the default display of Vim?

2006-04-29 Thread Yakov Lerner
On 4/29/06, Chen Long <[EMAIL PROTECTED]> wrote: Dear all, I am new to Vim. Could any one tell me how to customize the default display of Vim? Say colorscheme, width and height of the screen, vertical line spacing etc? What are those commands I should put them in .vimrc? For colorscheme: :se

Re: Disable scratch buffer

2006-04-28 Thread Yakov Lerner
On 4/28/06, Eric Crahen <[EMAIL PROTECTED]> wrote: When I start vim from the command line and provide a filename, how can I prevent a default scratch buffer from also being opened? Vim does not create scratch buffer when you invoke it from command line with filename. You can verify it for yours

Re: Input using meta key under different encoding

2006-04-28 Thread Yakov Lerner
On 4/26/06, Dave Roberts <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 4/25/06, Dave Roberts <[EMAIL PROTECTED]> wrote: > >> I find that if I'm in "latin1" and (in insert mode) type ctrl-v alt-n to >> insert the character then get get ou

Re: count larger than buffer lines gives error for function-range, illogical

2006-04-28 Thread Yakov Lerner
On 4/28/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > I get error 'E16: Invalid range' when I give large count > (larger than number of lines in current buffer) to the ':1call X()' > where function is declared with 'range'

Re: vimgrep slow?

2006-04-28 Thread Yakov Lerner
On 4/28/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > > How much extra time does it take to read the marks from the .viminfo > > file? > > There are 1358 files in $VIMRUNTIME (vim7f). > Executint this with no :au commands (vim -u NONE) >

count larger than buffer lines gives error for function-range, illogical

2006-04-28 Thread Yakov Lerner
I get error 'E16: Invalid range' when I give large count (larger than number of lines in current buffer) to the ':1call X()' where function is declared with 'range' attribute. I think the error is illogical in this case. I think this error must not appear when function has 'range' attribute.

Re: vimgrep slow?

2006-04-28 Thread Yakov Lerner
On 4/28/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > > On 4/27/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > Before even thinking of disabling autocommands, we first need proof that > > > this actually changes the

Re: vimgrep slow?

2006-04-28 Thread Yakov Lerner
On 4/27/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > Before even thinking of disabling autocommands, we first need proof that > this actually changes the search time more than a few percent. > > Above that, if BufRead autocommands take so much time there is probably > something wrong with them.

Re: Bugs in feedkeys(): doesn't work with silent and vim went into a loop

2006-04-27 Thread Yakov Lerner
On 4/27/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote: > > I am trying to use feedkeys() to give input to a Vim command that is > expecting input from the user, and it works if the command is not > executed using :silent prefix. Here is an example (executed on JDK 1.4.2 > source): > > :ta Integer

Re: vimgrep slow?

2006-04-26 Thread Yakov Lerner
On 4/26/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > I'm using win32 gvim70f. If I use the externan Cygwin grep > > grep -i -r vimgrep . > > it returns the results in under a second. > > :vimgrep vimgrep ** > > takes about 20 seconds. 1. I did :20verb vimgrep lakslaskjda $VIMRUNTIME/** and

Re: "describe-bindings" in VIM ?

2006-04-26 Thread Yakov Lerner
On 4/26/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: > is there an equivalent or similiar to the emacs command "describe-bindings", > which dumps a list of all keys, which are bind to function and > therefore available via key shortcuts ? User-defined maps are printed by :map and :ima

Re: Symbolic links to Vim plugins not working for Cygwin

2006-04-25 Thread Yakov Lerner
On 4/26/06, Eric Arnold <[EMAIL PROTECTED]> wrote: > I can't get Vim to read any symbolically linked plugins during > startup. I notice that when Vim starts, I can edit the linked file, > but Vim has modified the file name as Myfile.vim.lnk. Windows shortcuts are different things than cygwin sy

<    3   4   5   6   7   8   9   >