gvim (7.2) doen't print è character (e with accent grave ) in french(France) layout on win32 platform ( Win Xp )

2010-01-20 Thread Sergey Vakulenko
Hello Everyone How to print è character in gvim. When i do that in french layout, typing key 7, vim past some phrases ( register buffer? ) to active window. It looks like no maping for è character. How to overcome this difficulty? Thanks Sergey -- You received this message from the vim_use

Re: How to force windows vim to load appropriate vimrc?

2010-01-20 Thread yosi izaq
You are both right. I opted to adapt my .vimrc to linux/windows/cygwin by wrapping specific OS settings in appropriate has() block. Thank you for the quick help. This group rocks. Yosi. -- You received this message from the vim_use maillist. For more information, visit

Re: Odd behavior of folds...

2010-01-20 Thread Andy Wokula
Am 20.01.2010 02:19, schrieb Benjamin R. Haskell: On Tue, 19 Jan 2010, Matt Wozniski wrote: On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell wrote: Is there some way to get the auto-opening via 'l'-motion that I'm looking for? I much prefer simply 'l'-ing into the fold as I'm browsing

Re: Ctags horror, since vim can't find a tag from one file, but another

2010-01-20 Thread Torsten Andre
Brett Stahlman wrote: On Jan 19, 9:29 am, Torsten Andre q...@takb.net wrote: Hi there, I'm close to smashing my monitor at the wall, so please bare with me ;) I have the problem that when I follow symbol from one file, everything works fine, from another vim tells me that it cannot find

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Stahlman Family
Peter Berntsen wrote: Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I comment out the code for that in the vimrc file like this. if has(vms) set nobackup do not keep a backup file, use

BufWritePost through sessions

2010-01-20 Thread ptn
Hello everybody, I have a function that tries to regenerate a project's tag file automatically: function! SetProject() let name = substitute(v:this_session, '.*\(/\|\\\)', '', '') if name == '' let name = input('Project name: ') endif let $PROJDIR = input('Base directory

Re: Odd behavior of folds...

2010-01-20 Thread Matt Wozniski
On Wed, Jan 20, 2010 at 5:12 AM, Andy Wokula wrote: Am 20.01.2010 02:19, schrieb Benjamin R. Haskell: On Tue, 19 Jan 2010, Matt Wozniski wrote: On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell wrote: Is there some way to get the auto-opening via 'l'-motion that I'm looking for?  I much

Re: Session or file activity transcript replay?

2010-01-20 Thread Gary Bickford
There are some good ideas here, I'll check them out. I wonder though - the recovery file exists already (if the vim session has gone away). Does it contain the change history, or just the final state? If it contains the change history, then it seems that there might be a way to use that in the

Re: Session or file activity transcript replay?

2010-01-20 Thread Gary Bickford
I should mention, Im going to try Christian's plug-in. :) On Jan 19, 6:21 pm, Christian Brabandt cbli...@256bit.org wrote: On Mo, 18 Jan 2010, Christian Brabandt wrote: The amusing part was that you could watch as the editor replayed your actions at an accelerated speed.  I don't recall

Completion popup broken when going through choices

2010-01-20 Thread François Ingelrest
Hi all, Attached is a screenshot of what I get sometimes when trying to auto-complete the current word. The popup first appears correctly on the right of the screen (where the cursor is), but while going through the choices, it jumps to the left of the screen when the current choice is too long.

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Ben Fritz
On Jan 19, 2:13 pm, Peter Berntsen ptr...@gmail.com wrote: this only works when it is done in the /usr/share/vimrc file and not if it is done in the ~/.vimrc file. Is there something I have overlooked or is this a bug in version 7.2.245? From :help .vimrc, you can see that the environment

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Ben Fritz
On Jan 19, 1:36 am, Benjamin R. Haskell v...@benizi.com wrote: I was trying to loop over parent directories to find cscope.out files.   And I don't quite grok the following: Why does this print 'blah': :let file = blah | echo file while this complains that 'file' isn't found: :let file

Re: Completion popup broken when going through choices

2010-01-20 Thread Dominique Pellé
François Ingelrest wrote: Hi all, Attached is a screenshot of what I get sometimes when trying to auto-complete the current word. The popup first appears correctly on the right of the screen (where the cursor is), but while going through the choices, it jumps to the left of the screen when

