disable "window close button (X)"

2011-07-25 Thread warem
hi, i am using gvim in M$. i would like to know if it is possible to disable "window close button (X)" on the top right corner in gvim. my purpose is to prevent closing vim accidentally by pressing button X. thank you. -- You received this message from the "vim_use" maillist. Do not top-post!

Re: Plugin/addon managers

2011-07-25 Thread Eric Weir
On Jul 10, 2011, at 3:56 PM, ZyX wrote: > Try to do the following: >mkdir ~/.vam >cd ~/.vam >wget http://www.vim.org/scripts/download_script.php?src_id=13669 \ > -Ovim-addon-manager-0.4.3.zip >mkdir vim-addon-manager >cd vim-addon-manager >unzip ../vim-addon-manage

Re: Plugin/addon managers

2011-07-25 Thread Jimmy Wu
On Mon, Jul 25, 2011 at 20:33, Eric Weir wrote: > > On Jul 10, 2011, at 3:56 PM, ZyX wrote: > >> Try to do the following: >>    mkdir ~/.vam >>    cd ~/.vam >>    wget http://www.vim.org/scripts/download_script.php?src_id=13669 \ >>         -Ovim-addon-manager-0.4.3.zip >>    mkdir vim-addon-manag

Re: Installing a word count plugin -- or recommendations of other plugins

2011-07-25 Thread Albie Janse van Rensburg
Eric Weir wrote on 22/07/2011 02:03 AM: On Jul 21, 2011, at 7:38 PM, Andy Wokula wrote: I'd assume that a word count is supposed to count words ("word" as in :h word), not WORDs. So here is a simple command you can put in the vimrc: Thanks, Andy. I'm assuming given the above that you cooked t

Re: Plugin/addon managers

2011-07-25 Thread Eric Weir
On Jul 25, 2011, at 8:49 AM, Jimmy Wu wrote: > You must not have wget installed in your path. Wget is a useful thing > to have around but if you don't want to bother with installing it you > can replace that step by simply going to the url (with any web > browser) and downloading that zip file y

Re: Installing a word count plugin -- or recommendations of other plugins

2011-07-25 Thread Eric Weir
On Jul 25, 2011, at 9:18 AM, Albie Janse van Rensburg wrote: > Just for reference, this following command will return a list of matches too > (the regex can probably be improved): > > :%s/\<.\{-}\>//gn | set nohlsearch > > ... a "search and replace" command that only counts all matches (and do

Re: Plugin/addon managers

2011-07-25 Thread ZyX
Reply to message «Re: Plugin/addon managers», sent 17:24:01 25 July 2011, Monday by Eric Weir: Replace this line with curl -o vim-addon-manager-0.4.3.zip \ http://www.vim.org/scripts/download_script.php?src_id=13669 . VAM won't be able to install anything if neither wget nor curl is

Re: Installing a word count plugin -- or recommendations of other plugins

2011-07-25 Thread Albie Janse van Rensburg
On Jul 25, 2011, at 9:18 AM, Albie Janse van Rensburg wrote: :%s/\<.\{-}\>//gn | set nohlsearch Correction, it should be :%s/\<.\{-}\>//gn | nohlsearch the "set" makes your hlsearch setting permanent. -- .--. |

Re: Installing a word count plugin -- or recommendations of other plugins

2011-07-25 Thread ZyX
Reply to message «Re: Installing a word count plugin -- or recommendations of other plugins», sent 17:57:37 25 July 2011, Monday by Albie Janse van Rensburg: It also makes sense to use :%sm/... or :%s/\v<.{-}>//gn: both make you independent of 'magic' setting. Original message: > On Jul 25, 20

Re: Plugin/addon managers

2011-07-25 Thread Eric Weir
On Jul 25, 2011, at 9:43 AM, ZyX wrote: > Replace this line with >curl -o vim-addon-manager-0.4.3.zip \ > http://www.vim.org/scripts/download_script.php?src_id=13669 > . VAM won't be able to install anything if neither wget nor curl is installed > (first will also require some config

Re: Plugin/addon managers

2011-07-25 Thread Andrew Long
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 25 Jul 2011, at 14:43, ZyX wrote: > Reply to message «Re: Plugin/addon managers», > sent 17:24:01 25 July 2011, Monday > by Eric Weir: > > Replace this line with >curl -o vim-addon-manager-0.4.3.zip \ > http://www.vim.org/scripts/d

Re: why is call needed in vimscript?

