Re: New to Vim
On Thu, Apr 10, 2014 at 10:28:31PM -0700, john s wrote: Hello, I have a quick question that i would greatly appreciate help with. I am taking programming courses to get my degree in Computer Information Systems and i am currently studying about Linux and windows text editors. I was told about VIM and how it is a better text editor than windows power shell. My question is if i download this to my laptop will i still be able to use powershell if need be or will i only be able to run VIM after installing. I am using a windows 8 laptop currently. Thanks you for any help. May I presume that when you compare PowerShell to Vim, you are actually talking about the PowerShell ISE? Vim and the PowerShell ISE can coexist on your laptop. You may not wish to associate .ps1 and psm1 files with Vim until you are more comfortable with Vim, however. But you are free to open such files in Vim, and doing so will not prevent you from working on them in the PowerShell ISE later. As you're just getting your feet wet with Vim, may I recommend spending half an hour or so with the 'vimtutor' program which is distributed with Vim? It will help you come up to speed on a few of Vim's most unique and useful features in short order. I also find Mr. Miessler's Vim Tutorial and Primer to be a friendly resource for new Vimmers: http://www.danielmiessler.com/study/vim One final piece of advice: Vim is quite unlike any other piece of software you have ever used. Expect to be frustrated at first, and don't give up on it easily. After getting past the steep learning curve in a few weeks (the duration depends upon how heartily you dig in and build new habits) you will be rewarded with many years of effortless editing. Good luck! -- Erik Falor Registered Linux User #445632 http://linuxcounter.net pgpqi02XJ8X4R.pgp Description: PGP signature
Compile vim with perl
Need to use perl in vimscript. My system vim on :echo has('per') prints 0. I hav no expirience in compiling vim so can anyone help me to buil vim with perl? -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Compile vim with perl
Hi Erop, On Fri, 11 Apr 2014 10:59:48 +0300 Егор negr...@mail.ru wrote: Need to use perl in vimscript. My system vim on :echo has('per') prints 0. I hav no expirience in compiling vim so can anyone help me to buil vim with perl? I'm using the following script to build perl: #!/bin/bash set -x ./configure $@ --prefix=$HOME/apps/vim \ --enable-fail-if-missing \ --with-features=huge \ --enable-perlinterp --enable-pythoninterp --enable-rubyinterp \ --enable-tclinterp \ Vim uses a standard ./configure/autoconf setup. Also see the links here: https://duckduckgo.com/?q=how%20to%20build%20vim Note that you should provide more information about your system and setup where you want to build Vim. Finally see http://www.shlomifish.org/philosophy/computers/netiquette/email/start-new-thread.html regarding how to start a new thread. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Parody of The Fountainhead - http://shlom.in/towtf Chuck Norris is the reason why OpenBSD is called OpenBSD. They wanted to call it LockedDownBSD but couldn't find a way to keep Chuck Norris out! (By Andrew Brehm) — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Compile vim with perl
Hi Erop, On Fri, 11 Apr 2014 11:41:48 +0300 Егор negr...@mail.ru wrote: First problem - during configure got such message checking if compile and link flags for Perl are sane... no PERL DISABLED using this ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --enable-luainterp --enable-perlinterp=yes --enable-cscope --prefix=$HOME/apps/vim conf.log Try looking for the problem in configure.log. If need some additional info? say what comand outputs it Please give me the output of uname -a and cat /etc/lsb-release. Regards, Shlomi Fish -- - Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ 95% of Programmers consider 95% of the code they did not write, in the bottom 5%. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: systematic replacement of text
On Wednesday, April 09, 2014 09:41:53 PM you wrote: Am I overlooking something? I see. The difference comes from virtualedit: I have it set to all, you seem to have it left to the default (which is unset). As a workaround, you can triple the last %, so that `` jumps to the right place. It's also probably a good idea to search for \\xxx{ rather than \\xxx\, to avoid matching the definition of \xxx. To summarize it: /\\xxx{^Mdt{dx``x@qq ^^^ /lcd Hi again, I already tried the macro with virtualedit set to all and it works just fine. Thank you everyone who replied to my request :) I really appreciated it! Natércia -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type
Hi All, I'm happy to announce a new plugin: vim-textobj-quotes - text objects for the closest pairs of quotes of any type. https://github.com/beloglazov/vim-textobj-quotes Using only `iq` or `aq` it allows you to operate on the content of single ('), double (), or back (`) quotes that currently surround the cursor, are in front of the cursor, or behind (in that order of preference). In other words, it jumps forward or backwards when needed to reach the quotes. It's easier to understand by looking at examples (the cursor is shown with |): 1. Before: foo '1, |2, 3' bar; after pressing diq: foo '|' bar 2. Before: foo| '1, 2, 3' bar; after pressing diq: foo '|' bar 3. Before: foo '1, 2, 3' |bar; after pressing diq: foo '|' bar 4. Before: foo '1, |2, 3' bar; after pressing daq: foo | bar 5. Before: foo| '1, 2, 3' bar; after pressing daq: foo | bar 6. Before: foo '1, 2, 3' |bar; after pressing daq: foo | bar The examples above are given for single quotes, the plugin works exactly the same way for double () and back (`) quotes. Please let me know if you find any bugs :) Cheers, Anton Beloglazov -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: New to Vim
firstly Vim and Power Shell is like apples and oranges. Power Shell is a command line console implementation. Vim is an editor. So in answer to your question no they do not effect each other. On Fri, Apr 11, 2014 at 12:28 AM, john s eggiela...@gmail.com wrote: Hello, I have a quick question that i would greatly appreciate help with. I am taking programming courses to get my degree in Computer Information Systems and i am currently studying about Linux and windows text editors. I was told about VIM and how it is a better text editor than windows power shell. My question is if i download this to my laptop will i still be able to use powershell if need be or will i only be able to run VIM after installing. I am using a windows 8 laptop currently. Thanks you for any help. John -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com http://geraldklein.com/ geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch Awesome, Ranger Vim the coding triple threat. Linux registered user #548580 Brought to you by the Amish Mafia -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Troubles with perl script in Vim
Trying to set to status line current subname, using this manual http://blogs.perl.org/users/ovid/2011/01/show-perl-subname-in-vim-statusline.html First problem - when I put it on my vimrc I get error on vim start line 11: E126: Missing :endfunction my vimrc is empty, I put there only script from manual page. If I don't use EOP ... EOP got no errors. So I put so function! WhitePearl() perl 'use strict; sub current_sub {my $curwin = $main::curwin; my $curbuf = $main::curbuf; my @document = map { $curbuf-Get($_) } 0 .. $curbuf-Count; my ( $line_number, $column ) = $curwin-Cursor; my $sub_name = \'(not in sub)\'; for my $i ( reverse ( 1 .. $line _number -1 ) ) {my $line = $document[$i]; if ( $line =~ /^\s*sub\s+(\w+)\b/ ) { $sub_name = $1; last; }} VIM::DoCommand let subName=\'$line_number: $sub_name\'; }; ' endfunction call WhitePearl() After this if i try to output variable subName vim prints Undefined variable. Help me_) my :version :version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 11 2014 05:00:10) Compiled by negor@dev25 Huge version without GUI. Features included (+) or not (-): +arabic -clipboard +cursorbind +eval -footer +langmap +mksession +mouse_sgr +path_extra +quickfix+startuptime +terminfo +visual -X11 +autocmd +cmdline_compl +cursorshape +ex_extra +fork() +libcall +modify_fname-mouse_sysmouse +perl+reltime +statusline +termresponse +visualextra -xfontset -balloon_eval+cmdline_hist+dialog_con +extra_search +gettext +linebreak +mouse +mouse_urxvt +persistent_undo +rightleft -sun_workshop+textobjects +viminfo -xim -browse +cmdline_info+diff+farsi -hangul_input+lispindent -mouseshape +mouse_xterm +postscript -ruby+syntax +title +vreplace-xsmp ++builtin_terms +comments+digraphs+file_in_path +iconv +listcmds+mouse_dec +multi_byte +printer +scrollbind +tag_binary -toolbar +wildignore -xterm_clipboard +byte_offset +conceal -dnd +find_in_path +insert_expand +localmap-mouse_gpm +multi_lang +profile +signs +tag_old_static +user_commands +wildmenu-xterm_save +cindent +cryptv -ebcdic +float +jumplist-lua -mouse_jsbterm -mzscheme -python +smartindent -tag_any_white +vertsplit +windows -clientserver+cscope +emacs_tags +folding +keymap +menu+mouse_netterm +netbeans_intg -python3 -sniff -tcl +virtualedit +writebackup system vimrc file: $VIM/vimrc user vimrc file: $HOME/.vimrc 2nd user vimrc file: ~/.vim/vimrc user exrc file: $HOME/.exrc fall-back for $VIM: /home/negor/apps/vim/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-E -L/usr/local/lib -Wl,--as-needed -o vim -lm -ltinfo -lnsl -ldl -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lcrypt my uname -a Linux negor 2.6.32-5-amd64 #1 SMP Mon Sep 23 22:14:43 UTC 2013 x86_64 GNU/Linux -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Troubles with perl script in Vim
On Fri, Apr 11, 2014, at 04:53 AM, Егор wrote: Trying to set to status line current subname, using this manual http://blogs.perl.org/users/ovid/2011/01/show-perl-subname-in-vim-statusline.html First problem - when I put it on my vimrc I get error on vim start line 11: E126: Missing :endfunction my vimrc is empty, I put there only script from manual page. If I don't use EOP ... EOP got no errors. So I put so function! WhitePearl() perl 'use strict; sub current_sub {my $curwin = $main::curwin; my $curbuf = $main::curbuf; my @document = map { $curbuf-Get($_) } 0 .. $curbuf-Count; my ( $line_number, $column ) = $curwin-Cursor; my $sub_name = \'(not in sub)\'; for my $i ( reverse ( 1 .. $line _number -1 ) ) {my $line = $document[$i]; if ( $line =~ /^\s*sub\s+(\w+)\b/ ) { $sub_name = $1; last; }} VIM::DoCommand let subName=\'$line_number: $sub_name\'; }; ' endfunction call WhitePearl() After this if i try to output variable subName vim prints Undefined variable. Help me_) Just calling WhitePearl() will only define the subroutine current_sub(). Are you also calling perl current_sub() somewhere? You don't show that here, but the blog post you referred to calls it from StatusLineIndexLine() and that is where subName actually gets defined. Dan -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Troubles with perl script in Vim
11.04.2014 16:44, Dan Lowe написав(ла): On Fri, Apr 11, 2014, at 04:53 AM, Егор wrote: Trying to set to status line current subname, using this manual http://blogs.perl.org/users/ovid/2011/01/show-perl-subname-in-vim-statusline.html First problem - when I put it on my vimrc I get error on vim start line 11: E126: Missing :endfunction my vimrc is empty, I put there only script from manual page. If I don't use EOP ... EOP got no errors. So I put so function! WhitePearl() perl 'use strict; sub current_sub {my $curwin = $main::curwin; my $curbuf = $main::curbuf; my @document = map { $curbuf-Get($_) } 0 .. $curbuf-Count; my ( $line_number, $column ) = $curwin-Cursor; my $sub_name = \'(not in sub)\'; for my $i ( reverse ( 1 .. $line _number -1 ) ) {my $line = $document[$i]; if ( $line =~ /^\s*sub\s+(\w+)\b/ ) { $sub_name = $1; last; }} VIM::DoCommand let subName=\'$line_number: $sub_name\'; }; ' endfunction call WhitePearl() After this if i try to output variable subName vim prints Undefined variable. Help me_) Just calling WhitePearl() will only define the subroutine current_sub(). Are you also calling perl current_sub() somewhere? You don't show that here, but the blog post you referred to calls it from StatusLineIndexLine() and that is where subName actually gets defined. Dan Problem solved. Trailing EOF shouldn't have any charachters before it. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: New to Vim
John, Powershell and vim are 2 separate apps...you'll be able to use either Paul S On 4/10/2014 10:28 PM, john s wrote: Hello, I have a quick question that i would greatly appreciate help with. I am taking programming courses to get my degree in Computer Information Systems and i am currently studying about Linux and windows text editors. I was told about VIM and how it is a better text editor than windows power shell. My question is if i download this to my laptop will i still be able to use powershell if need be or will i only be able to run VIM after installing. I am using a windows 8 laptop currently. Thanks you for any help. John -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: vim drawit vs. http://asciiflow.com/#Draw
ping song wrote: hi Dr. Chip: I'm a big fan of your Drawit plugin (thanks!). today I hear of asciiflow.com/#Draw http://asciiflow.com/#Draw, it looks surprisingly nice too. I guess it's not possible to have the similiar ability in vim? I just glanced at asciiflow. What is it that you want that DrawIt doesn't have? The only thing I saw was the ability to grab a line (or box) and resize it. I think that would entail having DrawIt remember hotspots on each drawing activity so that they could be grabbed and redone. Regards, Chip Campbell -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
dtd2vim
Hi, I am trying to use the dtd2vim perl script. I have perl installed, and have been able to use other perl installations, but this one doesn't seem to work. I sent some email to the developer, but haven't heard anything. Has anyone used this, or had any success? Thanks, Russ -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Official Windows build recipe
Hello, list! What's the procedure used to build the official Windows Vim and Gvim, including the installer? (I'm trying to troubleshoot some crashes in the newest official Windows build -- 2013.08.10 -- when viewing a certain file. I've succeeded in building from HEAD, and it doesn't have the bug; but I'd like to be able to match the official package in features and package what I have built.) -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Select entire line based on tag, then export only those lines of text
Hello everyone! First off, let me say that I am a designer, and don't have the higher level of thinking required to do what I would like to accomplish. That being said, if anyone could help me, I would be so, so grateful and appreciative! Here's what I've got - a tab delimited text file ~1.6GB. It's a huge file. Step 1: What I need to do is search out anything that has the word ambulance and copy the entire line in VIM. Here's a example of l entry: 1003006180 MEDICWEST AMBULANCE, INC. O 9 W DELHI AVE NORTH LAS VEGAS 890327836 NV US Ambulance Service Supplier Y F A0425 Ground mileage 73737.3 787312047 7.04183459390.813869189426.0550254768.2428463203 5.58827323481.3276220145 There are thousands of entries in the text file, so to manually search through is impossible. Step 2: I then need to extract these entries that contain ambulance (the entire line)and save all of them to another text file. From there, I can import into Excel. I had considered going the MySQL route, but that's shaky for me, being a pixel pusher :) Is this something that I can easily do in VIM? It seems like it's built for that. Once again, thank you very much for any time or assistance you may be able to provide! Cheers, G -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Select entire line based on tag, then export only those lines of text
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 :g/pattern/d to delete lines matching pattern :g!/pattern/d to delete lines not matching pattern so just do :g!/\cambulance/d and then :w newfile to save the lines containing ambulance to newfile. The \c is for matching case insensitive. Mart On April 11, 2014 4:37:02 PM CEST, Greg Nevius gnev...@gmail.com wrote: Hello everyone! First off, let me say that I am a designer, and don't have the higher level of thinking required to do what I would like to accomplish. That being said, if anyone could help me, I would be so, so grateful and appreciative! Here's what I've got - a tab delimited text file ~1.6GB. It's a huge file. Step 1: What I need to do is search out anything that has the word ambulance and copy the entire line in VIM. Here's a example of l entry: 1003006180 MEDICWEST AMBULANCE, INC. O 9 W DELHI AVE NORTH LAS VEGAS 890327836 NV US Ambulance Service Supplier Y F A0425 Ground mileage73737.3 787312047 7.04183459390.8138691894 26.0550254768.24284632035.58827323481.3276220145 There are thousands of entries in the text file, so to manually search through is impossible. Step 2: I then need to extract these entries that contain ambulance (the entire line)and save all of them to another text file. From there, I can import into Excel. I had considered going the MySQL route, but that's shaky for me, being a pixel pusher :) Is this something that I can easily do in VIM? It seems like it's built for that. Once again, thank you very much for any time or assistance you may be able to provide! Cheers, G -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. - -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -BEGIN PGP SIGNATURE- Version: APG v1.1.1 iQFBBAEBCgArBQJTSD3WJBxNYXJ0IEx1YmJlcnMgPG1hcnRAbWFydGx1YmJlcnMu bmV0PgAKCRCpN7ehrT/r5zUSCACyO5CX/lOzA5sU4saC6/CRuj7tCQUy/azt8kgf /KgLkUYvAg/3DBieOQ1P58p5XmUqFzf/kv5FiiOhFx/JLYoDPXRAIz3EGgHPZH+I KDTCF5wfiaoaCWxPHgB4L4QPnf7zjkqLS8djOvk2v4iaHoJoZPB0RDBlt1JsVEHf Nl+M7dB8mfftPR6DQO6JreIsLMGGCr5TP0JWPMLSje0T1v4CYJUMctH8T32sz976 HllFgSdcEDxPjmGWEoZNXxZzD6FQ20tb9qXtgX5lfZRyB3/Kk1Woij80h0MWI2JW 0mss//85Ms5rI2S38BVUHMcT0SH8mjvlkq8NvCOEzvYDKxKy =EF5T -END PGP SIGNATURE- -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Official Windows build recipe
google: wiki vim build windows eg shows http://vim.wikia.com/wiki/Build_Python-enabled_Vim_on_Windows_with_MinGW Marc Weber -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Select entire line based on tag, then export only those lines of text
On 2014-04-11 07:37, Greg Nevius wrote: Hello everyone! First off, let me say that I am a designer, and don't have the higher level of thinking required to do what I would like to accomplish. That being said, if anyone could help me, I would be so, so grateful and appreciative! Here's what I've got - a tab delimited text file ~1.6GB. It's a huge file. This will be a dog to deal with. If you have access to sed, I'd start by filtering the file down to just the matching lines and then perform steps 2+ on those filtered results: sed -n /ambulance/ input.txt ambulances.txt If not, you might have a look at the largefile plugin http://vim.wikia.com/wiki/Faster_loading_of_large_files which disables a few features that makes vim a *lot* faster when dealing with huge files. If you're doing this in vim, I'd copy the file to one you can edit and then do the following: :v/ambulance/d which will delete all the lines in the file that don't contain the word ambulance. If you want to ignore case, you can use :v/ambulance\c/d and if you want to keep the header lines, you can apply the command to lines 2 through the end: :2,$v/ambulance\c/d At this point, you should roughly have the same result as you would have had with sed, except that sed wouldn't suck up as much memory. If you want to keep the header line in sed, you can use sed '2,$/header/d' and if you want it to ignore case, at least with GNU sed, you can use sed '2,$/header/Id' (On Win32, which you say you are, you might have to use double-quotes around the command instead of single-quotes [include predictable grouse about Win32 command-lines]) Is this something that I can easily do in VIM? It seems like it's built for that. Yep. :-) -tim -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Select entire line based on tag, then export only those lines of text
Greg Nevius wrote: Hello everyone! First off, let me say that I am a designer, and don't have the higher level of thinking required to do what I would like to accomplish. That being said, if anyone could help me, I would be so, so grateful and appreciative! Here's what I've got - a tab delimited text file ~1.6GB. It's a huge file. Step 1: What I need to do is search out anything that has the word ambulance and copy the entire line in VIM. Here's a example of l entry: 1003006180 MEDICWEST AMBULANCE, INC. O 9 W DELHI AVE NORTH LAS VEGAS 890327836 NV US Ambulance Service Supplier Y F A0425 Ground mileage 73737.3 787312047 7.04183459390.813869189426.0550254768.2428463203 5.58827323481.3276220145 There are thousands of entries in the text file, so to manually search through is impossible. Step 2: I then need to extract these entries that contain ambulance (the entire line)and save all of them to another text file. From there, I can import into Excel. I had considered going the MySQL route, but that's shaky for me, being a pixel pusher :) Is this something that I can easily do in VIM? It seems like it's built for that. Once again, thank you very much for any time or assistance you may be able to provide! vim yourtabdelimitedfile :w ambulance-only-file :e ambulance-only-file :v/\c\ambulance\/d :wq That should do it (untested, I'm afraid). Regards, Chip Campbell -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Official Windows build recipe
Thanks, but I'm looking for the exact way the official binary is produced (or as close to it as I can get). I suppose that might be tangential to fixing the problem I found, however. I guess it would be really great if the Vim Windows team just released a new binary installer that fixed my bug. Does this list allow the posting of text attachments? On Fri, Apr 11, 2014 at 2:12 PM, Marc Weber marco-owe...@gmx.de wrote: google: wiki vim build windows eg shows http://vim.wikia.com/wiki/Build_Python-enabled_Vim_on_Windows_with_MinGW Marc Weber -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type
Hello, IMHO a bit unnecessary with the builtin possible motions. I use lots of : di' da' etc. The only benefits would be your the example 3 and 5 on which I would need to do two successive commands. Am I right or there others benefits I haven't noticed? Thanks anyway for the plugin and the share on the mailing list :) On Fri, Apr 11, 2014 at 02:13:32AM -0700, Anton Beloglazov wrote: Hi All, I'm happy to announce a new plugin: vim-textobj-quotes - text objects for the closest pairs of quotes of any type. https://github.com/beloglazov/vim-textobj-quotes Using only `iq` or `aq` it allows you to operate on the content of single ('), double (), or back (`) quotes that currently surround the cursor, are in front of the cursor, or behind (in that order of preference). In other words, it jumps forward or backwards when needed to reach the quotes. It's easier to understand by looking at examples (the cursor is shown with |): 1. Before: foo '1, |2, 3' bar; after pressing diq: foo '|' bar 2. Before: foo| '1, 2, 3' bar; after pressing diq: foo '|' bar 3. Before: foo '1, 2, 3' |bar; after pressing diq: foo '|' bar 4. Before: foo '1, |2, 3' bar; after pressing daq: foo | bar 5. Before: foo| '1, 2, 3' bar; after pressing daq: foo | bar 6. Before: foo '1, 2, 3' |bar; after pressing daq: foo | bar The examples above are given for single quotes, the plugin works exactly the same way for double () and back (`) quotes. Please let me know if you find any bugs :) Cheers, Anton Beloglazov -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Trailing spaces in comments after gq inside php-files
On Thursday, July 30, 2009 4:04:22 AM UTC-3, Jerri wrote: One thing nonetheless bothers me. Without filetype plugins and indent, if I reformat a commentblock (#) inside my php-code (e.g. by marking the comment and pressing gq) everything works all right. Unfortunately using the plugins and indents If I write a long comment on a line and then reformat the line I get trailing spaces in the comment. Right now I have to remove them by hand. Inside /usr/share/vim/vim74/indent/php.vim there is the following line: setlocal formatoptions+=w It adds a space character at the end of lines. (see :help fo-table) -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: ANN: vim-textobj-quotes - text objects for the closest pairs of quotes of any type
Thanks for your feedback! One major difference with the built-in text objects is that this plugin provides a single text object that handles three types of quotes in a unified way, i.e., with a single key binding. Another difference is that this plugin supports multiple lines, for example: Before: some |text this is a multiline string After diq: some text | And you are right, as in examples 3 and 6 it can jump back, which the built-in text objects don't support. Please let me know if you think there are other interesting use cases :) Cheers, Anton On Saturday, 12 April 2014 07:21:46 UTC+10, aRkadeFR wrote: Hello, IMHO a bit unnecessary with the builtin possible motions. I use lots of : di' da' etc. The only benefits would be your the example 3 and 5 on which I would need to do two successive commands. Am I right or there others benefits I haven't noticed? Thanks anyway for the plugin and the share on the mailing list :) On Fri, Apr 11, 2014 at 02:13:32AM -0700, Anton Beloglazov wrote: Hi All, I'm happy to announce a new plugin: vim-textobj-quotes - text objects for the closest pairs of quotes of any type. https://github.com/beloglazov/vim-textobj-quotes Using only `iq` or `aq` it allows you to operate on the content of single ('), double (), or back (`) quotes that currently surround the cursor, are in front of the cursor, or behind (in that order of preference). In other words, it jumps forward or backwards when needed to reach the quotes. It's easier to understand by looking at examples (the cursor is shown with |): 1. Before: foo '1, |2, 3' bar; after pressing diq: foo '|' bar 2. Before: foo| '1, 2, 3' bar; after pressing diq: foo '|' bar 3. Before: foo '1, 2, 3' |bar; after pressing diq: foo '|' bar 4. Before: foo '1, |2, 3' bar; after pressing daq: foo | bar 5. Before: foo| '1, 2, 3' bar; after pressing daq: foo | bar 6. Before: foo '1, 2, 3' |bar; after pressing daq: foo | bar The examples above are given for single quotes, the plugin works exactly the same way for double () and back (`) quotes. Please let me know if you find any bugs :) Cheers, Anton Beloglazov -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- -- 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 --- You received this message because you are subscribed to the Google Groups vim_use group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.