autoindent with mutiple file / buffers

2010-01-20 Thread Klaus Rudolph
Hi all, I use gg=G for reindent of my sourcefile. Is it possible to do this for all buffers? Some kind of bufdo... ?? Thanks Klaus -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: Completion popup broken when going through choices

2010-01-20 Thread François Ingelrest
2010/1/20 Dominique Pellé: I can reproduce something a bit similar (but not exactly the same, so I'm no sure sure it's the same bug) when displaying a pum with :set number and long lines that wrap.  It happens with Vim in a terminal or with gvim. ... Just tried, and I get the same result as

Re: autoindent with mutiple file / buffers

2010-01-20 Thread Gary Johnson
On 2010-01-20, Klaus Rudolph wrote: Hi all, I use gg=G for reindent of my sourcefile. Is it possible to do this for all buffers? Some kind of bufdo... ?? :bufdo! normal gg=G See :help :bufdo :help :normal See also :help :windo Regards, Gary -- You received this

Re: autoindent with mutiple file / buffers

2010-01-20 Thread Klaus Rudolph
Gary Johnson schrieb: On 2010-01-20, Klaus Rudolph wrote: Hi all, I use gg=G for reindent of my sourcefile. Is it possible to do this for all buffers? Some kind of bufdo... ?? :bufdo! normal gg=G Great! Things could be so simple :-) Tanks a lot! Klaus -- You received this message

Vim plugin to maintain journal?

2010-01-20 Thread Foss User
I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010  * 1:45 AM    * Posted this mail    * Waiting for visitors to come   * 5:50 AM    * Found a new plugin to browser directories * Jan 22, 2010 .. and so on ... So, I would want to fold lines, etc.

Re: Vim plugin to maintain journal?

2010-01-20 Thread Dennis Benzinger
Foss User wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010 * 1:45 AM * Posted this mail * Waiting for visitors to come * 5:50 AM * Found a new plugin to browser directories * Jan 22, 2010 .. and so on ... So, I would want to

Re: Vim plugin to maintain journal?

2010-01-20 Thread Thomas Adam
On Thu, Jan 21, 2010 at 01:51:19AM +0530, Foss User wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010 ?* 1:45 AM ? ?* Posted this mail ? ?* Waiting for visitors to come ? * 5:50 AM ? ?* Found a new plugin to browser directories *

Re: Completion popup broken when going through choices

2010-01-20 Thread Bram Moolenaar
Francois Ingelrest wrote: Attached is a screenshot of what I get sometimes when trying to auto-complete the current word. The popup first appears correctly on the right of the screen (where the cursor is), but while going through the choices, it jumps to the left of the screen when the

Re: Vim plugin to maintain journal?

2010-01-20 Thread Christian Brabandt
Hi Foss! On Do, 21 Jan 2010, Foss User wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010  * 1:45 AM    * Posted this mail    * Waiting for visitors to come   * 5:50 AM    * Found a new plugin to browser directories * Jan 22,

Re: Vim plugin to maintain journal?

2010-01-20 Thread Foss User
On Thu, Jan 21, 2010 at 2:01 AM, Dennis Benzinger dennis.benzin...@gmx.net wrote: Foss User wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010  * 1:45 AM   * Posted this mail   * Waiting for visitors to come  * 5:50 AM   * Found a

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Tom Link
While the :echo command takes an expression, the :cs add command takes a file name. The commands expect completely different arguments. You will NEED to use :exec in order to dynamically build a :cs command. I think the analogy to lisp macros actually is quite adequate since it seems to be the

Re: Vim plugin to maintain journal?

2010-01-20 Thread Brett Stahlman
On Jan 20, 2:21 pm, Foss User foss...@gmail.com wrote: I want to maintain a journal in a huge file. The format would be somewhat like this. * Jan 21, 2010  * 1:45 AM    * Posted this mail    * Waiting for visitors to come   * 5:50 AM    * Found a new plugin to browser directories * Jan

Re: vimdiff highlight too many lines