2011-07-25 Thread Gary Johnson
On 2011-07-24, Benjamin R. Haskell wrote: > On Sun, 24 Jul 2011, Tim Chase wrote: > > >On 07/24/2011 09:34 PM, Tony Mechelynck wrote: > >>On 25/07/11 03:41, Jose Caballero wrote: > >>> I don't know what you get for ":help call" > >> > >>Hm, strange. > > > >Is this hitting the difference betwee

Re: Plugin/addon managers

2011-07-25 Thread ZyX
Reply to message «Re: Plugin/addon managers», sent 19:40:48 25 July 2011, Monday by Eric Weir: > The VAM zip package is in /.vam. Your instructions say to cd into > vim-addon-manager before executing the unzip command. When I got the above > result, I tried moving the zip package into /.vam/vim-a

echo from function that runs in insert mode

2011-07-25 Thread AK
I have a function where I added some debug echo messages but they don't seem to show up. The function runs in insert mode. The debug messages neither show up on screen or in :messages listing. -ak -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: echo from function that runs in insert mode

2011-07-25 Thread ZyX
Reply to message «echo from function that runs in insert mode», sent 23:48:09 25 July 2011, Monday by AK: Messages won't be shown on the screen if something causes screen to redraw. Messages won't appear in :messages output unless they are echoed by :echom[sg]. Nothing more can be said without e

Re: echo from function that runs in insert mode

2011-07-25 Thread AK
On 07/25/2011 03:58 PM, ZyX wrote: Reply to message «echo from function that runs in insert mode», sent 23:48:09 25 July 2011, Monday by AK: Messages won't be shown on the screen if something causes screen to redraw. Messages won't appear in :messages output unless they are echoed by :echom[sg].

Re: Use and meaning of

2011-07-25 Thread esquifit
On 24 Jul, 01:21, ZyX wrote: > Reply to message «Use and meaning of », > sent 03:02:27 24 July 2011, Sunday > by esquifit: > > > map XY MyscriptMyfunction > > noremap

guide to compiling vim on windows

2011-07-25 Thread skeept
I have been updating my vim windows with Yongwei's build (http:// wyw.dcweb.cn/#download) listed in http://www.vim.org/download.php but it the last two weeks I wasn't able to access this page. What I like in the binary that is provided there is that it was compiled against python 2.7, while cream

Re: echo from function that runs in insert mode

2011-07-25 Thread Jane Smith
try using msg_print("your message here") if you want them to be printed in game or note("message here") if they are going to be in an error or something in general look for a string nearby that could be printed where yours would be and steal that code. if you want to be fancy make a global debug v

Re: guide to compiling vim on windows

2011-07-25 Thread Tony Mechelynck
On 25/07/11 20:04, skeept wrote: I have been updating my vim windows with Yongwei's build (http:// wyw.dcweb.cn/#download) listed in http://www.vim.org/download.php but it the last two weeks I wasn't able to access this page. What I like in the binary that is provided there is that it was compi

gVim scrolling slow with syntax on (but not everywhere)

2011-07-25 Thread snitko
It's been like this forever really. Because I worked both on Ubuntu and Mac OS X interchangeably I didn't care as much. Now I think maybe it's time to finally find out what is wrong with it. THE PROBLEM: When I switch tabs or navigate the lines with arrows or J, K keys and when I do it repeatedly

Re: disable "window close button (X)"

2011-07-25 Thread Tony Mechelynck
On 25/07/11 05:36, warem wrote: hi, i am using gvim in M$. i would like to know if it is possible to disable "window close button (X)" on the top right corner in gvim. my purpose is to prevent closing vim accidentally by pressing button X. thank you. If you mean the button at the end of the

Re: Use and meaning of

2011-07-25 Thread ZyX
Reply to message «Re: Use and meaning of », sent 01:52:21 26 July 2011, Tuesday by esquifit: > As you see, there are three steps involved: > 1) key binding to foo > 2) map foo to something > 3) map something to :call bar() > > as opposed to two steps in your example: > 1) key binding to foo > 2)

Re: disable "window close button (X)"

2011-07-25 Thread Benjamin R. Haskell
On Sun, 24 Jul 2011, warem wrote: hi, i am using gvim in M$. i would like to know if it is possible to disable "window close button (X)" on the top right corner in gvim. my purpose is to prevent closing vim accidentally by pressing button X. Have you tried pressing the button? In Win7 (onl

Re: disable "window close button (X)"

2011-07-25 Thread Xell Liu
IMHO, autohotkey or autoti may help you here. As Tony said, GUI is not the business of gVim and you'd better handle it via other (native) Win32 GUI tools. On Tue, Jul 26, 2011 at 11:28 AM, Benjamin R. Haskell wrote: > On Sun, 24 Jul 2011, warem wrote: > > hi, >> >> i am using gvim in M$. i would