Re: If I always use mouse under GTK to browse text file in gvim, sometimes gvim stops working.

2010-08-17 Thread Matt Wozniski
On Tue, Aug 17, 2010 at 10:11 AM, H Xu xusu...@gmail.com wrote: On Tue, Aug 10, 2010 at 12:32 PM, H Xu xusu...@gmail.com wrote:  On 2010/8/9 16:10, Tony Mechelynck wrote: On 08/08/10 18:38, H Xu wrote: Hello everybody, If I always use mouse under GTK to browse text file in gvim,

Re: gvim project plugin

2010-07-29 Thread Matt Wozniski
On Sun, Jul 25, 2010 at 2:31 AM, packet fasteliteprogram...@gmail.com wrote: I get this error when i do that \C here the error: E10: \ should be followed by /, ? or E10 usually means you're running in compatible mode. Do you have a ~/.vimrc (or a ~/_vimrc on windows)? If not, create one

Re: Fwd: Re: synstack() in insert mode

2010-07-08 Thread Matt Wozniski
On Thu, Jul 8, 2010 at 5:55 PM, Benjamin R. Haskell wrote: On Thu, 8 Jul 2010, Bram Moolenaar wrote: I'll make it so that synstack() works when on the character just after the end of the line.  It was already working for an empty line, thus should also work when just after the last character.

Re: possible to change how vim defines a 'word'?

2010-05-10 Thread Matt Wozniski
On Sat, May 8, 2010 at 1:17 AM, niobe ben.carb...@gmail.com wrote: call motpat#Map(0, 'w', 'b', '\i\+\ze.\|$') Thanks AK, I'll have spend some time playing with this to set if I can get it to work. It may be better to use motpat to create a new key mapping just for ip addresses. Are you

Re: xterm geometry and vim display glitches

2010-04-21 Thread Matt Wozniski
On Tue, Apr 20, 2010 at 9:48 PM, bill lam wrote: lun, 19 Apr 2010, anatoly techtonik skribis: Can this be related to so-called 'compatible' mode? https://bugs.edge.launchpad.net/ubuntu/+source/vim/+bug/491615 Don't know.  My main point was that vim apparently ignore the fact that 'set

Re: Unexpected behaviour of File browser in multi-windows environment

2010-04-17 Thread Matt Wozniski
On Fri, Apr 16, 2010 at 8:23 PM, Charles E Campbell Jr drc...@campbellfamily.biz wrote: Tony Mechelynck wrote: On 04/03/10 16:24, Matt Wozniski wrote: On Thu, Mar 4, 2010 at 10:17 AM, Patrick Texier wrote: On Thu, 04 Mar 2010 09:54:01 -0500, Charles Campbell wrote: Content-Type: text/html

Re: Beginner's question

2010-04-12 Thread Matt Wozniski
On Mon, Apr 12, 2010 at 11:28 AM, Benoit Thomas wrote: Thanks, works great. Please bottom post in the future - It's the mailing list policy, and reading long threads can be painful when different posters are inconsistent. However, is there a more elegant way of doing this ? Otherwise I'll end

Re: Command aliases?

2010-04-12 Thread Matt Wozniski
On Mon, Apr 12, 2010 at 6:23 PM, Duane Johnson wrote: I'm a total newbie to Vim.  I'd like to map a new command-line command (:vimrc) to open up my vimrc file (:e ~/.vimrc). As an addition to the other answers you've gotten - is this really worth spending time optimizing? Especially when all

Re: gui dialogs

2010-04-08 Thread Matt Wozniski
On Thu, Apr 8, 2010 at 2:01 PM, Tom Link micat...@gmail.com wrote: You could also think of presenting the users a buffer with a form that can be easily parsed and set nomodifiable via CursorMoved(I) if the cursor is over a field tag. I use that approach in one plugin and it works well for

Re: java keyword syntax highlighting

2010-04-05 Thread Matt Wozniski
On Mon, Apr 5, 2010 at 6:26 PM, chardson wrote: I've tried setting all of the following evs to 1, but it didn't help.   java_allow_cpp_keywords   java_highlight_all   java_highlight_java_lang_ids By evs, did you mean environment variables? Those aren't environment variables, they're

Re: FIXME syntax highlighting.

2010-03-26 Thread Matt Wozniski
On Fri, Mar 26, 2010 at 4:28 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 27/01/10 05:37, Matt Wozniski wrote: [...] In my experience, usingEsc  as the LHS of a map can have disastrous side effects in terminal vim, up to and including breaking most of the non-alphanumeric keys

Re: gvim -u NORC does not load plugins

2010-03-21 Thread Matt Wozniski
On Sun, Mar 21, 2010 at 2:10 PM, Jean Johner jean.joh...@cea.fr wrote: Hello, When I type gvim -u NORC file1 and :e . (to launch netrw plugin) I get a blank page. For me, -u NORC does not load plugins. It behaves exactly as -u NONE. May somebody try? AFAICS, it works fine if you use

