Re: Good idea to remap s to $?

2012-08-04 Thread A. S. Budden
On Aug 4, 2012 3:43 PM, Daan bak...@gmail.com wrote: It's entirely up to you of course! I use 's' a lot (particular in the form of e.g. 3s to change three letters). It has the (significant in my book) advantage over 3xi that if I then use '.' to repeat, it repeats the change, not just

Re: How to turn off auto-indentation?

2012-08-01 Thread Yves S. Garret
Thanks everyone for your help. I think I got most of my issues resolved. I'll hit up the wiki next time I have a problem (I didn't know it existed). -- 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

How to turn off auto-indentation?

2012-07-31 Thread Yves S. Garret
Hello, I've started to use gVim in place of Notepad++ on my Windows 7 machine (something I prefer since I use vim on my Ubuntu box). However, I'm running into 2 particular issues that are quite annoying. 1 - When I try to modify JavaScript and I write the function, the editor automatically

Re: vim: session of sessions

2012-07-13 Thread S. Cowles
On Wed, 11 Jul 2012, ping wrote: //what's my current issue then: now, it looks I easily run into a situation when I have 9+ screen sessions (or windows in GNU screen term) in a GNU screen instance, but still need some new ones. ... * switching beyond 9 windows is painful in screen, if you ever

differences between a nmap that call and a nmap with let... (nmap, javacomplete, maven)

