Re: percentage of vim users running python

2010-06-30 Thread Christian Brabandt
On Wed, June 30, 2010 6:05 am, sc wrote: i'd like to count myself among those who like a lean build with no extra languages compiled in and as few plugins running as possible whatever your modules do i would not consider them if they require a python enabled vim Same is true for me. On

question about lua source navigation

2010-06-30 Thread X Heruacles
I'm just learning lua and I use vim to navigate some lua projects. I use ctags to generate tags using a map: map F12 Esc:!ctags -R .CR but it rarely helps. When I want to jump to some function definition, it always errs. Then I checked the generated tag and it seems fine. So my question is

Re: question about lua source navigation

2010-06-30 Thread Gary Johnson
On 2010-06-30, X Heruacles wrote: I'm just learning lua and I use vim to navigate some lua projects. I use ctags to generate tags using a map: map F12 Esc:!ctags -R .CR but it rarely helps. When I want to jump to some function definition, it always errs. Then I checked the

Re: percentage of vim users running python

2010-06-30 Thread Marc Weber
Hi Ted, Go for Python because VimL can be a lock-in (speed issues if you want to do a lot). Can you tell more about what you're going to implement? Maybe you want to get some ideas from my sbt plugin: www.github.com/MarcWeber/vim-addon-sbt It mocks Vim functionality so that you can test it

Re: question about lua source navigation

2010-06-30 Thread X Heruacles
thanks Gary. Then I show the code here: the generated tag has a line looks like this: TaskHandler.prizeTask .\init\taskHandler.lua /^function TaskHandler.prizeTask(plr, task)$/; f and I have a function: function Task:succeed() debug_log(Task:succeed) self.isSucceed = true

vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
Hello, I'm trying to add new features to vim's handling of .po files. How could I highlight the differences between the current msgid and the previous one? #, fuzzy #| msgid #| The following disk access storage devices (DASD) are available. Please #| select each device you want to use one at

Re: question about lua source navigation

2010-06-30 Thread Dominique Pellé
X Heruacles wrote: I'm just learning lua and I use vim to navigate some lua projects. I  use ctags to generate tags using a map: map F12  Esc:!ctags -R .CR but it rarely helps. When I want to jump to some function definition, it always errs. Then I checked the generated tag and it seems

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Marc Weber
I'd be grateful for any hints or RTFM pointing to the right FM, because I have no idea where to start. I don't know details. I'd guess that the highlighting is implemented somewhere in Vims C code. But I don't know for sure. You can always write a script which creates two files you can diff

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Christian Brabandt
On Wed, June 30, 2010 10:52 am, Andrei Popescu wrote: I'm trying to add new features to vim's handling of .po files. How could I highlight the differences between the current msgid and the previous one? I don't understand your question. Can you elaborate, on what the file looks like and where

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Marc Weber
Hi Christian, Excerpts from Christian Brabandt's message of Wed Jun 30 11:12:03 +0200 2010: I don't understand your question. Can you elaborate, on what the file looks like and where the previous message id comes from? Please show a sample file, with which we can see your problem. He gave an

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Christian Brabandt
On Wed, June 30, 2010 11:59 am, Andrei Popescu wrote: What I posted was an excerpt of a .po file. Here is a full string with comments: [blank line] #. Type: select #. Description #. :sl5: #: ../s390-dasd.templates:1002 ^^ other stuff, not interesting in this

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 12:30:15, Christian Brabandt wrote: I would use the NarrowRegion plugin[1]. Make sure, it uses vertical split windows, (:let g:nrrw_rgn_vert = 1), set nowinfixwidth in each narrowed window (:set nowinfixwidth), resize each window to your desired width and diff each narrowed

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Marc Weber
Excerpts from Andrei Popescu's message of Wed Jun 30 13:19:23 +0200 2010: On Mi, 30 iun 10, 12:30:15, Christian Brabandt wrote: I would use the NarrowRegion plugin[1]. Make sure, it uses vertical split windows, (:let g:nrrw_rgn_vert = 1), set nowinfixwidth in each narrowed window (:set

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 13:32:22, Marc Weber wrote: Can't you just provide two files? The old and the new one? Most VCS systems do that anyway vimdiff can be used (but it's not ideal) if you have access to the previous .po file, but this is not always the case. Especially bigger projects will

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Marc Weber
Because the previous msgid is not needed in the translated .po file I thought of pre-processing the .po file[1]. Unfortunately I don't have the programing skills for that either :( Can you describe this preprocessing? What do you expect from the highlighting? one line: Hello World two

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Jürgen Krämer
Hi, Andrei Popescu wrote: On Mi, 30 iun 10, 13:32:22, Marc Weber wrote: Can't you just provide two files? The old and the new one? Most VCS systems do that anyway vimdiff can be used (but it's not ideal) if you have access to the previous .po file, but this is not always the case.

Re: vimdiff-like highlighting within the same file?

