Re: Windows console: unable to read/write russian text

2009-09-29 Thread Maxim Kim
On 29 сен, 09:36, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 29/09/09 06:37, Maxim Kim wrote: [...] IIUC, the Vim default for 'termencoding' is the empty string. Maybe that option is set elsewhere, maybe in the UTF-8-setting script that I published at vim-online, or maybe in

Re: .vimrc Co. on Windows XP

2009-09-29 Thread pansz
meino.cra...@gmx.de 写道: There two places, which (for example) contain the plugins folder: C:\Programs\vim\vim72\. and C:\Own Documents\userid\vim\. How can I make the second path visible and used by vim in a consistent and legal way? 1. You need to set the HOME environment

Re: use vim function from an external shell command

2009-09-29 Thread Tony Mechelynck
On 12/09/09 12:44, Peter l Jakobi wrote: On Fri, Sep 11, 2009 at 07:39:09AM -0700, Joseph Boiteau wrote: I would like to use the reindenting functionality (ie: gg=G) based on vim indent files, but without getting into vim.. If I interpret this correctly, you seem to want to use vim commands

Re: Reading keypad input

2009-09-29 Thread pansz
Tim Johnson 写道: I'm using vim 7.1 - huge model on Linux with KDE 3.5.10. Back in my emacs days, I was able to use emacs functions with escape sequences to enable that system to interpert all keypad input as unique keys. Example: the minus key on the keypad is read as kp-minus. I have

Re: Tabs and spaces

2009-09-29 Thread Ralf Schmitt
Thanks for all your help! These are all good suggestions. I found another promising plugin called localvimrc which I will test at first. Thanks Ralf --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit

Re: Windows console: unable to read/write russian text

2009-09-29 Thread Tony Mechelynck
On 29/09/09 08:11, Maxim Kim wrote: On 29 сен, 09:36, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 29/09/09 06:37, Maxim Kim wrote: [...] IIUC, the Vim default for 'termencoding' is the empty string. Maybe that option is set elsewhere, maybe in the UTF-8-setting script that I

Re: Windows console: unable to read/write russian text

2009-09-29 Thread Christian Brabandt
On Tue, September 29, 2009 6:37 am, Maxim Kim wrote: I am not 100% sure it is cp866 but I use WinXP. Is there a way I can check what encoding it uses? In Console execute chcp and it should display the default value. Use chcp encoding to change to any other encoding. I am not sure, if the

Re: Windows console: unable to read/write russian text

2009-09-29 Thread Maxim Kim
On 29 сен, 10:57, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 29/09/09 08:11, Maxim Kim wrote: PS This is quite strange. If I (using my _vimrc with set enc=utf-8) 1. Change font to Lucida Console. 2. Write some text -- everything is ok. I can see correct russian

Re: Windows console: unable to read/write russian text

2009-09-29 Thread Mikalai Chaly
On Tue, Sep 29, 2009 at 10:53 AM, Maxim Kim haba...@gmail.com wrote: If I knew Lucida console is okay for vim console I wouldn't email here. But that just really strange - if it is possible to type russian chars in console directly with bitmap font set, why vim behaves in a different way?

Re: Windows console: unable to read/write russian text

2009-09-29 Thread Tony Mechelynck
On 29/09/09 10:10, Mikalai Chaly wrote: On Tue, Sep 29, 2009 at 10:53 AM, Maxim Kim haba...@gmail.com mailto:haba...@gmail.com wrote: If I knew Lucida console is okay for vim console I wouldn't email here. But that just really strange - if it is possible to type russian chars

Re: About plugins and placement in ~.vim

2009-09-29 Thread Ben Fritz
On Sep 27, 3:07 pm, Harry Putnam rea...@newsguy.com wrote: The Xpt subdirs in particular seem to almost mimic .vim/ but the doc directory for example would be at .vim/xpt/doc Ditto for perl support. Is this the way vim expects to find them?  That is, vim, knows to thoroughly recurse

Re: .vimrc Co. on Windows XP

2009-09-29 Thread Ben Fritz
On Sep 29, 1:20 am, pansz panshi...@routon.com wrote: meino.cra...@gmx.de 写道: 1. You need to set the HOME environment variable in order for vim to look for you user directory, by default it is there what you want, i.e. the C:\Document and Settings\userid\. 2. Windows gvim uses a

Re: Suppressing extra space when using keymap pinyin