Re: default color scheme

2010-03-15 Thread Matt Wozniski
On Mon, Mar 15, 2010 at 2:53 PM, Ben Kim b...@tamu.edu wrote: Dear list, CentOS, vim7.0 I wanted to use my own color scheme and made it /usr/share/vim/vim70/colors/default.vim. But vim does not seem to use it when I open a file, or use vimdiff. I have to do :colors default explicitly.

Re: default color scheme

2010-03-15 Thread Matt Wozniski
On Mon, Mar 15, 2010 at 3:37 PM, Matt Wozniski m...@drexel.edu wrote: On Mon, Mar 15, 2010 at 2:53 PM, Ben Kim b...@tamu.edu wrote: Dear list, CentOS, vim7.0 I wanted to use my own color scheme and made it /usr/share/vim/vim70/colors/default.vim. But vim does not seem to use it when I

Re: Naive question: scrolling down keeping only 1 line

2010-03-11 Thread Matt Wozniski
On Thu, Mar 11, 2010 at 7:11 AM, Andy Wokula anw...@yahoo.de wrote: Am 27.02.2010 05:39, schrieb Matt Wozniski: On Fri, Feb 26, 2010 at 5:23 PM, Jean Johnerjean.joh...@cea.fr  wrote: On Feb 26, 6:58 pm, Ben Fritzfritzophre...@gmail.com  wrote: 2. Re-map CTRL-F/CTRL-B with an :nnoremap

Re: saving and setting option

2010-03-10 Thread Matt Wozniski
On Wed, Mar 10, 2010 at 7:07 AM, Jürgen Krämer jottka...@googlemail.com wrote: Hi, j.hofm...@e-punkt.eu wrote: I d like to do the following: - remember the current value of an option, i.e. 'enc'  , into a variable by one vim script - Doing some stuff, which changes the option - re-set

Re: Please, suggest a font!

2010-03-06 Thread Matt Wozniski
On Sat, Mar 6, 2010 at 5:14 PM, Dotan Cohen wrote: You can :set rightleft to reverse the whole split-window in gvim, or (on Linux) you can run Vim in a true-bidi terminal such as mlterm. When $TERM is mlterm at startup, Vim sets 'termbidi' which means that the terminal, not Vim, is in charge

Re: Unexpected behaviour of File browser in multi-windows environment

2010-03-04 Thread Matt Wozniski
On Thu, Mar 4, 2010 at 10:17 AM, Patrick Texier wrote: On Thu, 04 Mar 2010 09:54:01 -0500, Charles Campbell wrote: Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable let lastlinenbsp;nbsp; =3D line('$')nbsp;nbsp;nbsp;nbsp; ___^= br

Re: Naive question: scrolling down keeping only 1 line

2010-02-26 Thread Matt Wozniski
On Fri, Feb 26, 2010 at 5:23 PM, Jean Johner jean.joh...@cea.fr wrote: On Feb 26, 6:58 pm, Ben Fritz fritzophre...@gmail.com wrote: 2. Re-map CTRL-F/CTRL-B with an :nnoremap command that issues the command, then scrolls by 1 line with CTRL-Y/CTRL-E in the correct direction to get the desired

PATCH: 'cindent' is too forgiving for function return type decls

2010-02-24 Thread Matt Wozniski
In #vim, ShingRay pointed out a bug in cindent, which can be reproduced with: echo $'void f() {\nif (1)\n;\n}' \ | vim - -u NONE -N -c 'set ft=c' -c 'norm gg=G' The above adds an extra 'shiftwidth' to every line. It's caused by vim mistakenly deciding that void f() { is specifying

Re: PATCH: 'cindent' is too forgiving for function return type decls

2010-02-24 Thread Matt Wozniski
On Thu, Feb 25, 2010 at 1:37 AM, Matt Wozniski m...@drexel.edu wrote: diff -r 903fcd726d90 src/misc1.c --- a/src/misc1.c       Thu Feb 11 18:54:43 2010 +0100 +++ b/src/misc1.c       Thu Feb 25 01:21:16 2010 -0500 ... Obviously, I meant for this to go to vim_dev instead of vim_use. I need

Re: hls Colour

2010-02-23 Thread Matt Wozniski
On Tue, Feb 23, 2010 at 2:30 AM, Ben Schmidt wrote: On 22/02/10 3:25 AM, Spencer Collyer wrote: On Fri, 19 Feb 2010 11:54:43 +, Paul wrote: When I have hls on, the searched words are highlighted. When I press n or # to jump through them, the page might scroll up or down and there could

Re: How powerful is language build in vim compare with the language build in emacs?