2012-07-04 Thread Roberto S.
Hi, I'm configuring a variable called $CLASSPATH in order to have javacomplete plugin running well. I'm using a software called maven to build the project and I have found that executing this command: mvn dependency:build-classpath | grep -v ^\[ gives me exactly the classpath it use to

vim abbreviate help...

2012-07-03 Thread Roberto S.
Hi sorry for this stupid question, but I'm learning vim. I would like to create a pkg abbreviation that create the: package org.hello.world; row in a file found in directory: current_dir/src/main/java/org/hello/world/ I have added this to my .vimrc: autocmd BufRead,BufNew *.java iab pkg

[ANN] EasyColour 1.1.0: Colour Schemes made Easy!

2012-02-24 Thread A. S. Budden
Following on from the comments from Ben Fritz and Xell Liu, I've updated EasyColour to allow custom colours to be defined and to allow easy linking between highlight groups, so you can now do: Colours: CoralRed:#FF4040 BurntSienna:#E97451 Light: Normal:Black,White

[ANN] EasyColour 1.0.0: Colour Schemes made Easy!

2012-02-23 Thread A. S. Budden
The first public release of EasyColour is available from either of the following URLs: http://www.cgtk.co.uk/vim-scripts/easycolour http://www.vim.org/scripts/script.php?script_id=3950 This plugin makes it really easy to create your own colour scheme for Vim. You don't need to

Re: EasyColour 1.0.0: Colour Schemes made Easy!

2012-02-23 Thread A. S. Budden
Hi Ben, On 23 February 2012 18:45, Ben Fritz fritzophre...@gmail.com wrote: On Feb 23, 9:28 am, A. S. Budden abud...@gmail.com wrote: The first public release of EasyColour is available from either of the following URLs:    http://www.cgtk.co.uk/vim-scripts/easycolour    http

Re: EasyColour 1.0.0: Colour Schemes made Easy!

2012-02-23 Thread A. S. Budden
On 23 February 2012 20:16, Xell Liu xell@gmail.com wrote: On Friday, February 24, 2012 at 2:45 AM, Ben Fritz wrote: A related gripe is that similar items like Number and Constant are not always defined, even if the author just wants to link them together. Does the plugin handle linking

Re: EasyColour 1.0.0: Colour Schemes made Easy!

2012-02-23 Thread A. S. Budden
On 23 February 2012 20:43, A. S. Budden abud...@gmail.com wrote: [snip] Interesting point.  Often the it's find to leave these as their defaults, but I could add a function that lists (or adds templates for) the ones that aren't defined yet. [snip] Brain-keyboard-interface error: I meant

Re: www.vim.org contents - what about adding a git based wiki everybody can edit?

2012-02-21 Thread A. S. Budden
On 21 February 2012 16:35, Christian Brabandt cbli...@256bit.org wrote: On Tue, February 21, 2012 17:27, Marc Weber wrote: Excerpts from Ben Fritz's message of Tue Feb 21 16:48:36 +0100 2012: Why not a real wiki with real wiki syntax? Or why not just create pages on the existing wikia.com wiki

Re: multiple autocommands

2012-02-13 Thread Ivan S. Freitas
On Mon, Feb 13, 2012 at 7:11 PM, Chris Lott ch...@chrislott.org wrote: Is there a more efficient or better way to cluster together a set of autocommands in my .vimrc? For instance, I have the following: au BufNewFile,BufRead *.mtxt setlocal filetype=pandoc au BufNewFile,BufRead *.mtxt

nmap yiw mapping when 2 characters

2011-12-24 Thread Dan S
Hi - I'm trying to get a mapping to work irrespective of the number of characters in the document. The following is a simplified example which does the rather strange task of copying the current word, then pasting it and appending a question mark: :nmap buffer F3 yiw pa?Esc Note this is only

Re: How to put a character the statusline?

2011-12-12 Thread S. Cowles
On Sun, 11 Dec 2011, S. Cowles wrote: On Sun, 11 Dec 2011, Bee wrote: I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself

Re: How to put a character the statusline?

2011-12-11 Thread S. Cowles
On Sun, 11 Dec 2011, Bee wrote: I know how to put the decimal and hex equivalent of the character under the cursor in the statusline: set statusline+=%b decimal byte '98' set statusline+=\x%02B hex byte 'x62' How to put the character itself in the statusline? here is another

Re: vim 7.3 syntax highlight for c functions

2011-11-12 Thread Ivan S. Freitas
On Sun, Nov 13, 2011 at 2:45 AM, Leiking jinleileik...@gmail.com wrote: try std_c.vim Also look at http://www.vim.org/scripts/script.php?script_id=3064 To highlight custom function/types, you need to define or link some highlighting groups. I never saw anything about *_t types/structures, but

Re: Persistent undo

2011-11-10 Thread Ivan S. Freitas
The double quotes should not be there (they start a comment)    :set undodir=~/.vim/undo Also, make sure that the directory exists. -- Ivan Sichmann Freitas GNU/Linux user #509059 -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: [ANN] TagHighlight 2.1 (was CTags Highlighter)

2011-08-24 Thread A. S. Budden
On 23 August 2011 16:17, A. S. Budden abud...@gmail.com wrote: On 23 August 2011 15:12, Thomas Adam tho...@xteddy.org wrote: [snip] It would be really nice if there was an easy (easier?) way of including colour definitions for the extra types needing colour as defined by TagHilight -- I

Re: [ANN] TagHighlight 2.1 (was CTags Highlighter)

2011-08-23 Thread A. S. Budden
On 22 August 2011 08:47, A. S. Budden abud...@gmail.com wrote: TagHighlight is a plugin that highlights names of classes, variables, types etc in source code in Vim.  This makes it quicker and easier to spot errors in your code.  By using exuberant ctags and parsing the output, the typedefs

[ANN] TagHighlight 2.1 (was CTags Highlighter)

2011-08-22 Thread A. S. Budden
TagHighlight is a plugin that highlights names of classes, variables, types etc in source code in Vim. This makes it quicker and easier to spot errors in your code. By using exuberant ctags and parsing the output, the typedefs, #defines, enumerated names etc are all clearly highlighted in

Re: Indent/Unindent a block

2011-07-08 Thread Ivan S. Freitas
On Fri, Jul 8, 2011 at 6:25 AM, Gabor Urban urbang...@gmail.com wrote: Hi guys, I have a minor problem: is there a possibility to indent / unindent a block of code? Yes. You can use some regex magic with :s command, but usually a plugin is better. For instance, I use enhancedcommentify http

Re: Indent/Unindent a block

2011-07-08 Thread Ivan S. Freitas
On Fri, Jul 8, 2011 at 8:17 AM, Tim Chase v...@tim.thechases.com wrote: On 07/08/2011 04:25 AM, Gabor Urban wrote: I have a minor problem: is there a possibility to indent / unindent a block of code? Ops, seems I mistook indent for comment. My bad. -- Ivan Sichmann Freitas GNU/Linux user

Re: Vim statusline examples with screenshots?

2011-07-06 Thread Ivan S. Freitas
On Wed, Jul 6, 2011 at 8:03 PM, Jason Timrod jtim...@yahoo.com wrote: Oh - should this matter, I'd prefer this in console Vim and not gvim.   Thanks.  :) Here's mine. Config is also in the screenshot. http://imagebin.org/161837 -- Ivan Sichmann Freitas GNU/Linux user #509059 -- You received

Re: How To Emulate An ISPF Editor Feature in Vim

2011-05-25 Thread S. Cowles
On Tue, 24 May 2011, Roy Fulbright wrote: I know this dates me, but back in the day I used to exclude all lines in the ISPF editor using X and then use 'find' to display (unexclude) lines that matched the find criteria. I have been trying to do the same thing with Vim by folding all lines

Re: Typedef and struct colors in console vi

2011-05-06 Thread A. S. Budden
On 5 May 2011 20:40, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: Looking for ctags in /usr/local/bin,/usr/bin,/bin,/opt/bin,/usr/i686-pc-linux-gnu/gcc-bin/4.4.5,/usr/lib/subversion/bin,/usr/games/bin ... /usr/bin/ctags: unrecognized option '--recurse'        Try `/usr/bin/ctags

Re: Typedef and struct colors in console vi

2011-05-06 Thread A. S. Budden
On 6 May 2011 10:25, Christian Brabandt cbli...@256bit.org wrote: Hi Ulrar! On Fr, 06 Mai 2011, Ulrar wrote: Yeah, I have emacs but I didn't even know that there was a ctags with it ! I've looked, I have that : /usr/bin/exuberant-ctags I guess I can't change the path, may be I can

Re: Typedef and struct colors in console vi

2011-05-05 Thread A. S. Budden
On 5 May 2011 10:32, Ulrar lemonnie...@gmail.com wrote: Thanks, but I can't have it working. I tried to :hi def link Structure Type And, in my colorscheme, Type is my group for all the char, int, ect. In the plugin doc I see that Typedef are in Type group so it is already in the right group,

where to paste my vimrc for mac's root

2011-03-22 Thread Ricardo S
Hey people, I'm new user in Mac, though being already a some years Linux user. I have a customized vimrc for working on my Mac, however as root in the system I don't know where to put it. I managed to have everything working for all users in the machine. But when I log as root (sudo) I don't have

Re: where to paste my vimrc for mac's root

2011-03-22 Thread Ricardo S
Hey Ben, I did it before... however after sending the question... anyway thanks for your help. Ricardo. On Tue, Mar 22, 2011 at 4:38 PM, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: On 23/03/11 12:37 AM, Ricardo S wrote: Hey people, I'm new user in Mac, though being already a some

Perl indent in vim 7.3

2011-03-18 Thread S Krishnakumar
Hello, I recently moved to Vim 7.3 from Vim 7.2. I use Vim primarily for coding Perl. The first thing I noticed today was that the indenting is not what I would expect-- Code Snippet - Line 1: if( $hello ){ Line 2: @add = mysub(\@add, hello\n); Line 3: print @add,\n;

Re: copy string from different VIM session

2011-01-13 Thread A. S. Budden
On 13 January 2011 08:33, Aaron Lewis the.warl0ck.1...@gmail.com wrote: Hi,        If i open two files inside a single VIM application , copying string is possible , but for two standalone vim session , that won't be possible.        Any solutions for this ? Use the system clipboard? +y

Re: Vimsplain - explain vim command sequences

2011-01-06 Thread Robert S Ciaccio
On Sat, Jan 1, 2011 at 6:03 AM, Stefan Parviainen pa...@iki.fi wrote: Hi all, I hacked together a little program that attempts to explain sequences of vim commands. It's not nearly fully featured (lots of stuff I haven't bothered to implement yet, such as ranges). It parses the vim

Re: Cygwin+Windows 7+gvim woes

2011-01-05 Thread S. Cowles
On Tue, 4 Jan 2011, Yosi Izaq wrote: Date: Tue, 4 Jan 2011 02:04:43 -0800 (PST) From: Yosi Izaq izaq...@gmail.com Reply-To: vim_use@googlegroups.com To: vim_use vim_use@googlegroups.com Subject: Cygwin+Windows 7+gvim woes Hi, I've upgrade from XP to windows 7 and now gvim launched from Cygwin

Re: introducing vmail

2010-12-15 Thread A. S. Budden
On 14 December 2010 19:49, Daniel Choi dhc...@gmail.com wrote: Today I'm releasing a new open source project which I've been working on over the last two weeks, but which I've been daydreaming about for over a year. It's called vmail. It's a Vim client for Gmail. It's a hybrid Ruby/VimScript

Re: How can I force a file load

2010-12-07 Thread Ivan S. Freitas
On Tue, Dec 7, 2010 at 10:48 AM, Mark_H mark.b.hollingswo...@lmco.com wrote: If the file that I have in GVIM is externally modified, I sometimes miss the opportunity to load the modified version.  How can I request a reload of the modified version? add the following in your vimrc: set

Re: Help about colorscheme.

2010-11-21 Thread Ivan S. Freitas
However, when I start Vim7.3 I found the colorscheme doen't work any more. I tried all choice in Edit - color schems.  Only the background color was applied see attached image. I wonder what's wrong with my new installation. Which options did you use to compile you vim? Also what colorscheme

Re: Help about colorscheme.

2010-11-21 Thread Ivan S. Freitas
3)/configure --prefix= /user/defined/directory Here may be the problem. I don't know the default vim compile option, but maybe some feature is missing and it's causing the problem. See ./configure --help, but you may probably need to add --with-features=huge to your ./configure line to be able

Re: Building gvim

2010-11-07 Thread Ivan S. Freitas
They are not silly. make uninstall was already mentioned. However it assumes that make uninstall does what it says .. There are different ways: - gentoo (create an ebuild) - nixpkgs (www.nixos.org) - everything will be installed to /nix/store - other packaging solutions. I mentioned

Re: Building gvim

2010-11-06 Thread Ivan S. Freitas
On Sat, Nov 6, 2010 at 9:13 AM, statquant2 statqu...@gmail.com wrote: Hi guys, I inderstood that downloading vim would enable me to build gvim mentioning some options in the make. However I can't make it. Could one of you help me ? Could you specify a little more? What is the dificulty: the

Re: Building gvim

2010-11-06 Thread Ivan S. Freitas
On Sat, Nov 6, 2010 at 10:33 AM, statquant2 statqu...@gmail.com wrote: I paste the log ... you never know... Next time use pastebin, please. checking --enable-luainterp argument... no checking --enable-mzschemeinterp argument... no checking --enable-perlinterp argument... no checking

Re: Anoying autocomplete functionality

2010-11-03 Thread Ivan S. Freitas
Do one of you have similar behaviour and know how to desactivate this comment auto-insertion ?? Try disabling autoindent and/or smartindent in your vimrc. Just make sure you have filteype indent on, otherwise you may end with no indenting at all. --

Re: Go to function definition

2010-11-01 Thread Ivan S. Freitas
I have built tabs for my cpp project so that I can use omnicompletion... so in some sense vim can already know where  is a function implemented. You mean tags, right? With a ctags database, put the cursor on the function name and hit control-] (use control-t to go back where you came from).

Re: Go to function definition

2010-11-01 Thread Ivan S. Freitas
On Mon, Nov 1, 2010 at 2:23 PM, statquant2 statqu...@gmail.com wrote: Thanks Ivan Yes tags, the problem is that when I do CTRL ] I go on the .h file, and I don't know how to go the the cpp file itself... (where the function is implemented) Do you know by any chance ? You can use :tselsect

Re: [TagList] Jump to a tag without entering in TlistWindow

2010-10-21 Thread Ivan S. Freitas
On Thu, Oct 21, 2010 at 1:52 PM, Robbo house...@gmail.com wrote: Hello, does it exist a command for jumping to a tag showed in TlistWindow without moving to TlistWindow? Thank you. :tag tagname or, with the cursor in the desired tag (example, a function name), Ctrl + ]. Ctrl +T will take you

Re: Jump to a tag without entering in TlistWindow

2010-10-21 Thread Ivan S. Freitas
the tlist tag file path in your vimrc, like this: set tags+=path to tlist's tag file Thank you. On 21 Ott, 18:16, Ivan S. Freitas ivansichfrei...@gmail.com wrote: On Thu, Oct 21, 2010 at 1:52 PM, Robbo house...@gmail.com wrote: Hello, does it exist a command for jumping to a tag showed

Re: replace spaces by tabs begining line

2010-10-19 Thread Ivan S. Freitas
On Tue, Oct 19, 2010 at 10:03 AM, statquant2 statqu...@gmail.com wrote: Hello everyone, I would like to refactor code and to be able to replace spaces that are on the begining of lines by tabs (lets say 4 spaces = 1 tab). Unfortunatelly I can't find a prpoer way to do it... I red about retab

Re: Setting up default gVim

2010-10-18 Thread Ivan S. Freitas
And the is an actual vim_ruby pluginhttp://rubyforge.org/frs/?group_id=16 And on git http://github.com/vim-ruby/vim-ruby/blob/master/INSTALL . So that takes care of the syntax now I just need to work on buffers The bufexplorer/buffermru you already cited could help you browing multiple

Re: Why Vimball archives are evil?

2010-09-25 Thread Nikhilesh S
On Fri, Sep 24, 2010 at 10:46:30PM -0700, Tom Link wrote: ... (shameless plug) my own tplugin ... Cool. I use pathogen but the long loadup times of vim bothers me. Will tplugin work as a drop-in replacement for pathogen (with TPluginRoot ~/.vim/bundle)? Does it handle helptags? -- Nikhilesh S

Re: Why Vimball archives are evil?

2010-09-25 Thread Nikhilesh S
. Nice work! -- Nikhilesh S http://www.nikhilesh.info -- 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: Folding depth

2010-09-21 Thread Nikhilesh S
On Tue, Sep 21, 2010 at 07:57:10PM +0100, Pablo Giménez wrote: Hi vimers. Is there any way to limit the depth for folding. How about 'fdn'? BTW, helpgrep is very useful, I found this using :helpgrep fold.*depth -- Nikhilesh S http://www.nikhilesh.info -- You received this message from

Re: How to maximize help window automatically ?

2010-09-18 Thread Nikhilesh S
On Thu, Sep 16, 2010 at 08:23:15PM -0700, Ben Fritz wrote: Instead of :help {topic}, type :tab help {topic} for an automatically maximized help window that doesn't interfere with your window layout. Or you can use ZoomWin: http://www.vim.org/scripts/script.php?script_id=508 -- Nikhilesh S

Re: vim 7.1 vs. vim 7.2 multi line commenting

2010-08-31 Thread Ivan S. Freitas
On Tue, Aug 31, 2010 at 4:34 PM, Pavan Savoy pavan_sa...@sify.com wrote: Hi, In vim 7.1 I remember there was this feature where as soon as I type /* the next * on the next line was automatically printed, where is this feature now? I have all the same .vimrc from 7.1, and same packages, but

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-03 Thread Ivan S. Freitas
If I press escape, it removes that whitespace, presumably to avoid having lines with nothing but whitespace - and that's great.  But when I want to recommence coding on that blank line, I'd like an easy way of regaining the indentation it had before I pressed escape. One quick'n'dirty trick

Re: open new tab at the end

2010-07-30 Thread Kamaraju S Kusumanchi
Christian Brabandt wrote: On Fri, July 30, 2010 6:07 am, Kamaraju S Kusumanchi wrote: Whenever I do :tabe it opens a new tab right after the current tab. But I'd like this new tab to be opened at the end (regardless of where I initiate the :tabe command. Is it possible? :com! -nargs=1

Re: Questions on c.vim plugin

2010-07-30 Thread Ivan S. Freitas
On Fri, Jul 30, 2010 at 2:58 PM, Jeri Raye jeri.r...@gmail.com wrote: Hi, I'm trying to use the c.vim plugin And I see some errors when I use it (on gVim, Vista) When I have line like this: This is a comment line And then I press trough the cut-off menu the button: code - comment /* */  

Re: open new tab at the end

2010-07-30 Thread Kamaraju S Kusumanchi
Christian Brabandt wrote: :Tab filename You can use tab completion to navigate to your file. So it should basically work the same as :tabe regards, Christian :Tabe works great! thanks raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ -- You received this message

open new tab at the end

2010-07-29 Thread Kamaraju S Kusumanchi
Whenever I do :tabe it opens a new tab right after the current tab. But I'd like this new tab to be opened at the end (regardless of where I initiate the :tabe command. Is it possible? thanks raju -- Kamaraju S Kusumanchi http://malayamaarutham.blogspot.com/ -- You received this message from

Re: 'live' colour changing in vim

2010-02-17 Thread Dan S
On Feb 15, 12:25 pm, Tim Chase v...@tim.thechases.com wrote: Ben Schmidt wrote: Unfortunately, this isn't exactly something Vim was designed to do. Not sure I agree with the 'unfortunately' part Realtime colour changes sound pretty crazy to me! I can imagine a use or two, but even

disable auto comments when filetype plugin is on?

2010-02-05 Thread .b-o-b b-y-e-r-s
I recently turned on filetype plugin in my vimrc: :filetype plugin on Currently, I have no filetype plugins installed in my .vim/ftplugin directory Now when I edit text files I find the following setting is enabled: comments=:# Is there any way to disable this auto-setting for text files?

Re: Recording a sequence which doesn't terminate on a search and replace failure

2010-02-03 Thread A. S. Budden
On 3 February 2010 10:12, James Kanze james.ka...@gmail.com wrote: I was wondering if there was a simple way to define a recorded sequence in vim which doesn't terminate if a :s command doesn't find any matches.  Basically, I'm converting blocks of C++ code to C++ strings, with things like

Re: FIXME syntax highlighting.

2010-01-26 Thread A. S. Budden
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 able to resolve with Google. Today, Google has let me down. After

Re: FIXME syntax highlighting.

2010-01-26 Thread A. S. Budden
2010/1/26 Maxim Kim haba...@gmail.com: On 26 янв, 18:35, Stroller strol...@stellar.eclipse.co.uk wrote: Hi there, The documentation [1] shows that syn clear perlTodo will clear this highlighting for the current programming language, and presumably I can put it in my .vimrc and never be

Re: vim regular expression

2010-01-11 Thread A. S. Budden
expression in Vim. How about something like: function! ExpandStuff(linecontents) let searchpattern = '^\(\k\+\)\s\+\(.\{-}\)' let prefix = substitute(a:linecontents, searchpattern, '\1', '') let suffixes = split(substitute(a:linecontents, searchpattern, '\2', ''), ',') let new_line

Re: how do I pass expressions as aguments to tabmove or can I ???

2010-01-11 Thread A. S. Budden
2010/1/11 Grizzly(Francis Smit) griz...@smit.id.au: yeah I tried this: amenu icon=/home/user/Pictures/icons/16/tabmove.xpm ToolBar.TabMoveForward :tabmove (tabpagenr() + 1)cr but it doesn't work I get errors about trailing characters :( Just a guess, but I imagine you need to use :exe -

Re: #ifdef block's color

2010-01-06 Thread A. S. Budden
start_if_regexp = '^\s*\(%:\|#\)\s*ifdef\s\+\(' let start_ifn_regexp = '^\s*\(%:\|#\)\s*ifndef\s\+\(' for item in other_list let start_if_regexp .= '\' . item . '\' let start_if_regexp .= '\|' let start_ifn_regexp .= '\' . item . '\' let start_ifn_regexp

Re: British -ize spelling

2010-01-04 Thread A. S. Budden
2010/1/4 Yongwei Wu wuyong...@gmail.com: 2010/1/4 Nicholas Cole nicholas.c...@gmail.com: I'm using the latest version of MacVim (returning to Vim use after a long time using another editor on the Mac).  Since I last used vim properly, native spelling checking seems to have been added (a very

Re: To print module's name

2009-12-18 Thread A. S. Budden
function nmap ,f :call ShowFuncName()CR Show the name of the current function (designed for C/C++, Perl, Java etc) fun! ShowFuncName() let lnum = line(.) let col = col(.) echohl ModeMsg echo getline(search(^[^ \t#/]\\{2}.*[^:]\s*$, 'bW')) echohl None call

Re: Color schemes

2009-12-17 Thread A. S. Budden
2009/12/17 Charles Campbell charles.e.campb...@nasa.gov: Dennis German wrote: A. S. Budden wrote: 2009/12/17 Gabor Urban urbang...@gmail.com: I would like to play around with color schemes to create my own. I have read some introductions I but would like to have someone in contact

Re: omni-completion for bash script or file paths

2009-12-01 Thread A. S. Budden
2009/12/1 Roald de Vries downa...@gmail.com: Hi all, Does an omni-completion function exist for bash scripts? I'm mainly looking for file path completion. It's not omni-completion, but have you tried Ctrl-X Ctrl-F ? :help i_CTRL-X_CTRL-F Hope that helps. Al --

scrolloff and a Bug either in help or implementation of zz etc

2009-11-18 Thread A. S. Budden
Dear Vimmers, A question and an observation... The question: Is there any way to configure scrolloff so that it maintains (say) 3 lines visible below the cursor even when you're at the end of the file. I know I can bodge it with an autocmd, but it could get very messy, so I was wondering if

Re: Saving modified file opened by vim -c

2009-11-18 Thread A. S. Budden
Probably something like this (untested: sorry!): vim -c source myScript.vim -c argdo call MyFunc() -c saveas newName.txt aFile or: vim -c source myScript.vim -c argdo call MyFunc() -c exec 'saveas new_' . expand('%:t') aFile Al 2009/11/18 epanda callingel...@hotmail.fr: Hi, I am

Re: Saving modified file opened by vim -c

2009-11-18 Thread A. S. Budden
2009/11/18 epanda callingel...@hotmail.fr: While this command works on win cmd prompt, it fails from a batch : vim -c source C:\Documents and Settings\user\Mes documents\util \myScript.vim -c argdo call TangoTemplateNb1() -c exec 'saveas ' . expand('%:p:h') . '\newFile.txt' -c q

Re: Tabs and spaces

2009-09-28 Thread A. S. Budden
2009/9/28 Ralf Schmitt r...@bunkertor.net: Hi list, my question is like this. I work on different software projects each in a different language and a different code style. Project a) uses indentation with real tabs and project b) uses indentation with 4 spaces each step. I know all

Re: Why the MACRO I defined can not highlight?

2009-09-26 Thread A. S. Budden
2009/9/25 stone lbzha...@gmail.com: [snip] Please let me know how you get on with the above. Thank for your reply. I am so happy that the plugin have worked OK! Excellent, I'm really pleased! It is a very good plugin. The tags file it created run faster than my tags file. I add the hi

Re: Why the MACRO I defined can not highlight?

2009-09-26 Thread A. S. Budden
2009/9/25 stone lbzha...@gmail.com: 2009/9/25 stone lbzha...@gmail.com And will your plugin interfer with the lookup file plugin? After I run the UpdateTypeFile! . Somthing strange to my look up file plugin. The short answer is: I don't know. What is the lookup file plugin and what

Re: Why the MACRO I defined can not highlight?

2009-09-26 Thread A. S. Budden
2009/9/25 stone lbzha...@gmail.com: 2009/9/25 stone lbzha...@gmail.com And do your plugin support c++ file? Yes! Most of the testing has been done on (embedded) C code, but it should support C++ code with no problems at all. I used this command to create my tags file: ctags -R  

Re: Why the MACRO I defined can not highlight?

2009-09-25 Thread A. S. Budden
2009/9/24 stone lbzha...@gmail.com: 2009/9/21 A. S. Budden abud...@gmail.com There are three possibilities that I can think of: 1) The problem may be that you don't have the various colour groups defined in your colour scheme.  If I'm correct, entering the following should help: :hi Type guifg

Re: Why the MACRO I defined can not highlight?

2009-09-21 Thread A. S. Budden
2009/9/21 stone lbzha...@gmail.com: 2009/9/16 A. S. Budden abud...@gmail.com Okay!  I think I've figured out what's going on.  Please can you download the latest version from http://sites.google.com/site/abudden/contents/Vim-Scripts/ctags-highlighting and let me know whether it works? There's

Re: Why the MACRO I defined can not highlight?

2009-09-16 Thread A. S. Budden
2009/9/16 stone lbzha...@gmail.com: 2009/9/15 A. S. Budden abud...@gmail.com 2009/9/15 stone lbzha...@gmail.com: 2009/9/14 A. S. Budden abud...@gmail.com This is indeed very strange.  The problem is coming from globpath( ) as far as I can tell: it doesn't think that the file exists.  Your

Re: Why the MACRO I defined can not highlight?

2009-09-15 Thread A. S. Budden
2009/9/15 stone lbzha...@gmail.com: 2009/9/14 A. S. Budden abud...@gmail.com I've just added a preliminary test version (with a few bug fixes) to my site (http://sites.google.com/site/abudden/contents/Vim-Scripts/ctags-highlighting). Please could you download this version and see whether

Re: search something and move it somewhere (something - endOfLine.something)

2009-09-14 Thread A. S. Budden
; } li.cat-item-7{ /* us */ background: #8EBEDE; } How about something like: :%...@\(/\*.\{-}\*/\s*\)\(.*\)@\2\1 :%s - Substitute over the whole file @ - Delimiter \(...\) - First group, containing: /\* - Literal slash followed by literal * .\{-} - Any characters, as few as possible

Re: Why the MACRO I defined can not highlight?

2009-09-14 Thread A. S. Budden
2009/9/12 stone lbzha...@gmail.com: Thanks for your replay. I put my ctags.exe in windows/system32, so we can use ctags.exe in console . I will run the ::echo substitute($PATH, ';', ',', 'g') in Monday. I've just added a preliminary test version (with a few bug fixes) to my site

Re: Why the MACRO I defined can not highlight?

2009-09-11 Thread A. S. Budden
2009/9/11 Matt Wozniski m...@drexel.edu: Please bottom post (post replies below the quoted message) on this list. I've reformatted your message accordingly. stone wrote: A. S. Budden wrote: stone wrote: Hi. vim_use I use GVIM in windows to edit C/C++ program, But the MACRO and ENUM

Re: Why the MACRO I defined can not highlight?

2009-09-10 Thread A. S. Budden
2009/9/10 stone lbzha...@gmail.com: Hi. vim_use I use GVIM in windows to edit C/C++ program, But the MACRO and ENUM I have defined can not highlight. I have set the : sy on and sy enable in my vimrc file. There's no built in support for highlighting your own macros and enums etc. Have a

Re: ANN: gVim for Windows in Portableapps.com format!

2009-08-27 Thread A. S. Budden
2009/8/27 KF kfleong...@gmail.com: bill lam wrote: I guess that you still did not list the changes that you made.  In my experience the official vim does not have to be install before use either.  Just copying a few essential files is sufficient for working under window. gvim.exe _vimrc

Minor bug in vim2html.pl

2009-08-20 Thread A. S. Budden
I'm not sure whether vim2html.pl is actually used (I notice there's an awk version as well), but in trying to convert the documentation for my plugin into html, I noticed a very minor bug in vim2html.pl. It doesn't cause a problem for vim builds as multiple files are done at once, but if you try

Re: changing what counts as a paragraph

2009-08-19 Thread A. S. Budden
2009/8/19 at atorgovit...@gmail.com: My .tex files typically look like... -- This is some text that I'm writing in a paragraph, blah blah blah, etc. etc. \begin{equation}    a = b + c \end{equation} --- I currently have

Re: executing a recording for an unknown number of times

2009-08-11 Thread A. S. Budden
...@a and it will keep running until the s/// has no matches. Al -- http://sites.google.com/site/abudden --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Using a variable as a command's 'count' argument

2009-07-29 Thread S. Cowles
On Wed, 29 Jul 2009, Daniel Tripp wrote: From: Daniel Tripp qpmirruvnnvwoca...@dt.theorem.ca Say that I have set a variable like this: :let desiredcolumn=42 And now I want to define a mapping that will go to that column on the current line, using the bar command. My problem is that I

Minor error in Vim help

2009-07-16 Thread A. S. Budden
Dear Bram Others, I have just noticed a (very) minor mistake in the Vim help files so I thought I ought to report it. In eval.txt, under :help eval-example, there is an example function called Nr2Bin. This used to be Nr2Hex before printf was introduced, but the description of the function

Re: exit

2009-07-09 Thread A. S. Budden
2009/7/9 SamPeng sampen...@gmail.com: how to exit this group? Follow the link at the bottom of your email and read the instructions there. Al --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit

Re: how to match the space Not begin from the start-of-line

2009-07-01 Thread A. S. Budden
2009/7/1 ginkgo mydor...@gmail.com: Hello everyone,  I want to know how to match the space that is not in the start of the line. for example    sss sss   ^ I just match the second part of the sample. Can anyone help me? How about: /^\s\+\S\+\zs\s /- Search ^- Start

Re: how to match the space Not begin from the start-of-line

2009-07-01 Thread A. S. Budden
2009/7/1 ginkgo mydor...@gmail.com: On Jul 1, 5:47 pm, A. S. Budden abud...@gmail.com wrote: 2009/7/1 ginkgo mydor...@gmail.com: Hello everyone,  I want to know how to match the space that is not in the start of the line. for example    sss sss   ^ I just match the second

Re: give c defines a color

2009-06-29 Thread A. S. Budden
in the file to give it the color brown? There are three approaches that I know of to achieve this: 1) Write a short vim script that parses the current file looking for #define\s\+\([^ ]\)\+ and use the first match as an argument to syn keyword 2) Use the tag highlighting function described in :help tag

Re: !start on Linux or Mac

2009-06-16 Thread A. S. Budden
2009/6/16 Da iamwan...@gmail.com Hi there, I notice on Windows, we can run an external program/command asynchronously by using !start. Is there a way to do this on Linux/Mac OS? I have goolged quite a bit for this but cannot find anything. Have you tried something like: :!myapplication

Cygwin Vim stopped working

2009-06-02 Thread A. S. Budden
application, but it updated everything at the same time). My configure command is: ./configure --prefix=/usr/local --with-features=huge --enable-cscope --enable-perlinterp --enable-pythoninterp --enable-tclinterp --enable-rubyinterp --compiled-by=A. S. Budden --with-x --enable-gui After it appeared

Re: Cygwin Vim stopped working

2009-06-02 Thread A. S. Budden
fix the problem, but the resulting version information is here (again from cmd.exe rather than bash): VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jun 2 2009 13:59:10) Included patches: 1-191 Compiled by A. S. Budden Huge version with GTK GUI. Features included (+) or not (-): +arabic +autocmd

Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
When using patterns in vim, I often make use of the \k pattern to match any part of the keyword. Is it possible to make a character collection that includes \k and other characters? To clarify by way of an example: If I want to match any alphabetic character, I can use \a. If I want to match

Re: Including \k in a character collection in a pattern

2009-05-22 Thread A. S. Budden
2009/5/22 Equinox86 equino...@gmail.com: mmm this not work? [[...@] ? or this? [...@] ? I'm not sure what [[...@] translates as (it matches absolutely nothing in my source file!), but [...@] translates as either a k, an @ or a backslash, which is not what I intended. Al

<    1   2   3   >