2009-09-29 Thread Wu, Yue
On Mon, Sep 28, 2009 at 08:12:33PM -0400, Vera, Pedro L. wrote: Hello: I'm using gvim (in Linux) with set keymap=pinyin to type tonal marks on vowels when typing pinyin pronunciations for Chinese. However, vim is introducing an extra space after each tone mark as follows: wà ng This

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread David Fishburn
On Tue, Sep 29, 2009 at 12:17 AM, Mariano Mara mariano.m...@gmail.com wrote: I created a new database today in my local copy of pgsql and added it to my .vimrc let g:dbext_default_profile_Otrs = 'type=PGSQL:user=mariano:passwd=mybigpasswd:host=localhost:dbname=otrs' This is not the first

Re: Help - I've lost the ruler (column and line number)

2009-09-29 Thread Matt Wozniski
On Tue, Sep 29, 2009 at 12:02 AM, Harry Putnam rea...@newsguy.com wrote: Harry Putnam rea...@newsguy.com writes: My .vimrc is posted below... is there something there that is blocking the ruler from being displayed. Never mind... I found the culprit.   laststatus=2 I must have had that

Re: how to manage complex insertions with key combos

2009-09-29 Thread Harry Putnam
dr-dr xp drdr...@gmail.com writes: Move everything inside .vim/xpt/ to .vim/ Or set 'runtimepath' to include .vim/xpt/ Thank... just the ticket. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit

Move window to another tab

2009-09-29 Thread Steven Woody
Hi, Can I move a window to another tab? Thanks. -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer narke public key at http://subkeys.pgp.net:11371 (narkewo...@gmail.com) --~--~-~--~~~---~--~~ You received this message from the

Re: Move window to another tab

2009-09-29 Thread Jürgen Krämer
Hi, Steven Woody schrieb: Can I move a window to another tab? Thanks. yes, see :helpgrep move.*window.*tab 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: numeric argument passed to 'set xxx='

2009-09-29 Thread Steven Woody
On Tue, Sep 29, 2009 at 12:23 AM, Tinou tinou...@gmail.com wrote: On Mon, Sep 28, 2009 at 18:02, Steven Woody narkewo...@gmail.com wrote: Hi, Hello, I want to do this in my script: function IdentLvl(n) set tabstop=a:n set shiftwidth=a:n set softtabstop=a:n endfunc

Re: Move window to another tab

2009-09-29 Thread Tinou
On Tue, Sep 29, 2009 at 16:47, Steven Woody narkewo...@gmail.com wrote: Hi, Hello, Can I move a window to another tab? Thanks. http://vim.wikia.com/wiki/Move_current_window_between_tabs Kind regards, -- Étienne --~--~-~--~~~---~--~~ You received this

Re: Move window to another tab

2009-09-29 Thread Steven Woody
On Tue, Sep 29, 2009 at 10:58 PM, Tinou tinou...@gmail.com wrote: On Tue, Sep 29, 2009 at 16:47, Steven Woody narkewo...@gmail.com wrote: Hi, Hello, Can I move a window to another tab? Thanks. http://vim.wikia.com/wiki/Move_current_window_between_tabs Kind regards, Hi, because vim

Re: Reading keypad input