2010-02-17 Thread Matt Wozniski
On Wed, Feb 17, 2010 at 1:29 PM, Vincent Arnoux vincent.arn...@gmail.com wrote: On Wed, Feb 17, 2010 at 17:26, Tim Chase v...@tim.thechases.com wrote: Innocent question incoming: Wouldn't it be a good idea to write a binding of Vimscript in, say, Python or Lua or any other more widely spread

Re: vimrc ignores formatoptions

2010-02-12 Thread Matt Wozniski
On Fri, Feb 12, 2010 at 1:10 PM, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 12/02/10 18:48, Gary Johnson wrote: On 2010-02-12, Tony Mechelynck wrote: If you worry that comment leaders are inserted while pasting, then you should use :set paste (see :help 'paste') temporarily when

Re: Print via vim

2010-02-11 Thread Matt Wozniski
On Thu, Feb 11, 2010 at 6:56 AM, Joan Miquel Torres Rigo wrote: 2010/2/11 Anand V Looks like the only way out is to cut the file into different smaller files (as suggested by sc)  and take printouts separately and then look at them placed in order.Too much work :) For one-time

Re: Vim 7.2 Installation trouble on Linux

2010-02-11 Thread Matt Wozniski
2010/2/11 Raúl Núñez de Arenas Coronado: Saluton Daniel :) Daniel Pena d...@gmail.com skribis: checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with –with-tlib. I downloaded the ncurses 5.7,

Re: How do I enable Ruby support in VIM

2010-02-08 Thread Matt Wozniski
On Sun, Feb 7, 2010 at 6:45 PM, skm1001 sam.mcingv...@gmail.com wrote: The easiest way, as I said, is just to install the vim-gnome package, which was compiled with Ruby support. I'll mostly be ssh'ing into the box and just working from a terminal.  I thought the vim-gnome package only works

Re: Command from eval

2010-02-08 Thread Matt Wozniski
On Sun, Feb 7, 2010 at 12:36 PM, Sean DeNigris wrote: What I want to do is: eval(some string that executes a command) The only thing I've come up with is calling a function that calls exec e.g. eval(DoCommand('echo 5')) function DoCommand(cmd)  exec a:cmd endfunction But I wanted to

Re: HELP: Special file extentions in split pane.

2010-02-08 Thread Matt Wozniski
On Mon, Feb 8, 2010 at 11:05 AM, File077 wrote: After consulting with the IRC room, and reading the help files in vim on filetypes, I've tried everything I can think of and find.  My work uses .page file extensions for php files.  They are syntax highlighted when I open them, thankfully

Re: How do I enable Ruby support in VIM

2010-02-07 Thread Matt Wozniski
On Sun, Feb 7, 2010 at 10:36 AM, skm1001 wrote: Ruby has to be compiled in.  I don't think you can enable it. Is there a simple way to re-compile vim?  As of now, I don't even think I have the source on my machine.  Is this the easiest (only) way to get Ruby support? The easiest way, as I

Re: How to set vimrc for automatic retab and gggqG

2010-02-06 Thread Matt Wozniski
On Sat, Feb 6, 2010 at 1:50 PM, Girish Venkatasubramanian wrote: Thanks John - that took care of the retab issue. I have another question, though. I decided against setting a textwidth and formatoptions and au normal gqG because of a couple of issues (see below). I am letting wordwrap

Re: am i using

2010-02-04 Thread Matt Wozniski
On Thu, Feb 4, 2010 at 6:52 PM, Michael Henry v...@drmikehenry.com wrote: On 02/04/2010 10:31 AM, Ben Fritz wrote: The ONLY things I personally get from compiling Vim myself (not having modified the source by hand yet) are: 1. I can always have the absolute latest version 2. I can try out

Re: am i using

2010-02-03 Thread Matt Wozniski
On Wed, Feb 3, 2010 at 3:26 AM, pansz wrote: Maybe on certain Linux distributions which keep their Vim a year or more out of date this idea makes sense, but I still think even serious users can work for years without ever touching the C code. To do compile yourself is one thing, to touch the

Re: autocmd fails for a filetype

2010-02-03 Thread Matt Wozniski
On Wed, Feb 3, 2010 at 12:14 AM, Tim Johnson wrote: * Tim Johnson t...@johnsons-web.com [100202 17:27]: I'm using vim normal version, gvim huge version both of version number 7.2 on slackware 13.0. I have the following lines in my .vimrc autocmd BufNewFile,BufRead *.lsp       setf newlisp

Re: search for null

2010-01-29 Thread Matt Wozniski
2010/1/29 Dominique Pellé dominique.pe...@gmail.com: Ron Olson wrote: Hi all- Is there a particular way I can use to search for instances of null (ascii 0, hex 0x0) in a file? I haven't come up with a way to do so, yet there is clearly a null in my file as moving over it shows ascii 0 and

Re: user function for multiple substitution

