Re: setting nomail
On 27/09/09 22:23, Raúl Núñez de Arenas Coronado wrote: Saluton Beartooth :) Beartoothb...@comcast.net skribis: I subscribed in order to be able to post, but couldn't find anything, in the FAQ or elsewhere, telling me how to set my subscription to nomail. I think you need a GMail account for that, but I'm not sure, sorry. I think a Google Groups account is enough; but of course, Google, Google Groups, Gmail, et al., are all handled by a single login. I have to follow it on Gmane or not at all; no way can I begin to handle the bandwidth. Do I have to unsub to get my email back?? I can set your subscription to nomail myself, don't worry. You don't appear in the member list yet, so give me some time until I can make the change. I suppose it's been done long ago for Beartooth, but for the next lurker: go to the Google Groups Manage my memberships page http://groups.google.com/groups/mysubs where you can set each group's amount of mail by means of a rolldown widget (in the last column). When you're satisfied with what you've set, don't forget to Save group settings by clicking the button below the list. For instance, I've set my account to Email for vim_use, vim_dev and vim_multibyte, but to Digest for vim_mac, so I can contribute if there are issues there that are not mac-only (I'm on Linux), and even be notified of the activity, but not have my inbox swamped by Mac questions to which I neither have nor need the answer. Some other (non-Vim-related) groups I've even set to No email. Best regards, Tony. -- The human race has one really effective weapon, and that is laughter. -- Mark Twain --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: separate gvim and vim in a single .vimrc [no .gvimrc]
On 28/09/09 05:10, pansz wrote: Harry Putnam 写道: Do your saying it can't be done from a single .vimrc file? No, I'm saying you should not rely on has(gui_running). So how can I have gvim run with the settings in place, but not bother my vim settings, and not have to maintain another init file? If you want to omit the .gvimrc, you should put everything you want in your .gvimrc in the GUIEnter autocommand. and of course, you can put the autocommand in your .vimrc, something like: autocmd GUIEnter * \ foobar1 \ foobar2 \ foobar3 Actually, you don't have to put _everything_ GUI-related in autocommands: - On Windows, a single binary is either a console utility or a GUI, but not both, so if you're Windows-only has(gui_running) is enough [and equivalent to has(gui)]. Or even if you use a single vimrc on both Windows and Linux, has(hui_running) is criterion enough to know when to set which Windows-specific settings: for instance, the 'guicursor' setting specific to the Dos/Windows console. - Even on Unix, if you know in advance that you won't be using the :gui command, has('gui_running') is good enough for you. - Many GUI-related settings have no effect in Console Vim, except that it remembers them for when (and if) the GUI will be started. A few of these are 'guifont' 'guioptions' 'guicursor' (except on Dos/Windows, see above) There are others. You can set these in your vimrc without bracketing them in has('gui_running'); or (if you sometimes run non-GUI-enabled versions) by bracketing them in just has(gui) to prevent an error on versions which don't recognise the option. There are a few settings, however, which are always reset at GUI startup, and these require either a gvimrc or a GUIEnter autocommand, even (I think) on Windows. One of these is 't_vb', as explained under the help for 'visualbell'. For instance, if you want both a visual and an audible bell, here's how to do it in all versions of Vim on most kinds of display (using the ASCII control character BEL): set errorbells visualbell if !has('gui_running') console Vim setting let t_vb = \x07 . t_vb also ring the bell endif if has('autocmd') has('gui') must set it again for the GUI au GUIEnter * let t_vb = \C-G\e|50f where 50 = flash time in milliseconds (default 20) endif Similarly, (unless you'll never be using the :gui command) if you want to use, let's say, a _different_ colorscheme in Console Vim and in gvim, or _different_ 'lines' and 'columns' settings, etc., you have to set the GUI setting in a gvimrc or at the GUIEnter event. (There are colorschemes which work in both gvim and Console Vim, and not necessarily with the same colours; or if your console has 88 colours or more, you can avail yourself of the CSApprox plugin to make a gui-enabled Console vim use the best approximation to what it would use as a GUI). --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Delete weird paragraph (or item paragraph)
Saluton John :) John Beckett j...@gmail.com skribis: Jürgen Krämer wrote: This mapping has a problem if the cursor is on the dash at the start of an item -- it deletes the previous item. You might want to circumvent this by prepending a $ to the mapping, i.e. :nnoremap buffer dip $?^\s*-?crd/^\(\s*-\|\s*$\)/-1 Sensational! I had to try that, but I think it needs a little tweaking to work. I had to double the backslash before the pipe because the mapping takes one of the backslashes. Thanks for checking! Yesterday I didn't have the time to check, so you've saved a lot of time to me! I wouldn't have noticed the backslash problem, I'm afraid... I use search highlighting and it is irritating how it leaves the dashes highlighted. I also added a visual selection thinking that you could then press gq to format it, but it doesn't really work because the flowed text is not indented after the second line. Here is what I ended up with (two lines): :nnoremap buffer vip $?^\s*-CRV/^\(\s*-\\|\s*$\)/-1CR:C-UnohCRgv :nnoremap buffer dip $?^\s*-CRd/^\(\s*-\\|\s*$\)/-1CR:C-UnohCR Thanks! I'm now putting that on my .vimrc! I've made some changes, though: since I'm not going to create a filetype for my lists yet just to put these two mappings, I've put them in .vimrc and changed the dash for the bullet character I wanted to use: ∙ (this is Ctrl-K Sb), with no spaces before it (I *never* put spaces before the bullet character. If I do, then the entry is hierarchically below of the parent bullet and belongs to that item, I want it to be copied/cut with it. The mappings that finally went into my .vimrc are: nnoremap silent Leaderd $?^∙CRd/^\(∙\\|\s*$\)/-1CR:C-UnohCR imap silent Leaderd C-\C-OLeaderd nnoremap silent Leadery $?^∙CRy/^\(∙\\|\s*$\)/-1CR:C-UnohCR imap silent Leadery C-\C-OLeadery This has a problem, though. If I use dashes, then gqip works perfectly because Vim thinks that everything from ^- to the next ^- is a paragraph. When using the bullet character this doesn't work. Is this behaviour (treat ^- specially) hardcoded into vim or picked from some option like iskeyword, isprint, etc.? I don't mind using a dash instead of a bullet, but visually a bullet helps me a lot. BTW, I've tried to add the small bullet to isprint, causing a segfault in Vim... -- Raúl DervishD Núñez de Arenas Coronado Linux Registered User 88736 | http://www.dervishd.net It's my PC and I'll cry if I want to... RAmen! --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Delete weird paragraph (or item paragraph)
Hi, Raúl Núñez de Arenas Coronado wrote: John Beckett j...@gmail.com skribis: This has a problem, though. If I use dashes, then gqip works perfectly because Vim thinks that everything from ^- to the next ^- is a paragraph. When using the bullet character this doesn't work. Is this behaviour (treat ^- specially) hardcoded into vim or picked from some option like iskeyword, isprint, etc.? I don't mind using a dash instead of a bullet, but visually a bullet helps me a lot. this is controlled by the 'comments' option which by default includes fb:-. You should be able to adapt it to the bullet character by adding fb:∙. 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) --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Delete weird paragraph (or item paragraph)
Kana Natsuno schrieb: On Wed, 28 Oct 2009 19:36:01 +0900, Raúl Núñez de Arenas Coronado raul...@gmail.com wrote: Hi all :) I use Vim to store lists of items, like the one below: - This is a think I should do, or maybe buy - Feed my cat - Tell my cat he is a naughty boy for having chewing up my most expensive headphones without having even considered the possibility of eating a cheaper pair (or none). - Write a message to vim_use to ask how to delete items from lists like this, where some of the items are oneliners but others are clearly not, and may or may not have a final period - More items, this time an oneliner - Stop using computers. NOW! ... I wondered if I could use some text-object to perform this action (maybe changing the dash for another character) or some more complex command which I could map, whatever, and being able to cut or copy an entire item automatically, without having to go to the start of the item, not having to count lines, etc. I know how to do this using vimscript and a loop, but I wondered if a simpler approach exists. Try textobj-user http://www.vim.org/scripts/script.php?script_id=2100. With textobj-user, what you want can be written as follows: call textobj#user#plugin('item', { \ '-': { \ '*pattern*': '^-\(\s\+\).*\(\n\s\1.*\)*\n', \ 'select': 'I', \ }, \ }) Then you can edit an item with dI, yI, etc. Kana, maybe I'm missing something in text-object's help file, but how do make this text object behave linewise? -- Andy --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Delete weird paragraph (or item paragraph)
On Thu, 29 Oct 2009 19:22:52 +0900, Andy Wokula anw...@yahoo.de wrote: Try textobj-user http://www.vim.org/scripts/script.php?script_id=2100. With textobj-user, what you want can be written as follows: call textobj#user#plugin('item', { \ '-': { \ '*pattern*': '^-\(\s\+\).*\(\n\s\1.*\)*\n', \ 'select': 'I', \ }, \ }) Then you can edit an item with dI, yI, etc. Kana, maybe I'm missing something in text-object's help file, but how do make this text object behave linewise? textobj-user provides two ways to define a text object -- with function and with regular expression. It's possible to specify wise of a text object if it is defined with function, but it's currently impossible for a text object defined with regular expression. I've never realized about the problem because I defined only characterwise text objects with regular expression. Thank you for reporting. I'll fix it later. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Function syntax error
Hy guys, I am to write a simple function to insert some headers in the buffer. Here is the code: cut function Header(...) let template = [Id, Short Description, Severity, Status, Description] let i = 1 echo Test i for item in template append(i, item) let i = i + 1 endfor endfunction cut This script compiles and runs properly. If I remove the comments from the 'for' loop, I have an error message during compilation: E126: missing :endfunction The linenumber is 11 for the error, the whole file is 10 lines long, with a blank at the end. I use vim 7.2 on an XP box with GUI support in the office. Any ideas? Gabor -- Linux: Choice of a GNU Generation --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Align/AlignMaps not aligned with current flow of time ? ;o)
meino.cra...@gmx.de wrote: Hi, I feel a little einsteinish (time is sooo relative... ;) When I look here: http://mysite.verizon.net/astronaut/vim/#ALIGN I find two entries which link to the same file: Alignment version 36b and Alignment Maps version 42d But Alignment was last changed 2.Sep.2009 and is -- according to its version number older than Alignment Maps, which was last changed 26. May 2009. And both look like as they to link to the same file. Seems to be a quantum irregularity, or? ;) 8o))) By the way: What is the difference between both? And: I *LOVE* these align plugins! Great stuff! Thank you! There are six files in the Align package; the two to which you refer, Align.vim and AlignMaps.vim, are not the same. Align.vim holds the core alignment functions, and AlignMaps.vim primarily holds function which support the maps. Align.vim can be used without AlignMaps.vim; vice versa is not true -- I just happen to be tracking the versions of each separately. Another file in the package, cecutil.vim, is version v18d. Align.vim and AlignMaps.vim go into the .vim/autoload directory; there are also two corresponding .vim/plugin scripts (AlignPlugin.vim, AlignMapsPlugin.vim) which hold the always-loaded interface. Regards, Chip Campbell --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Function syntax error
On Thu, October 29, 2009 1:10 pm, Gabor Urban wrote: cut function Header(...) let template = [Id, Short Description, Severity, Status, Description] let i = 1 echo Test i for item in template append(i, item) let i = i + 1 endfor endfunction There are at least 2 problems with this code. First, the let template statement should only be on one line. For two lines you need line continuation characters in front of it: let template = [Id, Short Description, Severity, Status, \ Description] and second, you have to call append, as it is a function and not an ex command. With these 2 adjustments, it works fine for me. regards, Christian --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: repeatable vim recovery failure
:h E326 and it said it won't check other names until the previous names have been found. So I think it is a feature. But generating a _.svz while no _.swp seems to be a bug. On Oct 22, 9:04 am, David M. Besonen dav...@panix.com wrote: win xp home sp3 gvim 7.2 issue: vim recovery will not work unless orphaned vim swap file extension begins with sw scenario: os crashes while gvim has a number of unnamed editing sessions opened after rebooting the os, i locate the orphaned vim swap file the file is named _.svz (windoze crashes a lot) when i attempt vim -r _.svz this message is returned: E305: No swap file found for _.svz i then change the filename to _.swz and issue the vim -r _.swz command and the file is recovered can anyone confirm this same behavior? and whether this is a bug or a feature? thanks, david --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: repeatable vim recovery failure
Please bottom post on this list. Quote a small (relevant) part of the message you are replying to, and put your text underneath. The guidelines for the list may be found at: http://groups.google.com/group/vim_use/web/vim-information Chip Campbell --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: vimgrep performance
On Wed, Oct 28, 2009 at 7:23 PM, Henrik Öhman spe...@gmail.com wrote: On Oct 27, 5:40 am, Steven Woody narkewo...@gmail.com wrote: Hi, When running vimgrep, I see on the screen the buffer is quickly refreshed with many many files. I guess this slow down the vimgrep speed. Can this behavior be disabled? As has been mentioned, this is probably due to autocmds when the file is read. I know that the showmarks.vim plugin has this kind of unwanted behaviour. Do you have that plugin installed? What happens if you disable it and try again? Henrik. Thanks Henrik Ben, I found with the :noautocmd prefix the speed improved much more, I am so happy. And, I don't have showmarks plugin, so I think must be another plugin that slow down the performance, if possible, I like to find what it is. And, for saving my tying, is there a way to have an alise for ':noauto vimgrep'? 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 vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Align/AlignMaps not aligned with current flow of time ? ;o)
Charles Campbell charles.e.campb...@nasa.gov [09-10-29 15:56]: meino.cra...@gmx.de wrote: Hi, I feel a little einsteinish (time is sooo relative... ;) When I look here: http://mysite.verizon.net/astronaut/vim/#ALIGN I find two entries which link to the same file: Alignment version 36b and Alignment Maps version 42d But Alignment was last changed 2.Sep.2009 and is -- according to its version number older than Alignment Maps, which was last changed 26. May 2009. And both look like as they to link to the same file. Seems to be a quantum irregularity, or? ;) 8o))) By the way: What is the difference between both? And: I *LOVE* these align plugins! Great stuff! Thank you! There are six files in the Align package; the two to which you refer, Align.vim and AlignMaps.vim, are not the same. Align.vim holds the core alignment functions, and AlignMaps.vim primarily holds function which support the maps. Align.vim can be used without AlignMaps.vim; vice versa is not true -- I just happen to be tracking the versions of each separately. Another file in the package, cecutil.vim, is version v18d. Align.vim and AlignMaps.vim go into the .vim/autoload directory; there are also two corresponding .vim/plugin scripts (AlignPlugin.vim, AlignMapsPlugin.vim) which hold the always-loaded interface. Regards, Chip Campbell Hi, another little thing: I downloaded the rainbow vimball, which gives me colored ({}) in c and c++ according the description. It contains and installs a file named rainbow.vvim. The whole stuff works, if one renames rainbow.vvim to rainbow.vim and it works for c++ only, if ${HOME}/.vim/after/syntax/c/rainbow.vim gets copied to ${HOME}/.vim/after/syntax/cpp/rainbow.vim. And it does not color []'s... But may be I miss something... This nice little thing again is very handy for me...I like it! :O) Keep hacking! mcc --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: repeatable vim recovery failure
David M. Besonen wrote: win xp home sp3 gvim 7.2 issue: vim recovery will not work unless orphaned vim swap file extension begins with sw scenario: os crashes while gvim has a number of unnamed editing sessions opened after rebooting the os, i locate the orphaned vim swap file the file is named _.svz (windoze crashes a lot) when i attempt vim -r _.svz this message is returned: E305: No swap file found for _.svz i then change the filename to _.swz and issue the vim -r _.swz command and the file is recovered can anyone confirm this same behavior? and whether this is a bug or a feature? It used to be a feature, but I can understand it can be annoying. Let's extend the range of files recognized as a swap file to: .s[uvw][a-z] *** ../vim-7.2.267/src/memline.c2009-04-22 15:56:27.0 +0200 --- src/memline.c 2009-10-29 20:55:08.0 +0100 *** *** 864,884 recoverymode = TRUE; called_from_main = (curbuf-b_ml.ml_mfp == NULL); attr = hl_attr(HLF_E); ! /* ! * If the file name ends in .sw? we use it directly. ! * Otherwise a search is done to find the swap file(s). ! */ fname = curbuf-b_fname; if (fname == NULL)/* When there is no file name */ fname = (char_u *); len = (int)STRLEN(fname); if (len = 4 #if defined(VMS) || defined(RISCOS) ! STRNICMP(fname + len - 4, _sw , 3) #else ! STRNICMP(fname + len - 4, .sw , 3) #endif ! == 0) { directly = TRUE; fname = vim_strsave(fname); /* make a copy for mf_open() */ --- 864,887 recoverymode = TRUE; called_from_main = (curbuf-b_ml.ml_mfp == NULL); attr = hl_attr(HLF_E); ! ! /* ! * If the file name ends in .s[uvw][a-z] we assume this is the swap file. ! * Otherwise a search is done to find the swap file(s). ! */ fname = curbuf-b_fname; if (fname == NULL)/* When there is no file name */ fname = (char_u *); len = (int)STRLEN(fname); if (len = 4 #if defined(VMS) || defined(RISCOS) ! STRNICMP(fname + len - 4, _s , 2) #else ! STRNICMP(fname + len - 4, .s , 2) #endif ! == 0 !vim_strchr((char_u *)UVWuvw, fname[len - 2]) != NULL !ASCII_ISALPHA(fname[len - 1])) { directly = TRUE; fname = vim_strsave(fname); /* make a copy for mf_open() */ -- TIM: To the north there lies a cave, the cave of Caerbannog, wherein, carved in mystic runes, upon the very living rock, the last words of Olfin Bedwere of Rheged make plain the last resting place of the most Holy Grail. Monty Python and the Holy Grail PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\download, build and distribute -- http://www.A-A-P.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
RE: gvimdiff default color scheme
Roy Fulbright wrote: How can I specify a default color scheme for gvimdiff that is different from my default color scheme when opening a single file? Thanks. If you mean a particular file has a different color scheme: http://vim.wikia.com/wiki/Change_the_color_scheme_to_show_where_you_are John --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
name of this file
hi, how I can get the name of file I am editing with vim ? if I editing a file called source.c, how can compilling this file ? !gcc source.c exist a general function for get name of file ? !gcc nameOfFile() -- JuanPablo --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
Just do a :make instead Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: JuanPablo jabar...@gmail.com Date: Thu, 29 Oct 2009 19:33:08 To: vim_use@googlegroups.com Subject: name of this file hi, how I can get the name of file I am editing with vim ? if I editing a file called source.c, how can compilling this file ? !gcc source.c exist a general function for get name of file ? !gcc nameOfFile() -- JuanPablo --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
yes, :make is for compile. but my real question is a vim function for get the name of file. On Thu, Oct 29, 2009 at 7:38 PM, kbirkl...@gmail.com wrote: Just do a :make instead Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: JuanPablo jabar...@gmail.com Date: Thu, 29 Oct 2009 19:33:08 To: vim_use@googlegroups.com Subject: name of this file hi, how I can get the name of file I am editing with vim ? if I editing a file called source.c, how can compilling this file ? !gcc source.c exist a general function for get name of file ? !gcc nameOfFile() -- JuanPablo -- JuanPablo Abarzúa Jaramillo Universidad de La Frontera Chile --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
!gcc % Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: JuanPablo jabar...@gmail.com Date: Thu, 29 Oct 2009 19:43:08 To: vim_use@googlegroups.com Subject: Re: name of this file yes, :make is for compile. but my real question is a vim function for get the name of file. On Thu, Oct 29, 2009 at 7:38 PM, kbirkl...@gmail.com wrote: Just do a :make instead Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: JuanPablo jabar...@gmail.com Date: Thu, 29 Oct 2009 19:33:08 To: vim_use@googlegroups.com Subject: name of this file hi, how I can get the name of file I am editing with vim ? if I editing a file called source.c, how can compilling this file ? !gcc source.c exist a general function for get name of file ? !gcc nameOfFile() -- JuanPablo -- JuanPablo Abarzúa Jaramillo Universidad de La Frontera Chile --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
I usually do CTRL-g --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
On Thu, Oct 29, 2009 at 6:43 PM, JuanPablo jabar...@gmail.com wrote: yes, :make is for compile. but my real question is a vim function for get the name of file. On Thu, Oct 29, 2009 at 7:38 PM, kbirkl...@gmail.com wrote: Just do a :make instead Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: JuanPablo jabar...@gmail.com Date: Thu, 29 Oct 2009 19:33:08 To: vim_use@googlegroups.com Subject: name of this file hi, how I can get the name of file I am editing with vim ? if I editing a file called source.c, how can compilling this file ? !gcc source.c exist a general function for get name of file ? !gcc nameOfFile() -- JuanPablo -- JuanPablo Abarzúa Jaramillo Universidad de La Frontera Chile The % register contains the current filename. So, for example, %p would place the current filename after the cursor. In ex commands, you can just use % directly as in :!gcc % to do what you describe. FYI, it's customary to post responses at the bottom of the previous message on this list (known as bottom-posting) HTH -- Christopher Suter www.grooveshark.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
On Thu, Oct 29, 2009 at 6:43 PM, JuanPablo jabar...@gmail.com wrote: yes, :make is for compile. but my real question is a vim function for get the name of file. You would use: :!gcc % Or you can get the fullpath of the file name with: expand(%:p) So you could use: :echo system('gcc '.expand(%:p)) :h filename-modifiers HTH, Dave --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: name of this file
% is the answer many thanks. On Thu, Oct 29, 2009 at 7:48 PM, David Fishburn dfishburn@gmail.com wrote: On Thu, Oct 29, 2009 at 6:43 PM, JuanPablo jabar...@gmail.com wrote: yes, :make is for compile. but my real question is a vim function for get the name of file. You would use: :!gcc % Or you can get the fullpath of the file name with: expand(%:p) So you could use: :echo system('gcc '.expand(%:p)) :h filename-modifiers HTH, Dave -- JuanPablo Abarzúa Jaramillo Universidad de La Frontera Chile --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Problem about the browse command
There is a problem about the browse command for my gvim now. However, i can not find the reason for it. I remember that , when i run the command :browse w filename to a new buffer, there should be a dialog shown to let me select the file position for saving , but now the dialog does not show any more, it seems like that , i have never input the command . Nothing happens, and the command following the browse which is w filename for this case is not executed neither. PS: I can find the +browse from the version info , so i think the gvim should popup a dialog. I compile the latest code from SVN under the WinXP with MinGW. I thought there might be some configure wrong for my compile ? I give the version info , and hope that someone could give me a suggestion. -version-- VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Oct 28 2009 09:44:25) MS-Windows 32-bit GUI version Included patches: 1-267 Compiled by winter...@ap Big version with GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang -mzscheme +netbeans_intg -ole -osfiletype +path_extra +perl/dyn -postscript +printer -profile +python/dyn +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl -tgetent -termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32 system vimrc file: $VIM\vimrc user vimrc file: $HOME\_vimrc 2nd user vimrc file: $VIM\_vimrc user exrc file: $HOME\_exrc 2nd user exrc file: $VIM\_exrc system gvimrc file: $VIM\gvimrc user gvimrc file: $HOME\_gvimrc 2nd user gvimrc file: $VIM\_gvimrc system menu file: $VIMRUNTIME\menu.vim Compilation: gcc -Iproto -DWIN32 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -D DYNAMIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DD YNAMIC_ICONV -pipe -w -march=i686 -Wall -IC:/perl/lib/Core -DFEAT_PERL -LC:/perl/lib/Core -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=perl5 6.dll -DFEAT_PYTHON -I c:/python26/include -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=python26.dll -O3 -fomit-frame-pointer -freg-st ruct-return -s Linking: gcc -Iproto -DWIN32 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -DHAVE_PATHDEF -DFEAT_BIG -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNA MIC_GETTEXT -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAM IC_ICONV -pipe -w -march=i686 -Wall -IC:/perl/lib/Core -DFEAT_PERL -LC:/perl/lib/Core -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=perl56.dl l -DFEAT_PYTHON -I c:/python26/include -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=python26.dll -O3 -fomit-frame-pointer -freg-struct -return -s -mwindows -o gvim.exe -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lversion -lwsock32 -lole32 -luuid -- --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
configuring vim for slrn - headers
Greetings: I'm using vim as my default editor for slrn. I am using this entry in .slrnrc: set editor_command vim '+set tw=72' +%d '%s' Here is the example of the header for a _new_ post to slrn: #Newsgroups: comp.lang.python #From: Tim Johnson t...@johnsons-web.com #Subject: self.__dict__ tricks #Organization: AkWebsoft #Reply-To: t...@johnsons-web.com #Followup-To: #Keywords: #Summary: Note that I have left '#' at the beginning of each line in case that to do otherwise might cause mail problems. That's as it should be, I think. But if I do a reply to a posting, I get a header that looks like this: #To: metal metal...@gmail.com #Subject: Re: '11' + '1' is '111'? #In-Reply-To: #de0f1a87-a24d-4347-8b22-25af5f9b5...@t11g2000prh.googlegroups.com #References: #de0f1a87-a24d-4347-8b22-25af5f9b5...@t11g2000prh.googlegroups.com #Reply-To: t...@johnsons-web.com Again, note the '#'s and possible wrapping. The #To: metal metal...@gmail.com is wrong, I believe. It should be: #Newsgroups: comp.lang.python My questions is, what should be the proper entry in .slrnrc? thanks -- Tim t...@johnsons-web.com http://www.akwebsoft.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: vimgrep performance
On Oct 29, 10:49 am, Steven Woody narkewo...@gmail.com wrote: And, for saving my tying, is there a way to have an alise for ':noauto vimgrep'? There sure is! There are several suggestions at http://vim.wikia.com/wiki/Find_in_files_within_Vim that not only do this, but also fill in the word under the cursor and other such things. I personally prefer the cabbrev method mentioned in this tip, so that I can either hit enter to perform the default search, or hit space and tweak it. Thanks. Glad to help! --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: configuring vim for slrn - headers
* Tim Johnson t...@johnsons-web.com [2009-10-29 17:55 -0800]: Greetings: I'm using vim as my default editor for slrn. I am using this entry in .slrnrc: set editor_command vim '+set tw=72' +%d '%s' Here is the example of the header for a _new_ post to slrn: [...] Note that I have left '#' at the beginning of each line in case that to do otherwise might cause mail problems. That's as it should be, I think. But if I do a reply to a posting, I get a header that looks like this: #To: metal metal...@gmail.com #Subject: Re: '11' + '1' is '111'? #In-Reply-To: #de0f1a87-a24d-4347-8b22-25af5f9b5...@t11g2000prh.googlegroups.com #References: #de0f1a87-a24d-4347-8b22-25af5f9b5...@t11g2000prh.googlegroups.com #Reply-To: t...@johnsons-web.com Sorry, I don't know the solution to the wrapping. Nor do I know whether it's a slrn issue or a Vim issue. You could check your 'formatoptions' when editing an article in Vim. :verbose set formatoptions? Again, note the '#'s and possible wrapping. The #To: metal metal...@gmail.com is wrong, I believe. It should be: #Newsgroups: comp.lang.python Do you mean to followup rather than reply? Followup is directed to newsgroups, and reply is directed to mail. My questions is, what should be the proper entry in .slrnrc? thanks If you have further questions pertaining to slrn, news.software.readers would be a proper forum. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
RE: gvimdiff default color scheme
From: johnb.beck...@gmail.com To: vim_use@googlegroups.com Subject: RE: gvimdiff default color scheme Date: Fri, 30 Oct 2009 08:52:10 +1100 Roy Fulbright wrote: How can I specify a default color scheme for gvimdiff that is different from my default color scheme when opening a single file? Thanks. If you mean a particular file has a different color scheme: http://vim.wikia.com/wiki/Change_the_color_scheme_to_show_where_you_are John What I want is for gvim to use colorscheme A for normal editing and to use colorscheme B for gvimdiff. _ Windows 7: Simplify your PC. Learn more. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen1:102009 --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: configuring vim for slrn - headers
* James Michael Fultz croo...@gmail.com [091029 19:00]: Sorry, I don't know the solution to the wrapping. Nor do I know whether Again, note the '#'s and possible wrapping. The Hi James I'm sorry. Obviously bad phrasing. Wrapping is not a problem. I just called attention to it. it's a slrn issue or a Vim issue. You could check your 'formatoptions' when editing an article in Vim. .. :verbose set formatoptions? Oh good! That's going to give me something to chew on. Do you mean to followup rather than reply? Followup is directed to newsgroups, and reply is directed to mail. I know, but I am a dummy when using newsgroups - which I do infrequently. Thus, I am prone to typing 'r' instead of 'f'. Perhaps my question should be: Is there a way to make 'r' act like 'f' when in a newsgroup? If you have further questions pertaining to slrn, news.software.readers would be a proper forum. I will look at :h fomatoptions. Thanks -- Tim t...@johnsons-web.com http://www.akwebsoft.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: configuring vim for slrn - headers
* Tim Johnson t...@johnsons-web.com [091029 19:18]: newsgroups, and reply is directed to mail. I know, but I am a dummy when using newsgroups - which I do infrequently. Thus, I am prone to typing 'r' instead of 'f'. Perhaps my question should be: Is there a way to make 'r' act like 'f' when in a newsgroup? OK. I posted in the wrong place. The easy solution is in .slrnrc. changed setkey article replyr to setkey article followup r -- Tim t...@johnsons-web.com http://www.akwebsoft.com --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
cindent like function for verilog
Is there a cindent like function in vim that can indent verilog code? --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---