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

2010-01-21 Thread Christian Brabandt
On Thu, January 21, 2010 5:44 am, HanGyo Jung wrote: Hi! vim guru~ Oh please, don't call us guru. At least I myself would not consider myself it (there are many different things I don't know about vim) I want to do like below. Do you have any idea to do using simple command? before

vim reproducible crash, with backtrace report

2010-01-21 Thread pansz
The related things: About my system: Linux pansz-pc 2.6.24-26-generic #1 SMP Tue Dec 1 18:37:31 UTC 2009 i686 GNU/Linux Ubuntu 8.04.3 LTS About vim: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 21 2010 14:23:52) Included patches: 1-327 Compiled by p...@pansz-pc Big version with GTK2 GUI.

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

2010-01-21 Thread pansz
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. The block-select shortcut is Ctrl-V, not Ctrl-Q. Ctrl-V should work unless you had mapped it to something else. If that is the case,

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

2010-01-21 Thread Christian Brabandt
On Thu, January 21, 2010 9:08 am, pansz wrote: The block-select shortcut is Ctrl-V, not Ctrl-Q. Ctrl-V should work unless you had mapped it to something else. If that is the case, unmap Ctrl-V to let it have the default meaning. Additionally Ctrl-Q/Ctrl-S are usually flow control codes used

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

2010-01-21 Thread Sylvia Liu
Yes, I know there is CTRL-V. On PuTTY, CTRL-V is used to paste. That's why I want CTRL-Q. I don't know how to configure PuTTY to pass the CTRL-Q to vim. I have tried, but not working. Does anybody know how to make it work? On Thu, Jan 21, 2010 at 4:08 PM, pansz panshi...@routon.com wrote:

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

2010-01-21 Thread Sylvia Liu
Thanks a lot. According to your key words xon/xoff, I tried to configure the PuTTY, and fond a TTY. In TTY ctrl-q is for START, so I remap it to ctrl-x. Now vim working. Thanks On Thu, Jan 21, 2010 at 4:12 PM, Christian Brabandt cbli...@256bit.orgwrote: On Thu, January 21, 2010 9:08 am, pansz

Re: Double a Dictionnary content

2010-01-21 Thread Tim Chase
epanda wrote: I have feed a Dict with 5 keys and 5 values. I would like to modified all keys and values and then add them to my Dict You omit valuable information...how do you want to modify them (both the keys and the values)? A first pass guess: :let d={'a':1, 'b':2, 'c':3} :echo d

Re: Vim plugin to maintain journal?

2010-01-21 Thread Brett Stahlman
On Jan 20, 3:24 pm, Brett Stahlman brettstahl...@comcast.net wrote: 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. ...snip... I do exactly this using 2 plugins: Jnl (something I wrote for

Re: Paragraph formatting help

2010-01-21 Thread key....@googlemail.com
sorry for the late reply. for some reason i didnt see the message. the gq} does exactly what i want. thanks On Jan 13, 4:25 pm, Vlad Dogaru ddv...@rosedu.org wrote: On 01/13/2010 05:22 PM, sc wrote: On Wednesday 13 January 2010 09:18:11 amKeyanwrote: i know about the 'qwap' option,

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

2010-01-21 Thread HanGyo Jung
Hello, Christian. at least, you are the guru for me. I didn't know for ''. thanks a lot. On Jan 21, 3:01 am, Christian Brabandt cbli...@256bit.org wrote: On Thu, January 21, 2010 5:44 am, HanGyo Jung wrote: Hi! vim guru~ Oh please, don't call us guru. At least I myself would not consider

Re: vimdiff highlight too many lines

2010-01-21 Thread Carl Bolduc
One thing that strikes me in looking at that image is that all the lines in the right window end in ^M whereas the lines in the left window do not.  Your GNU diff apparently ignores those line-ending differences. Thank you very much Gary, the ^M were causing the problems. vimdiff looks much

map! not working in command mode

2010-01-21 Thread Foss User
I want to use ;; instead of Esc to return to normal mode. I want ;; to work everywhere Esc works, e.g. insert mode, command mode, visual mode. So, I did these mappings: map! ;; Esc map ;; Esc But in the command mode I am having trouble. For example, if in the command I type :set list;; It

Re: Plugin to manage buffers and tabs

2010-01-21 Thread Erik Falor
On Fri, Jan 22, 2010 at 12:17:27AM +0530, Foss User wrote: I usually work with many tabs and buffers. I don't find an easy way to switch between them. Ideally I would want something similar to Firefox's awesome bar, where I start typing a portion of the filename and vim shows up the

Re: map! not working in command mode

2010-01-21 Thread Matt Wozniski
On Thu, Jan 21, 2010 at 2:35 PM, Foss User wrote: I want to use ;; instead of Esc to return to normal mode. I want ;; to work everywhere Esc works, e.g. insert mode, command mode, visual mode. So, I did these mappings: map! ;; Esc map ;; Esc But in the command mode I am having trouble.