2010-01-28 Thread Matt Wozniski
On Thu, Jan 28, 2010 at 9:43 PM, bill lam cbill@gmail.com wrote: Now I use bash script sed to convert esperanto x-system to unicode #!/bin/sh sed -e s/cx/ĉ/g -e s/gx/ĝ/g -e s/hx/ĥ/g ... ktp so that :%!xeo to convert whole file or visual hilite region then :!seo How to define a user

Re: ctrl-j mapping not working properly

2010-01-27 Thread Matt Wozniski
On Wed, Jan 27, 2010 at 8:12 AM, Mr.SpOOn wrote: Charles Campbell: I suggest that you use nn c-j c-wj so that you don't get remapped, and keep the mapping active only in normal mode. I don't really get the 'nnoremap' command. I mean, I know it's useful in this situation: :nnoreamp x y

Re: FIXME syntax highlighting.

2010-01-26 Thread Matt Wozniski
On Tue, Jan 26, 2010 at 10:57 AM, A. S. Budden abud...@gmail.com wrote: 2010/1/26 Stroller strol...@stellar.eclipse.co.uk: Hi there, I joined this group because I've been trying to use vim more seriously for about a month or so now, but every problem I have encountered to date I have been

Re: How to get vim patch version number in vim script?

2010-01-26 Thread Matt Wozniski
On Tue, Jan 26, 2010 at 11:34 PM, John Little wrote: Sorry, prematurely posted.  Along the lines of     if !has(visual)        echo Tiny    elseif !has(eval)        echo Small    elseif !has(arabic)        echo Normal    elseif !has(profile)        echo Big    else        echo Huge    

Re: Split window vertically and have both sides show one viewport?

2010-01-25 Thread Matt Wozniski
On Sun, Jan 24, 2010 at 7:53 AM, Christian Brabandt wrote: Hi You'll! ^ lol :-) -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php

Re: tags searching after :bd command.

2010-01-25 Thread Matt Wozniski
I see no one ever answered this, so.. I will, for posterity at least. :) On Tue, Jan 12, 2010 at 6:07 AM, Milan Radovich wrote: Hello, I noticed a strange behaviour of tag searching in deleted buffers. Following is a key sequence to perform after vim is started to reproduce the problem

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: Odd behavior of folds...

2010-01-20 Thread Matt Wozniski
On Wed, Jan 20, 2010 at 5:12 AM, Andy Wokula wrote: Am 20.01.2010 02:19, schrieb Benjamin R. Haskell: On Tue, 19 Jan 2010, Matt Wozniski wrote: On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell wrote: Is there some way to get the auto-opening via 'l'-motion that I'm looking for?  I much

Re: Variable replacement/interpolation/dereferencing(?)

2010-01-20 Thread Matt Wozniski
On Wed, Jan 20, 2010 at 11:23 AM, Ben Fritz wrote: I have additionally found (at least on Windows) that the :cs add command will NOT work with spaces in the path. Not sure why, but I've The backend code for it uses strtok() to split its argument apart on spaces, rather than following vim's

Re: Hi all, I have a question about vim

2010-01-19 Thread Matt Wozniski
On Tue, Jan 19, 2010 at 3:51 AM, Jürgen Krämer wrote: Hi, Albie Janse van Rensburg wrote: Matt Wozniski wrote on 19/01/2010 07:04 AM: Your vim is running in vi-compatible mode.  Fixing this should be as easy as     echo set compatible ~/.vimrc ~Matt Shouldn't that be as follows

Re: Odd behavior of folds...

2010-01-19 Thread Matt Wozniski
On Tue, Jan 19, 2010 at 8:01 PM, Benjamin R. Haskell v...@benizi.com wrote: Using this following minimal example, with foldmethod=marker: $ cat foldtest.txt {{{ }}} If I close the fold on the last character of a line, 'l' will not open the fold. This is by design, l only opens the fold if

Re: Hi all, I have a question about vim

2010-01-18 Thread Matt Wozniski
On Mon, Jan 18, 2010 at 10:45 PM, gaoxt1983 wrote: There is a situation I must use a source-compiled vim, so I downloaded vim72 and run configure , make, make install. But I want to use nerdtree plugin, when I copy the files into .vim directory, restart vim, it gives me error message like

Re: The ultimative vimrc ;)?

2010-01-17 Thread Matt Wozniski
On Sun, Jan 17, 2010 at 6:32 AM, amix wrote: Hi guys I just want to share my vimrc which I have worked for at least 5 years now...: http://amix.dk/blog/post/19486#The-ultimative-Vim-configuration-vimrc Happy vim'ming! amix I think that set nowritebackup and set noswapfile are bad

Re: Perl Colour Scheme

2010-01-12 Thread Matt Wozniski
On Tue, Jan 12, 2010 at 10:11 AM, Brett Stahlman wrote: On Jan 12, 8:06 am, Paul google01...@rainslide.net wrote: On Tue, Jan 12, 2010 at 07:32:54AM -0600, Stahlman Family wrote: What does :echo colors_name show before you edit the perl file? When I start vim with no arguments, both :echo