2010-01-20 Thread Gary Johnson
On 2010-01-20, Carl Bolduc wrote: I am trying to compare two xml files using vimdiff under Windows. Both files are similar except for several additions in the latest file (right in the attached screenshot) that are not in the oldest file (left in the attached screenshot). As you can see in

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Peter Berntsen
OK Gary, :verbose set backup? backup :h verbose set backup E149 Sorry, no help for verbose set backup What does verbose set backup do? :scriptnames 1: /usr/share/vim/vimrc 2: /usr/share/vim/vim72/syntax/syntax.vim 3: /usr/share/vim/vim72/syntax/synload.vim 4:

Re: Completion popup broken when going through choices

2010-01-20 Thread Dominique Pellé
Dominique Pellé wrote: François Ingelrest wrote: Hi all, Attached is a screenshot of what I get sometimes when trying to auto-complete the current word. The popup first appears correctly on the right of the screen (where the cursor is), but while going through the choices, it jumps to the

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Peter Berntsen
Hi Brett, unfortunately my programming skills is somewhat limited. How do I modify the Makefile to include the mentioned prepocessor macro? Would a selfcompiled vim include this macro? output from :ver VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Aug 24 2009 20:05:51) Included patches: 1-245

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Peter Berntsen
I'm not sure how to locate the VIMINIT it is not listed in the output of set commandBASH=/usr/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]=3 [1]=1 [2]=17 [3]=2 [4]=release [5] =i486-slackware-linux-gnu) BASH_VERSION='3.1.17(2)-release'

Re: gVim stripping diacritics not in keyboard charset

2010-01-20 Thread Cyril Slobin
On Tue, Jan 19, 2010 at 10:40 PM, Tuetschek ondrej.du...@atlas.cz wrote: The problem is that some of the diacritical marks get just stripped away, e.g. I type ř and get just r. I second this. I have recently installed an Esperanto extension of the standard US English layout, and found that

Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread smu johnson
Hi. In a nutshell, I am having trouble trying to set the insert mode in a vim function, and having it stick after the statement ends. what I am trying to accomplish is the equivalent of hitting A, or I in vi. (note the caps) Problem is, once I do normal! I, it automatically escapes out of

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Brett Stahlman
On Jan 19, 2:13 pm, Peter Berntsen ptr...@gmail.com wrote: Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I comment out the code for that in the vimrc file like this. if has(vms)  set

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Gary Johnson
On 2010-01-20, Peter Berntsen wrote: On 20 Jan, 06:27, Gary Johnson garyj...@spocom.com wrote: On 2010-01-19, Peter Berntsen wrote: Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I

Re: vim7.2.245 reads only /usr/share/vimrc -not- ~/.vimrc

2010-01-20 Thread Brett Stahlman
On Jan 20, 4:22 pm, Brett Stahlman brettstahl...@comcast.net wrote: On Jan 19, 2:13 pm, Peter Berntsen ptr...@gmail.com wrote: Running 7.2.245 under Slackware Linux 13.0 and I have noticed that my .vimrc file doesn't seem to be read. For example to not keep a backup file I comment out

Re: Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread Gary Johnson
On 2010-01-20, smu johnson wrote: Hi. In a nutshell, I am having trouble trying to set the insert mode in a vim function, and having it stick after the statement ends. what I am trying to accomplish is the equivalent of hitting A, or I in vi. (note the caps) Problem is, once I do

Re: Completion popup broken when going through choices

2010-01-20 Thread Dominique Pellé
Dominique Pellé wrote: Please try the attached patch. It fixes the pum bug described in this thread. Bug is in function 'validate_cursor()' which means that features other than the pum may be affected by the fix. So patch needs to be tested and reviewed. My previous email described how to

Re: Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread smu johnson
Hi! If i do *startinsert!* in the if statement... and then try to write the following *if *statement, i'm quite sure how to write text without it thinking that my *if *statement itself is the text I want to write. * if a:pos == comment_and_write startappend! else startinsert! endif

Re: Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread smu johnson
Perhaps it cannot be done. *NOTE: These commands cannot be used with |:global| or |:vglobal|. :append and :insert don't work properly in between :if and :endif, :for and :endfor, :while and :endwhile. **sad face** * On Wed, Jan 20, 2010 at 2:57 PM, smu johnson smujohn...@gmail.com wrote: Hi!