Re: vim reproducible crash, with backtrace report

2010-01-21 Thread Sean
Hi, I believe we found the condition to crash vim: --- while 1 inoremap exprPlugVimimChineseMode SIDVimimChineseMode() endwhile --- Note: the condition is that Plug name is not in consistence

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

2010-01-21 Thread Peter Berntsen
Brett, by adding set nobackup in the .vimrc file made it! No more filename~ Thanks! Peter On Jan 20, 11: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

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

2010-01-21 Thread Peter Berntsen
Gary, 'set nobackup' in the .vimrc file worked. I don't like to have my directories littered with filename~ Thanks! Peter On Jan 20, 11:26 pm, Gary Johnson garyj...@spocom.com wrote: On 2010-01-20, Peter Berntsen wrote: On 20 Jan, 06:27, Gary Johnson garyj...@spocom.com wrote: On

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

2010-01-21 Thread Peter Berntsen
I think this explains it. (Search for backup on the release page...) http://www.slackware.com/announce/changes11.0.php Spot on! Nice find. I didn't think of looking at the announcements for Slackware 10.2 through 11.0 How did you find that? Peter -- You received this message from the

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

2010-01-21 Thread Dan Wierenga
On Thu, Jan 21, 2010 at 1:36 PM, Peter Berntsen ptr...@gmail.com wrote: Gary, 'set nobackup'  in the .vimrc file worked. I don't like to have my directories littered with filename~ Thanks! Peter If that's the reason you want backup off then you might look into setting backupdir instead.

syntax highlighting broken!

2010-01-21 Thread tim
I'm trying to get syntax highlighting working, and it works for one user, but is broken for another user on the same server. This is what is showing for the one that is not working (an excerpt from my .vimrc): p1804397728mset p1804397728mruler p1804397728m show the cursor position all the

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

2010-01-21 Thread Brett Stahlman
On Jan 21, 3:47 pm, Peter Berntsen ptr...@gmail.com wrote: I think this explains it. (Search for backup on the release page...) http://www.slackware.com/announce/changes11.0.php Spot on! Nice find. I didn't think of looking at the announcements for Slackware 10.2 through 11.0 How did you

Re: Plugin to manage buffers and tabs

2010-01-21 Thread Andy Wokula
Am 21.01.2010 19:47, schrieb Foss User: I usually work with many tabs and buffers. I don't find an easy way to switch between them. Ideally I would want something similar to Firefox's awesome bar, where I start typing a portion of the filename and vim shows up the buffers/tabs with matching

netrw can't expand '~' correctly when do gx in windows

2010-01-21 Thread Wu, Yue
As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't support the '~' in path name, so I guess vim on windows doesn't expand '~' correctly. --

Re: listing total number of buffers in the statusline

2010-01-21 Thread John Magolske
* Christian Brabandt cbli...@256bit.org [100120 11:25]: On Wed, January 20, 2010 7:47 am, John Magolske wrote: I'd like to list in the statusline the current buffer number and the total number of open buffers. For example, if there are nine buffers open and I'm viewing buffer number two,

Re: netrw can't expand '~' correctly when do gx in windows

2010-01-21 Thread Charles E Campbell Jr
Wu, Yue wrote: As title, I've set $HOME in my .vimrc, but when I try to open the file under cursor on the line such as '~/doc/foo.pdf', vim can't run the app with the file with correct path, apps on windows usually don't support the '~' in path name, so I guess vim on windows doesn't expand '~'

Can VIM populate MRU (most recently used) list in windows?

2010-01-21 Thread Reckoner
Hi, I'm using vim 7.2 on Windows XP. Is it possible to have VIM populate the MRU ( most recently used ) file list in the start menu? thanks in advance. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

deadkey in linux gvim

2010-01-21 Thread bill lam
I have a problem in using us(intl) keyboard. In gvim, the deadkeys dead_circumflex (shift 6) and dead_breve (altgr+shift 6) does not work, it is dead but no composition. However dead_grave works. There is no problem in terminal and vim. geany (gui editor) has the same problem as in gvim, so I

Re: listing total number of buffers in the statusline

2010-01-21 Thread Christian Brabandt
On Fri, January 22, 2010 3:12 am, John Magolske wrote: count. Searching around some more, I found this solution [1]: set rulerformat=%22(%{g:zbuflistcount};%M%n\ %=%l,%c%V\ %P%) autocmd BufAdd * let g:zbuflistcount += 1 autocmd BufDelete * let g:zbuflistcount -= 1 autocmd VimEnter *

How to effectively call a function in another script?

2010-01-21 Thread pansz
suppose we have a script: script_a.vim: start of script a let s:str1 = test1 let s:str2 = test2 function s:bar() return s:str2 function Foo() return s:bar() . s:str1 end of script a With this script as plugin, I cannot call from command with :echo Foo() It will report s:str1 and