Re: convert syntax highlighted text to RTF?

2010-01-12 Thread Matt Wozniski
On Tue, Jan 12, 2010 at 1:40 PM, Reckoner wrote: Unfortunately, I have office 2003, not 2007. So, it doesn't work that way in Office 2003. Any other ideas? Really? Hm. I remember office supporting that all the way back from 2000 on... ~Matt -- You received this message from the vim_use

Re: edit modus i enter?

2010-01-11 Thread Matt Wozniski
On Sat, Jan 9, 2010 at 1:59 PM, Tony Mechelynck wrote: On 09/01/10 18:13, hendrikus godvliet wrote: How do i have to understand to break a line - enter - when i am in edit modus. Do i have to go to i insert mode or is there a command in edit modus to do so. To break an existing line in

Re: edit modus i enter?

2010-01-11 Thread Matt Wozniski
On Mon, Jan 11, 2010 at 11:15 AM, Tim Chase wrote: Matt Wozniski wrote: On Sat, Jan 9, 2010 at 1:59 PM, Tony Mechelynck wrote: On 09/01/10 18:13, hendrikus godvliet wrote: How do i have to understand to break a line - enter - when i am in edit modus. Do i have to go to i insert mode

Re: opening vim menu by characters'sequence or other way

2010-01-11 Thread Matt Wozniski
On Mon, Jan 11, 2010 at 2:30 AM, epanda wrote: Hi, My goal is to open a menu. I have mapped W, can I let A-wCR in my _vimrc to open it ? Thanks See the :simalt command, if it applies to your vim version it might help. ~Matt -- You received this message from the vim_use maillist. For

Re: [bug report] cygwin 1.7 compiling error

2010-01-11 Thread Matt Wozniski
On Sun, Jan 10, 2010 at 9:22 AM, Bram Moolenaar wrote: Sean Ma wrote: I used to have this simple command to build my own gVim.exe (cygwin independent) for Windows: vim123()    { cd /usr/share/vim svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7 cd vim7/src make -f Make_cyg.mak;

Re: Remote Mouse Support

2010-01-11 Thread Matt Wozniski
On Mon, Jan 11, 2010 at 8:04 AM, Paul wrote: On Fri, Jan 08, 2010 at 06:02:08PM -0500, Matt Wozniski wrote: You seem to be having two separate issues.  As far as getting the mouse working, the only requirements are that a) your terminal emulator supports sending mouse clicks to applications

Re: Remote Mouse Support

2010-01-08 Thread Matt Wozniski
On Thu, Jan 7, 2010 at 12:21 PM, Paul wrote: Hi, I'm wondering if this is even possible: I want to ssh to a remote server, open vim, split a file, and drag the split separator around with the mouse. More importantly, I want to use the * register, so I can select text with the keyboard and put

Re: how to abbreviate multiple words

2010-01-06 Thread Matt Wozniski
On Wed, Jan 6, 2010 at 8:10 PM, Tim Chase wrote: Brian Golding wrote: Is it possible to abbreviate multiple words.   For example to enter a command such as ab by using using so that anytime the words by using are entered, they will be replaced by just using? Though Ben has already given

Re: Right click in Motif GVim.

2010-01-06 Thread Matt Wozniski
On Sat, Jan 2, 2010 at 12:39 PM, Tinou wrote: Hello, On two regularly updated ArchLinux, I've been using Motif GVim for quite some time now and can remember the day (though not exactly when) when right click did something useful (extending the selection or popuping up a menu or both). But

Re: non-trivial regexp needed, please help

2010-01-04 Thread Matt Wozniski
On Mon, Jan 4, 2010 at 1:12 PM, Tim Chase wrote: I am trying to put together a regexp to find pieces of text within one line, but I do not know their order. ... Also, best if it would be flexible enough to support arbitrary number of samples without much typing. I don't think there's a

Re: confirm func

2009-12-29 Thread Matt Wozniski
On Tue, Dec 29, 2009 at 7:53 AM, epanda wrote: Hi, Is it possible to use confirm to display a message for color but without confirmation of user ? I'm not completely sure I understand what you're asking, but maybe you're looking for :echohl ? ~Matt -- You received this message from the

Re: start search at current line, wrap around?

2009-12-28 Thread Matt Wozniski
On Sun, Dec 27, 2009 at 10:14 PM, Tim Chase wrote: You can also use * as the range:    :*s/foo/bar/g assuming you have the default 'cpoptions' set: Wow, I never noticed that particular cpoption. That will come in quite handy to me, thanks! ~Matt -- You received this message from the

Re: when to use esc or c-c in mappings