2009-09-29 Thread Tim Johnson
* pansz panshi...@routon.com [090928 22:53]: Hi - Thanks for the reply. If you are using console vim you should check the capabilities of your terminal program. Understood. if you are using gvim you should check X settings. Not sure where to look for X settings. (In the KDE

RE: xfce/terminal right click send vim to visual mode

2009-09-29 Thread Gene Kwiecinski
Does xterm support dynamically change the cursor shape? (use ESC code to change from block cursor to ibeam cursor and vice versa) Doesn't make sense, as a block- (either full- or half-) or underline-cursor is *on* a character, but an I-beam cursor is generally *between* characters.

RE: xfce/terminal right click send vim to visual mode

2009-09-29 Thread Gene Kwiecinski
Okay, flipped the coin, came out with longlines, let's try this again... Does xterm support dynamically change the cursor shape? (use ESC code to change from block cursor to ibeam cursor and vice versa) Doesn't make sense, as a block- (either full- or half-) or underline-cursor is *on* a

Re: how to manage complex insertions with key combos

2009-09-29 Thread Harry Putnam
Move everything inside .vim/xpt/ to .vim/ Or set 'runtimepath' to include .vim/xpt/ How can I make vim show me its runtimepath? I know about $VIMRUNTIME But that isn't the same as the runtimepath... is it? : echo $runtimepath nothing :h runtimepath (Shows the default for various OS but

Re: how to manage complex insertions with key combos

2009-09-29 Thread Luc Hermitte
Harry Putnam rea...@newsguy.com wrote: Or set 'runtimepath' to include .vim/xpt/ How can I make vim show me its runtimepath? :echo rtp :echo runtimepath :set rtp? :set runtimepath? -- Luc Hermitte http://lh-vim.googlecode.com/ http://hermitte.free.fr/vim/

RE: Suppressing extra space when using keymap pinyin

2009-09-29 Thread Vera, Pedro L.
I'm using gvim (in Linux) with set keymap=pinyin to type tonal marks on vowels when typing pinyin pronunciations for Chinese. However, vim is introducing an extra space after each tone mark as follows: wà ng This extra space only appears on the screen, since the actual txt file does

Re: how to manage complex insertions with key combos

2009-09-29 Thread Gary Johnson
On 2009-09-29, Harry Putnam wrote: Move everything inside .vim/xpt/ to .vim/ Or set 'runtimepath' to include .vim/xpt/ How can I make vim show me its runtimepath? :set rtp? or :echo rtp I know about $VIMRUNTIME But that isn't the same as the runtimepath... is it? No. See

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread Mariano Mara
On Sep 29, 10:38 am, David Fishburn dfishburn@gmail.com wrote: On Tue, Sep 29, 2009 at 12:17 AM, Mariano Mara mariano.m...@gmail.com wrote: I created a new database today in my local copy of pgsql and added it to my .vimrc let g:dbext_default_profile_Otrs =

Re: How to figure out which vim sesion keep a tempfile?

2009-09-29 Thread Peng Yu
On Sep 28, 4:06 pm, Christian Brabandt cbli...@256bit.org wrote: Hi Peng! On Mo, 28 Sep 2009, Peng Yu wrote: On Sep 28, 3:08 pm, Christian Brabandt cbli...@256bit.org wrote: lsofcan probably help. I don't have this command on my system. Also, I don't have root permission and my

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread Mikalai Chaly
On Tue, Sep 29, 2009 at 9:07 PM, Mariano Mara mariano.m...@gmail.comwrote: Hi Dave, thanks for your support. As requested here is the full output of both commands: http://vim.pastey.net/125871 http://vim.pastey.net/125872 I used a pastey to save everyone more than 200 lines of settings.

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread Mariano Mara
On Sep 29, 5:12 pm, Mikalai Chaly nch...@gmail.com wrote: On Tue, Sep 29, 2009 at 9:07 PM, Mariano Mara mariano.m...@gmail.comwrote: Hi Dave, thanks for your support. As requested here is the full output of both commands: http://vim.pastey.net/125871 http://vim.pastey.net/125872 I

Re: Unclutter .vimrc

2009-09-29 Thread Robert H
On 9/28/09 8:03 PM, bill lam wrote: On Mon, 28 Sep 2009, Robert H wrote: Isn't a DVCS a little overkill? svn and cvs are fine for what he wants to do. I guess you have better to try git yourself and compare the effort of setting up a repository from scratch. ymmv. Someday maybe. I am

using :g/\(\w\+\)/ to feed python function?

2009-09-29 Thread Reckoner
Is it possible to do something like: :g/\(\w+\) .*/python foo(\1) and then have all the matching lines changed to the output of the python foo() function? For example, + we are on line one we are on line two + and given def

Error in mutt man page?

2009-09-29 Thread Gary Johnson
The mutt.1 man page for mutt-1.5.20 says in the synopsis, mutt [-nx] [-e cmd] [-a file] [-F file] [-H file] [-i file] [-s subj] [-b addr] [-c addr] addr [...] That says to me that an 'addr' is required when using the -H option, which implies that mutt uses that 'addr' when sending the

Re: Error in mutt man page?

2009-09-29 Thread Gary Johnson
On 2009-09-29, Gary Johnson wrote: The mutt.1 man page for mutt-1.5.20 says in the synopsis, Oops! Wrong list. Sorry! Regards, Gary --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit

Re: using :g/\(\w\+\)/ to feed python function?

2009-09-29 Thread Hari Krishna Dara
On Tue, Sep 29, 2009 at 2:55 PM, Reckoner recko...@gmail.com wrote: Is it possible to do something like: :g/\(\w+\) .*/python foo(\1) and then have all the matching lines changed to the output of the python foo() function? For example, + we are on line

Re: xfce/terminal right click send vim to visual mode

2009-09-29 Thread Thomas Dickey
On Sep 29, 1:58 am, pansz panshi...@routon.com wrote: I'd always been trying to use xterm but in vain, man xterm... Does xterm support anti-aliased font? (The Xft font rendering) http://invisible-island.net/xterm/xterm.log.html#xterm_156 Patch #156 - 2001/4/28 - XFree86 4.0.3 document -fa,

Re: .vimrc Co. on Windows XP

2009-09-29 Thread pansz
Ben Fritz 写道: #2 looks like your most likely culprit, since you give a path ending in \vim\ for your user-specific configuration. Try renaming the directory to vimfiles. IMO this has confused so many people, ~/.vimrc is available in all platforms, why not keep the support of ~/.vim directory

Re: .vimrc Co. on Windows XP

2009-09-29 Thread winterTTr
use $HOME will change something like cygwin and is not good enough i think. So , just define $VIM and $VIMRUNTIME environment variables , it will works For me , as an example VIM== D:\Tools\VIM_72 VIMRUNTIME == D:\Tools\VIM_72\runtime 2009/9/29 meino.cra...@gmx.de: Hi,

to let buffers just open on a specific window

2009-09-29 Thread winterTTr
Is there a way to let the buffer just open on a specific windows ? OK , maybe i should use a example to explain my need. for example , i use vim open 3 file which will cause vim to own three buffers in the buffer list . : ls buffer 1 buffer 2 buffer 3 # just for show , not the output of and

Re: .vimrc Co. on Windows XP

2009-09-29 Thread pansz
winterTTr 写道: use $HOME will change something like cygwin and is not good enough i think. So , just define $VIM and $VIMRUNTIME environment variables , it will works If you use cygwin then use $HOME is definitely a better approach, since you can use your cygwin $HOME as your home directory,

Re: .vimrc Co. on Windows XP

2009-09-29 Thread winterTTr
yes , sometimes it is indeed a good way to make them the same but if you want to separate them , define VIM is another way to do so. :-) 2009/9/30 pansz panshi...@routon.com: winterTTr 写道: use $HOME will change something like cygwin and is not good enough i think. So , just define $VIM and