Re: Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread Gary Johnson
On 2010-01-20, smu johnson wrote: On Wed, Jan 20, 2010 at 2:57 PM, smu johnson smujohn...@gmail.com wrote: On Wed, Jan 20, 2010 at 2:46 PM, Gary Johnson garyj...@spocom.com wrote: :help :startinsert Hi! If i do startinsert! in the if statement... and then try

Re: Need help with setting and keeping insertmode / append in a .vim script [sj]

2010-01-20 Thread smu johnson
Trying to write an autocommentor script... but have since given up, and someone recommended NERDCommentor to me. I will probably just get used to using this badboy. Thanks for answering earlier, though! On Wed, Jan 20, 2010 at 3:19 PM, Gary Johnson garyj...@spocom.com wrote: On 2010-01-20,

Re: .vimrc superceeded

2010-01-20 Thread John Little
MK said: Someone should send ubuntu a note about this since this is clearly a BAD POLICY.   This kind of weirdness is likely a Debian thing; others have been gotcha'd by their tweaks to the standard vim build. I'd have thought building your own would have avoided that stuff; vim --version

Re: vimdiff highlight too many lines

2010-01-20 Thread John Little
If I run GNU diff against those two file, line is not reported as being a difference. Vim just uses an external diff command, and vim on windows installs one in the same directory as gvim.exe, which is just Gnu diff. Mine says to diff --version diff - GNU diffutils version 2.7 You can

Re: Need help with setting and keeping insertmode / append in a .vim script

2010-01-20 Thread Tim Chase
Problem is, once I do normal! I, it automatically escapes out of insert mode afterwords. I need it to stay there and let a few if statements process. Once that happens, I'm hoping to write in text while it's in this mode. Something else I am not sure how to do. Example: (section of a function)

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Matt Wozniski
On Wed, Jan 20, 2010 at 11:23 AM, Ben Fritz wrote: I have additionally found (at least on Windows) that the :cs add command will NOT work with spaces in the path. Not sure why, but I've The backend code for it uses strtok() to split its argument apart on spaces, rather than following vim's

Re: gvim (7.2) doen't print è character ( e with accent grave ) in french(France) layout on win32 platform ( Win Xp )

2010-01-20 Thread Tony Mechelynck
On 20/01/10 09:18, Sergey Vakulenko wrote: Hello Everyone How to print è character in gvim. When i do that in french layout, typing key 7, vim past some phrases ( register buffer? ) to active window. It looks like no maping for è character. How to overcome this difficulty? Thanks Sergey

Re: .vimrc superceeded

2010-01-20 Thread Tony Mechelynck
On 19/01/10 21:36, MK wrote: On Tue, 19 Jan 2010 12:28:45 -0500 (EST) Benjamin R. Haskellv...@benizi.com wrote: Ubuntu 9.10's /usr/share/vim/vimrc contains: if has(syntax) syntax on endif Try commenting that out, for starters. Otherwise, I'll keep digging. FC 9 and 10 don't appear to

Re: Vim plugin to maintain journal?

2010-01-20 Thread nvictor
there is vimwiki but after using that for about a year. i think (on my windows xp machine at least) that vim is not the software for this kind of thing. the problem is not with entries, but with retrieval. you will be better off with a piece of software that comes with a live-search features.

Re: Completion popup broken when going through choices

2010-01-20 Thread François Ingelrest
Dominique Pellé wrote: I tested further and still found an issue which is addressed in this new attached patch. I've just applied your patch, I'll see if I still get this problem or if I encounter other issues. Thanks! -- You received this message from the vim_use maillist. For more

copy whole lines and paste in the first columns of all lines.

2010-01-20 Thread HanGyo Jung
Hi! vim guru~ I want to do like below. Do you have any idea to do using simple command? before --- i.sql init.sql login.sql Documents my_html.htm after --- i.sql i.sql init.sql init.sql login.sql login.sql Documents Documents my_html.htm my_html.htm --

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

2010-01-20 Thread Sylvia
Hello, I am using PuTTY to access a Linux server. When I start vim on PuTTY terminal and try to use CTRL-Q to select a block, nothing happens. It doesn't the same as what I can do in a gvim on my Windows System. Does anybody have a solutions on this? Or maybe I should ask in PuTTY's group? See