2009-12-28 Thread Matt Wozniski
On Mon, Dec 28, 2009 at 9:01 AM, Tim Chase wrote: Esc  or CTRL-[ End insert or Replace mode, go back to Normal mode.                  Finish abbreviation. CTRL-C Quit insert mode, go back to Normal mode.         Do not check for abbreviations.         Does not trigger the |InsertLeave|

Re: this nmap and imap work, but the vmap does not

2009-12-28 Thread Matt Wozniski
On Mon, Dec 28, 2009 at 11:01 AM, Ben Fritz wrote: On Dec 27, 9:46 am, Bee wrote: Adding esc did allow it to work, but only on the last line of the selection. How can the selection be passed on? Oops, I neglected that part. Your explicit visual-mode mapping works on every line because

Re: counting keystrokes

2009-12-23 Thread Matt Wozniski
On Wed, Dec 23, 2009 at 3:20 PM, Erik Falor wrote: At the most fundamental level, one can record a single macro of their editing session ... This wouldn't help the OP much, but would make possible Vim-Golf competitions to see who could transform a given file into a designated form through the

Re: '*' search without cursor move

2009-12-22 Thread Matt Wozniski
On Tue, Dec 22, 2009 at 5:16 AM, Roald de Vries wrote: On Dec 22, 2009, at 4:26 AM, pansz wrote: Hi, When I use '*' command to search and highlight current word in a file, the cursor also moves to the next match.  But at many cases, I hope the cursor can be stay where it is and don't move

Re: Help with map for FuzzyFinder

2009-12-16 Thread Matt Wozniski
Please bottom post on this mailing list. Reformatting... On Wed, Dec 16, 2009 at 2:43 PM, Matt Southerden wrote: On Dec 16, 6:50 pm, Christian Brabandt wrote: Hi Matt! On Mi, 16 Dez 2009, Matt Southerden wrote: Thanks. :) Out of interest, why the C-u? :h c_TRL-U I mean; I'm not

Re: Transfer between clipboard and vim in putty console

2009-12-15 Thread Matt Wozniski
On Sun, Dec 13, 2009 at 10:22 PM, Suresh Govindachar wrote: Hello,  Figured out this issue on linux:  It does not matter if vim is  built with + or - for clipboard and xterm_clipboard;  in both  situations it is possible to easily transfer data from the console  to a vim buffer and vice

Re: Mapping special char

2009-12-15 Thread Matt Wozniski
On Mon, Dec 14, 2009 at 4:55 AM, Torsten Andre q...@takb.net wrote: Hello, I'd like to map vim's command for ctags' jump to definition C-\ to a new key, though I'm having some trouble with it. Before that vim shall split the window. I tried the following: map F5 :sp CR C-\, map F5 :sp CR

Re: How show the file open by :new in a new tab?

2009-12-15 Thread Matt Wozniski
On Tue, Dec 15, 2009 at 1:06 PM, Peng Yu wrote: Suppose that I open a file by new. And later on, I want to move it in a new tab. Could somebody let me know what command I can use? C-wT That closes the current window and then creates a new tab containing only the buffer that was contained in

Re: How to control the behavior acted by vim after searching in files with grep ?

2009-12-15 Thread Matt Wozniski
On Tue, Dec 15, 2009 at 9:05 PM, Lenin Lee wrote: Hi there, I used grep to search in files, but vim always opens the first matching file. I wonder how to control this behavior, is there a way to stop opening a match automatically Use the ! flag. :grep! foo *.c or open it in a new

Re: Caught deadly signal ABRT

2009-12-14 Thread Matt Wozniski
On Fri, Dec 4, 2009 at 12:52 AM, MK wrote: I just installed ubuntu 9.10 and the stock vim does not recognize --remote, which totally cripples the way I work with it, so I built from the 7.2 source, which I have done on FC and debian quite a few times.  It appears to build fine, but when

Re: Issues with ftdetect

2009-12-13 Thread Matt Wozniski
On Tue, Dec 1, 2009 at 10:51 PM, Tony Mechelynck wrote: On 10/11/09 06:29, Matt Wozniski wrote: IIRC, ftdetect files are read at the first filetype on (or syntax on, which indirectly calls the former), and aren't re-read after 'runtimepath' is changed.  So, I haven't tested this, but I'm

Re: How to compile with guifont ?

2009-12-13 Thread Matt Wozniski
On Wed, Dec 2, 2009 at 8:27 AM, Timothy Madden wrote: :set guifont=* Works on Win32, GTK, Mac OS and Photon. Looks like I have none of these. Thank you for the answers. I think I have to leave this problem as it is for now ... It also works fine for my gvim, which is X11-Motif... I'd be

