Re: How to modify the omnifunction scripts?

2010-07-02 Thread aleCodd
Anybody please...as this is very important to me.. thanks aleCodd wrote: > > I would like the items in the popupmenu to be more than simple strings, i > mean that after i select an item i want the cursor to automatically jump > to specific locations. > > let me give a simple example, from Java

Re: How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Benjamin R. Haskell
On Fri, 2 Jul 2010, Benjamin R. Haskell wrote: > On Fri, 2 Jul 2010, Tony Mechelynck wrote: > > > Maybe write (if it doesn't yet exist) a keymap from Latin to the > > Braille patterns at Unicode codepoints U+2800 to U+28FF? > > Hmm. That's much easier than typing individual dots. > > Attached

Re: File types for new files

2010-07-02 Thread sc
On Friday 02 July 2010 18:56:20 Gary Johnson wrote: > The easiest way to set the file type after writing a file is > to simply edit it again, > > :e > > If you really want to automate this, you could put an > autocommand like this in your ~/.vimrc: > > au BufWrite * if &ft == '' | fil

Re: File types for new files

2010-07-02 Thread Daniel D Jones
On Friday, July 02, 2010 19:56:20 Gary Johnson wrote: > On 2010-07-02, Daniel D Jones wrote: > > Using Gvim under Gentoo Linux, if I open a file with a .txt extension, > > Gvim sets the filetype to text and sets the appropriate word wrap, etc. > > that I have configured. But if I open Gvim, create

Re: File types for new files

2010-07-02 Thread Gary Johnson
On 2010-07-02, Gary Johnson wrote: > au BufWrite * if &ft == '' | filetype detect | fi ^^ Oops, wrong language. Make that "endif". Another way to solve the original problem would be to specify the file name when you execute :tabnew, e.g.,

Re: File types for new files

2010-07-02 Thread Gary Johnson
On 2010-07-02, Daniel D Jones wrote: > Using Gvim under Gentoo Linux, if I open a file with a .txt extension, Gvim > sets the filetype to text and sets the appropriate word wrap, etc. that I > have > configured. But if I open Gvim, create a new buffer with :tabnew and then > save > that as a

File types for new files

2010-07-02 Thread Daniel D Jones
Using Gvim under Gentoo Linux, if I open a file with a .txt extension, Gvim sets the filetype to text and sets the appropriate word wrap, etc. that I have configured. But if I open Gvim, create a new buffer with :tabnew and then save that as a file with a .txt extension, Gvim doesn't set the fi

Re: How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Benjamin R. Haskell
On Fri, 2 Jul 2010, Benjamin R. Haskell wrote: > On Fri, 2 Jul 2010, Tony Mechelynck wrote: > > > Maybe write (if it doesn't yet exist) a keymap from Latin > > to the Braille patterns at Unicode codepoints U+2800 to U+28FF? > > Hmm. That's much easier than typing individual dots. > > Attached i

Re: Feature Request...

2010-07-02 Thread Daniel D Jones
On Friday, July 02, 2010 11:59:08 Fuzzy Logic wrote: > On Fri, Jul 2, 2010 at 2:34 AM, bill lam wrote: > I've had this discussion before. Bottom post and top post are equally > good, as long as the message is trimmed properly. I know some of the > people on this list view it as a holy war, but it

Re: scratch buffer on start up

2010-07-02 Thread Ben Fritz
On Jun 3, 1:54 am, Tinou wrote: > Now this seems to work: > > autocmd! BufNew * if empty(expand("")) | call > setbufvar(bufnr("$"), "&buftype", "nofile") | endif > > I'm not very happy with the bufnr("$"), but bufnr("") returns > -1. Can I rely, in this case for the to always be the last > buff

Re: Split filename from filepath

2010-07-02 Thread Ben Fritz
On Jul 2, 2:59 pm, epanda wrote: > Hi, > > What'is the fastest soluce to split path and name from filepath ? > What about the fnamemodify() function? You'd want to run it twice, once with :p:h and once with :t as the modifier. -- You received this message from the "vim_use" maillist. Do not t

Re: Split filename from filepath

2010-07-02 Thread epanda
I have modified regexp in order it works on xp. matchlist(pictPath, '\(.*\)\\\(.*\)')[1:2] Can you send me regexp to be compatible under xp and unix ? -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more informat

Re: Split filename from filepath

2010-07-02 Thread epanda
Thank you Tim. I am under Xp so I don't have the benefite of basename. Thank you -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: Split filename from filepath

2010-07-02 Thread Reid Thompson
On Fri, 2010-07-02 at 12:59 -0700, epanda wrote: > Hi, > > What'is the fastest soluce to split path and name from filepath ? > > Thank you > will :r! basename /tmp/remove/junk.txt work -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text y

Re: Split filename from filepath

2010-07-02 Thread Tim Chase
On 07/02/2010 02:59 PM, epanda wrote: What'is the fastest soluce to split path and name from filepath ? I don't know about the "fastest" way, but the following works for me: :let file_path = 'path/to/some/location/where.txt' :echo matchlist(file_path, '\(.*\)/\(.*\)')[1:2] If you need them

Re: How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Benjamin R. Haskell
On Fri, 2 Jul 2010, Tony Mechelynck wrote: > Maybe write (if it doesn't yet exist) a keymap from Latin > to the Braille patterns at Unicode codepoints U+2800 to U+28FF? Hmm. That's much easier than typing individual dots. Attached is a Braille keymap[1]. Install it as ~/.vim/keymap/braille.vim

Re: How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Benjamin R. Haskell
On Fri, 2 Jul 2010, Romeyke, Andreas wrote: > Hello, > > Is it possible to map the keys "asdf hjkl" in insert-mode to be > registered if the key is released and not pressed? Is it possible to > collect all pressed keys until one of them will be released? > > Example: > user presses and holds key

Re: question about lua source navigation

2010-07-02 Thread Gary Johnson
On 2010-07-03, X Heruacles wrote: > On Thu, Jul 1, 2010 at 4:42 AM, Gary Johnson wrote: > > On 2010-06-30, X Heruacles wrote: > > > On Wed, Jun 30, 2010 at 3:42 PM, Gary Johnson > wrote: > > > > On 2010-06-30, X Heruacles wrote: > > > I'm just learning lua and I

Re: question about lua source navigation

2010-07-02 Thread X Heruacles
Sorry for the late reply Gary and thank you very much that it works!!! But there are others that can't work, so I want to know why this helps. I tried to read some help file about iskeyword and isfname, but it hardly did help. So I ask you do me a favor to describe the keyword and how it works?(may

Re: Feature Request...

2010-07-02 Thread Fuzzy Logic
On Fri, Jul 2, 2010 at 2:34 AM, bill lam wrote: > Чтв, 01 Июл 2010, Fuzzy Logic писал(а): >> Even more importantly, don't send a message with absolutely no context >> for what you are replying to. >> >> 2010/7/1 永远的冰点 : >> Do not top-post! >                                                        

Re: Data Backup

2010-07-02 Thread 永远的冰点
-- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: OT Braille Displays (was :How to map release of keys? Needed to use vim as braille-readyeditor)

2010-07-02 Thread Tim Chase
On 07/02/2010 08:28 AM, Tony Mechelynck wrote: Or else you could use a Braille font, with one six-dot glyph (well, six dots, each of which may be present or absent) for each character... but apparently I can't find it back. Maybe write (if it doesn't yet exist) a keymap from Latin to the Braille

Re: How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Tony Mechelynck
On 02/07/10 11:22, Romeyke, Andreas wrote: Hello, Is it possible to map the keys "asdf hjkl" in insert-mode to be registered if the key is released and not pressed? Is it possible to collect all pressed keys until one of them will be released? You can't. Many keyboard drivers will "forget" key

How to map release of keys? Needed to use vim as braille-readyeditor

2010-07-02 Thread Romeyke, Andreas
Hello, Is it possible to map the keys "asdf hjkl" in insert-mode to be registered if the key is released and not pressed? Is it possible to collect all pressed keys until one of them will be released? Example: user presses and holds key "a" and key "f", if key "a" is released, the mapped string w

Re: scratch buffer on start up

2010-07-02 Thread Tony Mechelynck
On 06/05/10 11:15, john Maclean wrote: Chaps, Check this out - going from emacs to vim, (again) as emacs' keybindings are a pain on a mac book pro. There must be a way to have vim create a scratch buffer on start up. It depends what you call a scratch buffer. If not given a file name, Vim w