2010-06-30 Thread Andrei Popescu
On Mi, 30 iun 10, 15:42:37, Jürgen Krämer wrote: maybe the following can be a start. Open your .po file and execute these commands (the fourth command is one long line): :%y :vert new :put! :%s/^\(#| msgid \n\(\_.\{-\}\n\)msgid \n\)\(\_.\{-\}\n\)\(msgstr

Re: question about lua source navigation

2010-06-30 Thread X Heruacles
The error code is E426. After I set iskeyword, the command set iskeyword? echos iskeyword=@,48-57,_,128-167,224-235,: but it still didn't solve the problem. Thanks anyway. 2010/6/30 Dominique Pellé dominique.pe...@gmail.com X Heruacles wrote: I'm just learning lua and I use vim to navigate

Page Up/Down in xterm

2010-06-30 Thread Neil Bird
Is it possible, does anyone know, to have xterm key mappings that allow normal scrolling with page up/down in normal mode, and mappable code sequences in 'alternate' mode (which I have vim enter while it runs)? I.e., Page Up/Down has diff. mappings between normal and alternate mode.

Re: Conditional imap

2010-06-30 Thread Ben Fritz
On Jun 29, 6:04 am, gitterrost4 gitterro...@gmx.de wrote: Indeed it was latex-suite overriding the map from my tex.vim file. I fixed this by appending the line exe 'source '.fnameescape('~/.vim/ftplugin/tex.vim') to the file $VIM/ftplugin/latex-suite/main.vim This could certainly be done

Re: percentage of vim users running python

2010-06-30 Thread Matthew Winn
On Wed, 30 Jun 2010 10:34:16 +0200, Marc Weber marco-owe...@gmx.de wrote: Go for Python because VimL can be a lock-in (speed issues if you want to do a lot). Isn't it rather the opposite? If something requires Python it's at the mercy of the availability of Python and the ability of Vim to

Re: Daily Vim Devotional

2010-06-30 Thread Benjamin R. Haskell
On Wed, 30 Jun 2010, nlloyds wrote: Some of my Vim-using colleagues at cramerdev.com and myself just created http://dailyvim.tumblr.com/, for a daily Vim tip. Check it out! Cool. I signed up for a Tumblr account (finally), because I wanted to post a response. Do you have to enable it for

Re: question about lua source navigation

2010-06-30 Thread Gary Johnson
On 2010-06-30, X Heruacles wrote: On Wed, Jun 30, 2010 at 3:42 PM, Gary Johnson garyj...@spocom.com wrote: On 2010-06-30, X Heruacles wrote: I'm just learning lua and I use vim to navigate some lua projects. I use ctags to generate tags using a map: map

screen not updated after backspace

2010-06-30 Thread Sven Eppler
Hi There, since about a week on my server vim behaves strange. The backspace-key is working correctly beside the fact, that the deleted characters are not removed from the screen. Only when leaving insert-mode or switch lines the screen will get updated and the deleted characters will vanish from

Analog to SHIFT+Asterisk

2010-06-30 Thread Hoss
Esteemed Vim Users, One of the useful key combinations in vim is shift+asterisk, which will locate the word your cursor is on, and put that word into your / buffer (surrounded by \\ word boundaries). This has the effect of highlighting all occurrences of that word. It also has the effect of

Re: Analog to SHIFT+Asterisk

2010-06-30 Thread Benjamin R. Haskell
On Wed, 30 Jun 2010, Hoss wrote: Esteemed Vim Users, One of the useful key combinations in vim is shift+asterisk, which will locate the word your cursor is on, and put that word into your / buffer (surrounded by \\ word boundaries). This has the effect of highlighting all occurrences of

Re: percentage of vim users running python

2010-06-30 Thread Ted
Thanks to all for providing input on my question. I realized that the demographic is a bit more restricted than the general population of vim users; it is that portion thereof who actually install vim modules at all. It's informative to learn that there are some in that group who would not be

RE: Analog to SHIFT+Asterisk

2010-06-30 Thread John Beckett
Hoss wrote: Is there an analogous key combination, that will highlight the current word, WITHOUT moving my cursor? See this tip: http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches John -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: screen not updated after backspace

2010-06-30 Thread John Little
On Jul 1, 7:34 am, Sven Eppler s...@sveneppler.de wrote: the deleted characters are not removed from the screen. Only when leaving insert-mode or switch lines the screen will get updated and the deleted characters will vanish from the screen. That's ancient vi behaviour; you've somehow got

Re: Digest for vim_use@googlegroups.com - 13 Messages in 4 Topics

2010-06-30 Thread 李仁林
On 6/30/10, vim_use+nore...@googlegroups.com vim_use+nore...@googlegroups.com wrote: = Today's Topic Summary = Group:

Re: screen not updated after backspace

2010-06-30 Thread Jürgen Krämer
Hi, Sven Eppler wrote: since about a week on my server vim behaves strange. The backspace-key is working correctly beside the fact, that the deleted characters are not removed from the screen. Only when leaving insert-mode or switch lines the screen will get updated and the deleted