Re: Highlighting of spell corrected words

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 9:06 AM, Christian Brabandt wrote: On Tue, November 17, 2009 12:33 pm, Eric Smith wrote: The new spelling system for vim is great and I use a macro to automatically correct misspelt words.  When I am really sloppy this automatic correction (to the first option in the

Re: Waht is the replacemente for word under cursor

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 11:01 AM, Christian Brabandt wrote: On Tue, November 17, 2009 4:16 pm, Robbo wrote: I've just looked for :h cword but if i write :map C-[ :ptag cword it doesn't work. Try if this works: :map C-[ :exe :ptag . expand(cword)CR I'm surprised no one has suggested:

Re: Waht is the replacemente for word under cursor

2009-11-17 Thread Matt Wozniski
On Tue, Nov 17, 2009 at 2:51 PM, Christian Brabandt wrote: Hi Matt! Hi! On Di, 17 Nov 2009, Matt Wozniski wrote: I'm surprised no one has suggested: :nnoremap C-[ C-wC-} Maybe I'm missing some subtlety that makes that incorrect? I simply don't know this, since I don't use neither

Re: gvim sigfaults randomly on Ubuntu 9.04 64bit linux

2009-11-17 Thread Matt Wozniski
2009/11/17 Dominique Pellé dominique.pe...@gmail.com: Mahmoud Abdelkader  wrote: Sometimes, in the middle of a gVim session with multiple tabs open as well as various splits in those tabs, my gVim will just segfaut with the stack trace below (http://paste.pocoo.org/show/151270/) Error

Re: iconv() problem

2009-11-15 Thread Matt Wozniski
2009/11/15 Yongwei Wu wuyong...@gmail.com: Hi Bram and all, The help on iconv() writes:                When the conversion fails an empty string is returned. In fact, I have not found a way to make the conversion fail. When a file containing the following text encoded in cp936 is read in

Re: customize my initial window size

2009-11-14 Thread Matt Wozniski
On Fri, Nov 13, 2009 at 11:24 PM, Jason wrote: I would like to set the initial window size and position of Gvim in Ubuntu. In my .vimrc file, I have: if has(gui_running)   GUI is running or is about to start.   Maximize gvim window.  set lines=99 columns=100 This should work; I'm not sure

Re: dynamic abbrev expansion

2009-11-13 Thread Matt Wozniski
On Fri, Nov 13, 2009 at 11:04 PM, bill lam wrote: On Sat, 14 Nov 2009, Kana Natsuno wrote: How to do dynamic abbrev expansion like that in emacs Meta-/ ? Type C-n or C-p in Insert mode. Got it, thank you. Vim supports 13 different types of insert-mode completion, so it might be

Re: gvimdiff without sourcing .cshrc in linux/unix

2009-11-11 Thread Matt Wozniski
On Wed, Nov 11, 2009 at 5:10 AM, Bu Rak wrote: Hi, I want to know is there a way to make vim not source .cshrc file when gvimdiff is used... Thanks, Burak vim should never source a .cshrc file. I would assume that you're actually seeing something wrong in your environment because the

Re: open buffer in other window without changing cursor position

2009-11-10 Thread Matt Wozniski
On Sat, Nov 7, 2009 at 3:38 PM, Sergey Vakulenko wrote: Hi Everybody! I describe in bref desired behavior: Imaginate that i have two vsplit window. I'm in window number 1(left). I want to open buffer in window 2(right). When I use command b to load buffer in window 2, i must open it

Re: colors and vimrc in sudo and su

2009-11-10 Thread Matt Wozniski
On Sun, Nov 8, 2009 at 8:17 PM, pansz wrote: James Michael Fultz 写道: So why do you think sudo -e or sudo edit is better than sudo vi ? The latter does not preserve your personal Vim environment. oops, got it. I setup my sudo to always preserve my personal environment for all commands,

Re: Controlling shell indent

2009-11-10 Thread Matt Wozniski
On Mon, Nov 9, 2009 at 10:56 PM, Gary Johnson wrote: On 2009-11-09, James Michael Fultz wrote: * Gary Johnson garyj...@spocom.com [2009-11-09 17:13 -0800]: The problem is that the latest official release of vim is 7.2 with no patches.  It is up to anyone building a patched version to

Re: different tabspace in different projects

2009-11-09 Thread Matt Wozniski
On Wed, Nov 4, 2009 at 10:33 PM, James Michael Fultz wrote: * allstars allstars@gmail.com [2009-11-04 19:04 -0800]: now i work with different projects developed by different teams however they have different tabspace setting ... so i am wondering is there a faster way to switch tabspace

Re: Issues with ftdetect

2009-11-09 Thread Matt Wozniski
On Thu, Nov 5, 2009 at 2:15 PM, Chris Sutcliffe wrote: I don't see anything wrong with your setup for sharing configuration files between Windows and Cygwin, but instead of modifying 'rtp', I put all my personal configuration files in ~/vimfiles and created ~/.vim as a Cygwin symbolic link

Re: insert file above the cursor

2009-10-23 Thread Matt Wozniski
On Fri, Oct 23, 2009 at 3:17 PM, Jabba Laci wrote: Hi, Do you know an easy way to insert a file _above_ the cursor? :r file   - inserts below the cursor It would be logical to have :R to insert above. Actually, I want to improve the script below with the option xR. Thanks, Laszlo

Re: insert file above the cursor

2009-10-23 Thread Matt Wozniski
On Fri, Oct 23, 2009 at 3:35 PM, Tim Chase wrote: Do you know an easy way to insert a file _above_ the cursor? :r file   - inserts below the cursor You can specify the location either absolutely or relatively with the usual Ex range modifiers.  You likely want   :-r file.txt (which is

Re: buf num how to reuse when use :bw del some buf?

2009-10-22 Thread Matt Wozniski
On Thu, Oct 22, 2009 at 7:50 AM, fvw wrote: Hello all:      I use vim and open a lots bufs to edit.      The bufnr is up to 10, when i use :bw num to del buf 1-9      When i open a new file the buf num is 11?      How can i reuse the buf num 1-9 ?- Thanks. You can't. Buffer numbers are

Re: Setting fenc or enc from an autocommand

2009-10-21 Thread Matt Wozniski
On Wed, Oct 21, 2009 at 1:49 AM, Christian Brabandt wrote: On Wed, October 21, 2009 12:54 am, Matt Wozniski wrote: bash-3.2$ echo 'int main() { printf(Matt\n); }' print_my_name.c bash-3.2$ gcc print_my_name.c -o print_my_name [...] bash-3.2$ ./print_my_name Matt Wozniski Now

Re: Setting fenc or enc from an autocommand

2009-10-20 Thread Matt Wozniski
print_my_name.c: In function ‘main’: print_my_name.c:1: warning: incompatible implicit declaration of built-in function ‘printf’ bash-3.2$ ./print_my_name Matt Wozniski # Works without BOM... bash-3.2$ echo $'\xEF\xBB\xBF''int main() { printf(Matt\n); }' print_my_name.c; bash-3.2$ gcc

Re: Error during VIM compilation on Solaris 8

2009-10-19 Thread Matt Wozniski
On Sat, Oct 17, 2009 at 8:42 AM, Lahori, Ashish wrote: Hello Friends, I am trying to install VIM 7.2 on solaris 8. I downloaded and upacked the archive. On running make, I get the below error. ... configure:2321: gcc --version 5 ld.so.1: gcc: fatal: libiconv.so.2: open failed: No such file

Re: Syntax-highlighting through putty doesn't work

2009-10-19 Thread Matt Wozniski
2009/10/13 Alexander Kutka:   Did you execute :syntax enable ? Yes, didn't help :(   Could you post your .vimrc and the output of :scriptnames ? a) my .vimrc : Your vimrc is severely b0rked. --- 'runtimepath' should definitely never have only one

Re: Some bugs that I don't know what causes it

2009-10-03 Thread Matt Wozniski
On Sat, Oct 3, 2009 at 3:07 PM, Ben Fritz fritzophre...@gmail.com wrote: On Oct 2, 1:51 pm, Peng  Yu pengyu...@gmail.com wrote: Can somebody help me figure out what the bug is? E323: line count wrong in block 1 E316: ml_get: cannot find line 76  76 ??? E323: line count wrong in block 1

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

2009-09-30 Thread Matt Wozniski
On Tue, Sep 29, 2009 at 5:51 PM, Robert H wrote: On 9/28/09 6:06 PM, Matt Wozniski wrote: On Mon, Sep 28, 2009 at 5:16 PM, Robert H wrote: On 9/27/09 9:04 PM, pansz wrote: To be bug-free you must use the autocmd GUI Enter to do all .gvimrc related stuffs. I have probably never had

Re: status line changes when xpt plugin is in path

2009-09-30 Thread Matt Wozniski
On Wed, Sep 30, 2009 at 1:39 AM, Harry Putnam wrote: 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

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: xfce/terminal right click send vim to visual mode

2009-09-28 Thread Matt Wozniski
On Sun, Sep 27, 2009 at 7:00 PM, Harry Putnam wrote: John Little writes: On Sep 27, 3:42 am, MK wrote: I use the XFCE Terminal (because it is better than all the others!) Slightly OT, sorry, but I'm always on the lookout for a better terminal. I've always found, in the end the regular

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

2009-09-28 Thread Matt Wozniski
On Mon, Sep 28, 2009 at 5:16 PM, Robert H wrote: On 9/27/09 9:04 PM, pansz wrote: To be bug-free you must use the autocmd GUI Enter to do all .gvimrc related stuffs. reason: 1. you can switch from console vim to gvim with the command :gui 2. some options and settings are reset when

Re: Unclutter .vimrc

2009-09-28 Thread Matt Wozniski
On Mon, Sep 28, 2009 at 5:30 PM, Robert H wrote: On 9/28/09 9:11 AM, Ted Pavlic wrote:   I think I also can use svn for this ? (svn is already installed on   my system...) Or join the 20th century and stop using svn... then join the 21st century and use git or Mercurial. --Ted P.S.

  1   2   3   4   >