Re: separate gvim and vim in a single .vimrc [no .gvimrc]

2009-09-29 Thread pansz
Robert H 写道: if has(gui_running) set guioptions+=acegtm set guioptions-=T set guifont=Menlo:12 set lines=50 set columns=100 set mouse=a autocmd GUIEnter * set vb t_vb= colorscheme desert endif Do I really need more than that GUIEnter?

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread David Fishburn
Probably, that's just a minor bug in a function DB_PGSQL_execSql - it constructs command to be executed as ... Hi Mikalai, thanks for your answer. Your tip was very useful to point me in a good direction. Turns out there is no easy way to pass a password as a command line parameter to

Perform action when modifier key is released

2009-09-29 Thread Tim Garton
All, Does anyone know of a way to perform an action when the Ctrl key is released? Specifically I would like to write a plugin that while holding down Ctrl, you could press 'j' or 'k' to move forward or backwards through a the list of open buffers sorted in MRU order. Upon releasing the Ctrl

Re: dbext - keep asking user password in pgsql

2009-09-29 Thread Mariano Mara
On Sep 29, 11:10 pm, David Fishburn dfishburn@gmail.com wrote: Probably, that's just a minor bug in a function DB_PGSQL_execSql - it constructs command to be executed as ... Hi Mikalai, thanks for your answer. Your tip was very useful to point me in a good direction. Turns out

Re: split window many times and open many files in each at once

2009-09-29 Thread Tony Mechelynck
On 15/09/09 01:54, Hari Krishna Dara wrote: [...] Sorry, it should be -nargs, not -args. The completion allows you to complete filenames, by pressingTab, though won't help much with the wildcards. BTW, I don't actually know if wildcards can be used in :args. According to the help they can:

status line changes when xpt plugin is in path

2009-09-29 Thread Harry Putnam
I've been going round and round with the status line and ruler setting. I have these in .vimrc set ruler set laststatus=0 If I start vim I see a nice: 36,1 6% Or what ever percentage I'm at. However I do nothing more than put the xpt plugin into my path, when I