vim_use [email protected] http://groups.google.com/group/vim_use?hl=en
Today's most active topics: * Using one buffer as "information screen" - 10 new http://groups.google.com/group/vim_use/t/f82c7aa2924749be?hl=en * Can I prevent from quiting gvim when click the close bottom on title bar? - 8 new http://groups.google.com/group/vim_use/t/4abdfd37837f50a7?hl=en * How to disable swapfile when editing a directory? - 5 new http://groups.google.com/group/vim_use/t/4862bca278794a6b?hl=en * How to list all occurrence of a identifier - 5 new http://groups.google.com/group/vim_use/t/c7768e7e9faecfb0?hl=en * help with help, comments, and interactions with Unix (the :! construction) - 4 new http://groups.google.com/group/vim_use/t/8af4db0b48e8c214?hl=en Active Topics ------------- How to do this? - 1 new ----------------------- ...While regular expressions can do wonders, here is yet another way to solve your problem using VimL: let line = 1 while line < line('$') let fline = split( getline(line))[:2] let logfile = fnamemodify(fline[1], ":t:r") call setline( line, join(fline)) call setline((line + 1), 'logfile=./'.logfile.'.log '. getline((line + 1))) - Sun, Nov 23 2008 1:33 am 1 message, 1 author http://groups.google.com/group/vim_use/t/742d164c364f1d96?hl=en errorformat help for compiler output - 1 new -------------------------------------------- ...Close. The * is replaced by #, and all special regular expression stuff has to be preceded by % in errorformat. So '%.' is '.' and '%#' is '*'. ...Cheers, Ben. - Sun, Nov 23 2008 3:18 am 1 message, 1 author http://groups.google.com/group/vim_use/t/0e09fe5f72b17d40?hl=en Using one buffer as "information screen" - 10 new ------------------------------------------------- ...Oh, and if you want to print the summary of all your "beers" in the first line in the quickfix window and assuming you have standard (uniform fields) records in every line in your cashbook, like the one you've already mentioned, -10 beer then, the function can be modified further, here is a way to do it: - Sun, Nov 23 2008 3:29 am 10 messages , 4 authors http://groups.google.com/group/vim_use/t/f82c7aa2924749be?hl=en Select 'v' Issue - 3 new ------------------------ Change color scheme? For convenient color scheme rotation see in vim tips the tip # 955. Based on this I've added following to my .vimrc: function! SetNextColor(forward) if exists('g:colors_name') let colstr = 'default elflord peachpuff desert256 breeze morning' let colstr .= ' darkblue gothic aqua earth black_angus relaxedgreen' - Sun, Nov 23 2008 5:29 am 3 messages , 3 authors http://groups.google.com/group/vim_use/t/f48a3c834b12b095?hl=en how to count how many certain strings are in a file? - 1 new ------------------------------------------------------------ Some more counting examples: :%s/./&/gn characters :%s/\i\+/&/gn words :%s/^// n lines :%s/the/&/gn "the" anywhere :%s/\<the\>/&/gn "the" as a word Yosi - Sun, Nov 23 2008 5:37 am 1 message, 1 author http://groups.google.com/group/vim_use/t/e205d3dcc905bcab?hl=en i think this is a little bug of Vim - 2 new ------------------------------------------- ...I can't reproduce that - vim 7.2.025 on linux. The first <C-u> deletes " apple", then future presses do nothing. With 'bs' set to contain 'start', the second <C-u> deletes "this is a " just fine. ...~Matt - Sun, Nov 23 2008 9:22 am 2 messages , 2 authors http://groups.google.com/group/vim_use/t/a5f794b837db92f1?hl=en help with help, comments, and interactions with Unix (the :! construction) - 4 new --- I have been a user of vim for many years, and before that I used vi for even more years. However, I am new to this usergroup and I hope that I am not repeating ground that has been repeatedly covered already in the recent past. I did try searching the archives, maybe ineptly, and had no success. - Sun, Nov 23 2008 8:52 am 4 messages , 4 authors http://groups.google.com/group/vim_use/t/8af4db0b48e8c214?hl=en how to sign the unmatched bracket? - 2 new ------------------------------------------ ...Yep. ...Not for me. The final ) is highlighted as Error for me. In what context were you trying it? ...The first and third work, because the closing brackets are the errors. The others are hard. You can't really do it with syntax regions. For good reason, Vim doesn't check for the end of the syntax region when it - Sun, Nov 23 2008 2:26 pm 2 messages , 2 authors http://groups.google.com/group/vim_use/t/37af55cae8580113?hl=en Why is different color with same guibg when on different platform? - 2 new -------------------------------------------------------------------------- I use :hi Normal guibg=LightYellow to set my background, I find it has different looking when on windows and linux. On linux, the color is right, but when on windows, LightYellow would become darker, why? - Sun, Nov 23 2008 6:49 pm 2 messages , 1 author http://groups.google.com/group/vim_use/t/7cd78a3841c0b760?hl=en Can I prevent from quiting gvim when click the close bottom on title bar? - 8 new --- I'm on windows, so I can't configure the behavior of titlebar close bottom, can I configure it from inside gvim? - Sun, Nov 23 2008 7:30 pm 8 messages , 2 authors http://groups.google.com/group/vim_use/t/4abdfd37837f50a7?hl=en How to disable swapfile when editing a directory? - 5 new --------------------------------------------------------- As title, and I don't think it's very useful when editing a directory. - Sun, Nov 23 2008 7:52 pm 5 messages , 2 authors http://groups.google.com/group/vim_use/t/4862bca278794a6b?hl=en How to list all occurrence of a identifier - 5 new -------------------------------------------------- Hi, I am using vim writing C/C++ and I want to (as one usually can in other IDE) have vim listed all occurrence of identifier. For example, there is a method foo() in a class C, I want to get know where the foo() is called in the whole project (current directory and its subdirectories). It seems, in this case, a ctag tags file does not - Sun, Nov 23 2008 9:37 pm 5 messages , 4 authors http://groups.google.com/group/vim_use/t/c7768e7e9faecfb0?hl=en Cursor become invisible. - 2 new -------------------------------- Hello, Michael. Thanks for your ``let &guifont=&guifont`` suggestion, it's work :) If I leave guifont empty I still have this problem. I read forum [link] Some people there think that this behavior depends in some way on the window manager used (I use kde 3.5.9). Very strange... - Mon, Nov 24 2008 12:43 am 2 messages , 2 authors http://groups.google.com/group/vim_use/t/3a735a0e2c526c6b?hl=en ============================================================================== You received this message because you are subscribed to the Google Groups "vim_use" group. To post to this group, send email to [email protected] or visit http://groups.google.com/group/vim_use?hl=en To unsubscribe from this group, send email to [email protected] To change the way you get mail from this group, visit: http://groups.google.com/group/vim_use/subscribe?hl=en To report abuse, send email explaining the problem to [email protected] ============================================================================== Google Groups: http://groups.google.com/?hl=en --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
