Re: make inside vim session.

2008-10-23 Thread Chris Jones
On Thu, Oct 23, 2008 at 12:15:04PM -0700, Gary Johnson wrote: The other way is to run make in the background and redirect its output to a file. When it's done, read that file into your quickfix buffer with a command such as :cf. See This to me seems ideal. I mucked around with it and the

Re: Does anybody use cscope together with VIM?

2008-12-16 Thread Chris Jones
On Mon, Dec 15, 2008 at 05:08:54AM +0100, Tony Mechelynck wrote: This is the third almost identical post on the same subject. Before the second one, you had already received two replies, so please read them. Regards, Tony. Tony; This is probably someone thinking the original message did

Re: Opening files in new buffers

2010-12-03 Thread Chris Jones
On Wed, Dec 01, 2010 at 05:07:19PM EST, Ven Tadipatri wrote: [..] There's tabbed browsing in vim as well right? More like tabbed editing. ;-) Sometimes I notice links being opened in horizontal tabs. What's the difference between these tabs and the buffers that are opened? In other words,

Re: how to solve this strange issue?

2010-12-03 Thread Chris Jones
On Thu, Dec 02, 2010 at 05:38:42PM EST, Israel Chauca F. wrote: On Dec 2, 2010, at 2:23 AM, bsmile wrote: Dear members, I copy something and paste to another vi editor, but the leading white space adds up for subsequent lines. For example, what is copied is aa bb cc

Re: introducing vmail

2010-12-15 Thread Chris Jones
On Tue, Dec 14, 2010 at 02:49:01PM EST, Daniel Choi 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: Slow vim loading , how to find it out

2010-12-18 Thread Chris Jones
On Sat, Dec 18, 2010 at 01:57:37AM EST, sc wrote: On Friday 17 December 2010 23:51:27 Tom Link wrote: it's using over half of all startup time In this case it won't work because you probably want to load the plugin on every startup, but you can use plugins like asneeded, tplugin to

Re: introducing vmail

2010-12-18 Thread Chris Jones
On Thu, Dec 16, 2010 at 09:08:52PM EST, Daniel Choi wrote: These are all very good suggestions. Thanks! After posting, I was a little concerned you might take my comments as negative, which they were not meant to be. One possible route might be to take a hard look at mutt's interface,

Re: Make vim recognize my bashrc aliases

2010-12-18 Thread Chris Jones
On Sat, Dec 18, 2010 at 04:41:06PM EST, Roger wrote: csupport plugin is awesome! I have one issue with VIM, trying to make it recognize my bashrc aliases. ie: :!indent ./foo.c From what I've read, the cause is Bash starting in non-interactive mode. So I've modified $HOME/.vimrc:

Re: Slow vim loading , how to find it out

2010-12-19 Thread Chris Jones
On Sat, Dec 18, 2010 at 01:51:57PM EST, Benjamin R. Haskell wrote: [..] Unless you're starting and stopping Vim hundreds of times per day, See below. the amount of time it took to write that email and change the way you use CSApprox dwarfs the time savings you'll ever see from removing

Re: Make vim recognize my bashrc aliases

2010-12-19 Thread Chris Jones
On Sun, Dec 19, 2010 at 08:50:42AM EST, Roger wrote: [..] Granted, functions are more useful, but I haven't gotten around to really incorporating any of my own functions into $HOME/.bashrc yet. Aliases can be written much faster. The above clippings seem to be a very very good solution.

[OT] Re: Make vim recognize my bashrc aliases

2010-12-19 Thread Chris Jones
On Sun, Dec 19, 2010 at 12:55:41PM EST, Roger wrote: On Sun, Dec 19, 2010 at 12:29:52PM -0500, Chris Jones wrote: [..[ Let me know if you find anything useful. =app-shells/bash-4.1_p9 here. ;-) Gentoo. Yes, not a bad choice it appears. I am migrating my current systems to a new laptop

Re: AX: change letters on the fly

2010-12-26 Thread Chris Jones
On Sun, Dec 26, 2010 at 02:39:02AM EST, rameo wrote: Zyx, Dominique, I know the ctrl-k feature. I also use Texter on my pc to send advanced keystrokes to a program p.e. \\e -- transforms in ë on my pc I also have a number of blind keys on my keyboard to create foreign letters p.e.

Re: Pasting text without indentation

2011-01-14 Thread Chris Jones
On Fri, Jan 14, 2011 at 09:46:15AM EST, Reid Thompson wrote: On Fri, 2011-01-14 at 12:26 +, jaye...@gmail.com wrote: Say I copy some text from a browser. Normally I hit ctrl+v to paste it. Works but all of the text is indented like this:- Blah Something More text.

Re: Matching Multiple Columns in Vim

2011-01-14 Thread Chris Jones
On Fri, Jan 14, 2011 at 12:10:10PM EST, Stephen Rasku wrote: I want to find anything that is not 'E' in the 11th column followed by an 'R' in 56th column. Is this possible? I've tried the following and none have worked: /\%11v[^E].*\%56vR /\%11v[^E]\%56vR /\%11c[^E].*\%56cR

Re: cp1252 characters when enc=utf-8, fenc=cp1252

2011-01-22 Thread Chris Jones
On Sat, Jan 22, 2011 at 05:34:01PM EST, Ben Fritz wrote: On Jan 22, 3:48 am, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: I think so. :help 'fileencoding' describes conversion as taking place when files are written and read, implying that when a file is actually being edited, it

Re: cp1252 characters when enc=utf-8, fenc=cp1252

2011-01-27 Thread Chris Jones
On Sat, Jan 22, 2011 at 05:41:33PM EST, Ben Fritz wrote: [..] I work in Windows XP mostly, I actually have never heard of xkb and don't have the slightest idea what it's level 3 is. Converting to UTF-8 for this particular file would be OK but doesn't serve much purpose, and most of the files

Remapping CTRL-I to Esc

2011-01-27 Thread Chris Jones
Is it possible to remap CTRL-I to ‘Escape’ in insert mode without remapping Tab at the same time? I normally use CTRL+[ because the Escape key on my laptop is impossible to reach but even that is not really comfortable. Thanks, cj -- You received this message from the vim_use maillist. Do not

Re: Remapping CTRL-I to Esc

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 12:52:55AM EST, Ben Schmidt wrote: On 28/01/11 3:56 PM, Chris Jones wrote: Is it possible to remap CTRL-I to ‘Escape’ in insert mode without remappingTab at the same time? I normally use CTRL+[ because the Escape key on my laptop is impossible to reach but even

Re: Remapping CTRL-I to Esc

2011-01-28 Thread Chris Jones
CM SPAM detection: spam References: 20110128045628.GD4117@pavo.local 4d42bb15.6020...@tim.thechases.com User-Agent: Mutt/1.5.18 (2008-05-17) X-Original-Sender: cjns1...@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 167.206.4.200 is neither permitted nor

Re: cp1252 characters when enc=utf-8, fenc=cp1252

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 11:15:18AM EST, Benjamin Fritz wrote: On Thu, Jan 27, 2011 at 10:43 PM, Chris Jones cjns1...@gmail.com wrote: [..] Maybe you should set your locale to latin1 instead of UTF-8 and the encoding to cp1251? Latin1 has no representation for various characters which I

Re: Typing numbers

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 09:18:46AM EST, adroid28 wrote: Hi all :) I am fairly new in vim and also my touch typing is not that great. Although I can deal very well with all the vim commands I found my self always looking down when I need to write a number argument. I was wondering wether

Re: Remapping CTRL-I to Esc

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 02:20:06PM EST, Ben Fritz wrote: On Jan 28, 12:14 pm, Chris Jones cjns1...@gmail.com wrote: Actually, while writing my reply, I tried a: | :inoremap Esci Esc In my environment, this causes the Alt+I combo to send Esc to Vim.. and it looks like it might

Re: Remapping CTRL-I to Esc

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 03:14:36PM EST, Tim Chase wrote: On 01/28/2011 12:14 PM, Chris Jones wrote: In my environment, this causes theAlt+I combo to sendEsc to Vim.. and it looks like it might work with no side effects -- I first checked in insert mode thatAlt+I did not do anything that I

Re: Typing numbers

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 05:35:02PM EST, Tim Chase wrote: I concur that prefixing Vim normal mode commands with a count, such as ‘7dw’ to delete the next seven words is ineffective.. Something like ‘dw’ where you delete the next word (dw) and repeat the last command (.) a number of times is

Re: Typing numbers

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 11:12:10PM EST, Ben Schmidt wrote: Hehe. Since we're sharing...If I were fixing 'rememberiing', I probably would have done: /iiEnterx No need to count, and no need to watch what I'm doing to know when to stop repeatedly pushing something either. I do this a lot. If

Re: Typing numbers

2011-01-28 Thread Chris Jones
On Fri, Jan 28, 2011 at 11:28:27PM EST, Ben Schmidt wrote: [*] you can add more than one character, so if you wanted, you could get fancy with something like 40i-=esc to get a nice row of 80 characters like -=-=-=-...=-=-=-= but again you then have to do the math and divide down. Not

Re: Typing numbers

2011-02-01 Thread Chris Jones
On Sun, Jan 30, 2011 at 09:03:03AM EST, Dotan Cohen wrote: On Fri, Jan 28, 2011 at 16:18, adroid28 d.athina...@gmail.com wrote: [..] Or is it that with time I will be able to reach the numbers row without looking? I took a file to the F, J, 4, 8, F4, and F8 keys on the keyboard to

Re: Remapping CTRL-I to Esc

2011-02-01 Thread Chris Jones
On Tue, Feb 01, 2011 at 05:49:13AM EST, Erik Christiansen wrote: On Fri, Jan 28, 2011 at 07:37:17AM +0100, Christophe-Marie Duquesne wrote: On Fri, Jan 28, 2011 at 6:52 AM, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: On 28/01/11 3:56 PM, Chris Jones wrote: Is it possible

Re: Typing numbers

2011-02-01 Thread Chris Jones
On Sun, Jan 30, 2011 at 05:52:59AM EST, John Little wrote: In the spirit of this thread, I'll bite... Chris said: There's only so much can fit under my skull.. I don't believe that limit is relevant; there's only a few hundred vim commands, if you use them you'll remember them. Sloppy

Re: right align in block

2011-02-07 Thread Chris Jones
On Mon, Feb 07, 2011 at 10:23:19AM EST, rameo wrote: Let say I have these dates: Variable 1 - 21.185 Variable a - 22.345 Variable 2 - 1.401.218Variable b - 1.821 Variable 3 - apples Variable c - 17.643 Variable 4 - water Variable d - 56.030 Variable 5 -

Re: Reflowing paragraph text.

2011-02-07 Thread Chris Jones
On Mon, Feb 07, 2011 at 05:00:41PM EST, Ben Schmidt wrote: Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) I favor ‘gwap’ because the cursor stays put. And the ‘w’ is easier on my

Re: right align in block

2011-02-07 Thread Chris Jones
On Mon, Feb 07, 2011 at 05:50:16PM EST, Roy Fulbright wrote: Mastering Regular Expressions (Second Edition), by Jeffrey F. F. Friedl ISBN: 0-596-00289-0 You should check to see if there is a more recent edition. Great book! As much as I dislike regex's.. I fully agree.. Which does not

Re: Typing numbers

2011-02-07 Thread Chris Jones
On Mon, Feb 07, 2011 at 05:08:36AM EST, Dotan Cohen wrote: Here's a closeup photo of the cutting of the silicon domes. Hello Dotan, Thanks much for this pic and the other. Till I saw it I honestly had no clue what you meant.. I thought there was something like a rubber nipple in there and you

Re: right align in block

2011-02-07 Thread Chris Jones
On Mon, Feb 07, 2011 at 09:27:06PM EST, Roy Fulbright wrote: [..] Sorry about the top post. It's my email's default and it's so easy to forget. I will be more diligent in the future. :-( Doesn't bother me all that much.. sometimes I forget to top-post

Re: Start/Stop Cursor Colors

2011-02-16 Thread Chris Jones
On Tue, Feb 15, 2011 at 08:15:00PM EST, pansz wrote: On Wed, Feb 16, 2011 at 2:52 AM, Andy Leak akl...@gmail.com wrote: Can you configure Vim to send an escape sequence to the terminal when it starts and stops? You should ask Can I, instead of Can you. Hmm.. ‘can you’ here means ‘can

Re: How to move to beginning of command line

2011-02-16 Thread Chris Jones
On Wed, Feb 16, 2011 at 01:04:15PM EST, Jeremy wrote: When typing a command, (i.e., su/.../.../) how can I jump around on the command line without using the arrow keys. That is, how can I jump to the beginning, or the end, or move backward/forward? In a terminal, I can just use the

Re: OT: Vim Humans are...

2011-02-17 Thread Chris Jones
On Thu, Feb 17, 2011 at 01:43:42PM EST, meino.cra...@gmx.de wrote: [..] Is there a kind of vim psychology??? ;) I am interested in answers as I am interested in questions... :) I don't recall making a choice, but if I did, it was likely dictated by such considerations as the portability of

Re: Using no hard line breaks

2011-02-20 Thread Chris Jones
On Sun, Feb 20, 2011 at 08:31:02AM EST, Sebastian Humenda wrote: Tim Chase v...@tim.thechases.com wrote on Sun, Feb 20, 2011 at 07:24:01AM -0600: On 02/20/2011 07:12 AM, Sebastian Humenda wrote: :h 'linebreak' and :h 'breakat' With the correct key words (now), I found

Re: Using no hard line breaks

2011-02-21 Thread Chris Jones
On Mon, Feb 21, 2011 at 03:57:17AM EST, Erik Christiansen wrote: On Sun, Feb 20, 2011 at 02:37:33PM -0500, Chris Jones wrote: [..] Bt, I don't understand how Esc becomes alt/meta, and my vim needs: :map M-j gj to gain the described benefit. I vaguely remember having problems

Re: vim-orgmode

2012-02-06 Thread Chris Jones
On Mon, Feb 06, 2012 at 01:40:33PM EST, Jan Christoph Ebersbach wrote: Hi Stephan, The other course of action would be to complain to the orgmode-author that his mappings are not compatible with all vim versions. Also, mappings that use the shift and control key a lot are really not

Re: Using vim as a syntax highlighter

2012-03-16 Thread Chris Jones
On Mon, Mar 12, 2012 at 12:28:58AM EDT, Gary Johnson wrote: [..] Use the -E and -s options, e.g., vim -E -s -n $1 -cTOhtml -cw! $2 -cq! -cq! See :help -E I've been using Vim daily for a few years, but I'd never even heard of an ‘extended Ex-mode’ :-) So I issued the above

Re: Using vim as a syntax highlighter

2012-03-19 Thread Chris Jones
On Sat, Mar 17, 2012 at 02:23:09AM EDT, Dominique Pellé wrote: Chris Jones  wrote: [..] Completion only works with -E. Examples: # this does not complete when using -e: $ vim -NONE -e :hiC-D # this completes successfully with -E $ vim -NONE -E :hiC-D Ah, yes.. just

Re: How to search in digraphs?

2012-04-10 Thread Chris Jones
On Tue, Apr 10, 2012 at 03:41:02PM EDT, Peng Yu wrote: Hi, I have a hard time to find the symbol that I need in :diagraph. Is there a table that better organize the symbols? In particular, I want to type in $\times$. Could anybody let me know what is the shortcut? RFC1345 is another option,

Re: How to search in digraphs?

2012-04-11 Thread Chris Jones
On Wed, Apr 11, 2012 at 02:26:03PM EDT, Boyko Bantchev wrote: I have a hard time to find the symbol that I need in :diagraph. Is there a table that better organize the symbols? In particular, I want to type in $\times$. Could anybody let me know what is the shortcut? rfc1345 is worth

Re: How to search in digraphs?

2012-04-11 Thread Chris Jones
On Wed, Apr 11, 2012 at 04:00:27PM EDT, Christian Brabandt wrote: Hi Boyko! On Mi, 11 Apr 2012, Boyko Bantchev wrote: [..] digraph.txt or, more specifically, :help digraph-table only show part of the available digraphs (less than a half, I think). [..] That is not true. Since 7.3.116

Re: How to search in digraphs?

2012-04-11 Thread Chris Jones
On Wed, Apr 11, 2012 at 04:00:27PM EDT, Christian Brabandt wrote: [..] That is not true. Since 7.3.116 digraph.txt contains all digraphs available. Is there a format of the ‘:digraphs’ command that lets you list only custom user-defined digraphs - i.e. those that are different from the

Re: How to search in digraphs?

2012-04-12 Thread Chris Jones
On Thu, Apr 12, 2012 at 02:13:32AM EDT, Boyko Bantchev wrote: The Euro sign is not the only difference between rfc1345 and the output of :digraphs. It's the only exception listed in the documentation. I cannot tell what all of them are, but, e.g., the already mentioned /\ is known to Vim

Re: How to search in digraphs?

2012-04-12 Thread Chris Jones
On Thu, Apr 12, 2012 at 05:03:52PM EDT, Christian Brabandt wrote: Bram, On Mi, 11 Apr 2012, Chris Jones wrote: Is there a format of the ‘:digraphs’ command that lets you list only custom user-defined digraphs - i.e. those that are different from the defaults..? Couldn't find

Re: How to search in digraphs?

2012-04-14 Thread Chris Jones
On Sat, Apr 14, 2012 at 08:42:00AM EDT, Bram Moolenaar wrote: Christian Brabandt wrote: On Fr, 13 Apr 2012, Bram Moolenaar wrote: Can we use another command to list user-defined digraphs? Perhaps :dig ?? This patch would also need documentation. And a test would be good

Re: How to search in digraphs?

2012-04-14 Thread Chris Jones
On Sat, Apr 14, 2012 at 08:48:54AM EDT, Tim Chase wrote: On 04/14/12 07:42, Bram Moolenaar wrote: We don't use ? like this in any command, but somehow it feels right. I think it feels right because of the :set foo? syntax which is the tell me this setting, even if it's boolean. I like it.

Re: How to map ctrl-space in maemo's vim

2012-04-15 Thread Chris Jones
On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space to a function, but nmap ctrl-space :call Myfunc()CR does nothing. When I hit C-vctrl-space in insert mode, vim inputs ^@, so I also tried

Re: How to map ctrl-space in maemo's vim

2012-04-15 Thread Chris Jones
On Sun, Apr 15, 2012 at 07:50:38PM EDT, Yue Wu wrote: On Mon, 16 Apr 2012 05:26:01 +0800, Chris Jones cjns1...@gmail.com wrote: On Sun, Apr 15, 2012 at 09:47:11AM EDT, Yue Wu wrote: I'm using vim on maemo, which is a OS for nokia's n900 smartphone. I'm trying to map ctrl-space

Re: How to map ctrl-space in maemo's vim

2012-04-16 Thread Chris Jones
On Mon, Apr 16, 2012 at 03:48:49AM EDT, Yue Wu wrote: On Mon, 16 Apr 2012 08:51:06 +0800, Chris Jones cjns1...@gmail.com wrote: On Sun, Apr 15, 2012 at 07:50:38PM EDT, Yue Wu wrote: [..] Maemo doesn't use ctrl-space to switch desktops :) Can it? I don't run Maemo.. just GNU/linux.. so

Re: cmap to use a substitute command

2012-04-20 Thread Chris Jones
On Fri, Apr 20, 2012 at 04:47:04PM EDT, Ben Fritz wrote: On Friday, April 20, 2012 2:07:24 PM UTC-5, Andy Wokula wrote: :h getcmdline() :h c_CTRL-\_e Awesome, I didn't know about c_CTRL-\_e, I was wondering why there wasn't a setcmdline() function. Now I know! That

Re: cmap to use a substitute command

2012-04-20 Thread Chris Jones
addendum.. more likely ‘!’ or CR cmap's than :cabbrev's.. CJ -- ALL YOUR BASE ARE BELONG TO US! -- 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

Syntax highlighting...

2012-04-22 Thread Chris Jones
I have a few hundred text files, mostly documentation, and all of them basically have the following structure: | 1. first section | ... | 2. second section | ... | etc.. I would like to have Vim automatically create folds so that I could use the usual ‘z’ commands to easily collapse

Re: foldmethod=syntax

2012-04-22 Thread Chris Jones
On Sun, Apr 22, 2012 at 07:47:19AM EDT, Christian Brabandt wrote: Hi Chris! Hallo Christian, wie geht's..? On So, 22 Apr 2012, Chris Jones wrote: I have a few hundred text files, mostly documentation, and all of them basically have the following structure: | 1. first section

Re: gvim auto copy selected text to clipboard

2012-04-22 Thread Chris Jones
On Sun, Apr 22, 2012 at 02:11:47PM EDT, Gary Johnson wrote: [.. If you add both of them (i.e. unnamed and unnamedplus) you will get what you want as I already pointed. I thought I also tried that when you first posted it. I thought I set both, yanked text from one vim instance with

Re: foldmethod=syntax

2012-04-23 Thread Chris Jones
On Sun, Apr 22, 2012 at 12:44:56PM EDT, Benjamin R. Haskell wrote: On Sun, 22 Apr 2012, Chris Jones wrote: [..] The difficulty with fdm=syntax is that there is no explicit ‘end of section marker’ in my free-form, but nonetheless fairly ‘standard’ files and as often with Vim, it looks like

Re: gvim auto copy selected text to clipboard

2012-04-23 Thread Chris Jones
On Mon, Apr 23, 2012 at 02:57:58AM EDT, Gary Johnson wrote: On 2012-04-22, Chris Jones wrote: On Sun, Apr 22, 2012 at 02:11:47PM EDT, Gary Johnson wrote: [..] What are you, my English teacher? It's probably a defensive habit to give myself wiggle room. (Note the careful use of probably

Re: foldmethod=syntax

2012-04-24 Thread Chris Jones
On Mon, Apr 23, 2012 at 05:12:22PM EDT, Christian Brabandt wrote: Hi Chris! On So, 22 Apr 2012, Chris Jones wrote: On Sun, Apr 22, 2012 at 07:47:19AM EDT, Christian Brabandt wrote: Hi Chris! Hallo Christian, wie geht's..? Ich bin beeindruckt ;) Don't.. that's about all

Re: gvim auto copy selected text to clipboard

2012-04-24 Thread Chris Jones
On Mon, Apr 23, 2012 at 06:07:24PM EDT, Gary Johnson wrote: On 2012-04-23, Chris Jones wrote: [..] From a more general perspective, the OP could use the ‘autocutsel’ program that keeps X11's clipboard primary selection in sync'. Inspired by this discussion, I decided to install

Re: good 256 color theme for C

2012-04-30 Thread Chris Jones
On Mon, Apr 30, 2012 at 07:18:31AM EDT, Christian Brabandt wrote: On Mo, 30 Apr 2012, sinbad wrote: Ok, My terminal supports 256 colors, How can i use all the 256 colors in VIM in a non gui terminal. http://vim.wikia.com/wiki/256_colors_in_vim Provided the OP does NOT read the tip and

Re: good 256 color theme for C

2012-05-02 Thread Chris Jones
On Mon, Apr 30, 2012 at 08:45:51PM EDT, John Beckett wrote: Chris Jones wrote: Ok, My terminal supports 256 colors, How can i use all the 256 colors in VIM in a non gui terminal. http://vim.wikia.com/wiki/256_colors_in_vim Provided the OP does NOT read the tip and reads Steven

Re: Perform Google searches from inside Vim or on the command line, in plain text, with `goog`

2012-05-07 Thread Chris Jones
On Mon, May 07, 2012 at 01:45:18PM EDT, Daniel Choi wrote: I'm happy to announce my latest open source mini-project, `goog`. goog is a command line tool that lets you perform Google searches from the command line. Along with your query, you can specify the number of pages of results you

Re: Perform Google searches from inside Vim or on the command line, in plain text, with `goog`

2012-05-08 Thread Chris Jones
On Tue, May 08, 2012 at 07:59:00AM EDT, Daniel Choi wrote: OK it should work now on Ruby 1.8.7 Great, I'll give it a shot. I don't have a man page yet, but I'll work on that, and a language flag I don't know if help2man plays well with ruby, but I've used it in python and it's a real time

Re: Problem with :only remaping

2012-05-10 Thread Chris Jones
On Wed, May 09, 2012 at 06:32:50PM EDT, Krzysztof wrote: I will try to clarify. First the problem: noremap C-WO :echo You dont want thisCR etc. this is to block :only What I mean by that is keyboards shortcuts for :only which is C-WC-O,C-Wo The problem is, this don't work as I

Re: Problem with :only remaping

2012-05-12 Thread Chris Jones
On Fri, May 11, 2012 at 02:47:45AM EDT, Krzysztof wrote: [..] Again Thanks. I was wondering if the problem was because my plugin setup etc. Unfortunately the response is not what I expected :) I was hopping to easily remove :only mapping. I try the longer timeoutlen and see if I can work

Re: Lost file using Vim (first time ever in 15 years)

2012-05-15 Thread Chris Jones
On Tue, May 15, 2012 at 11:23:57AM EDT, Ben Fritz wrote: Since the error only occurs if 'backup' and 'writebackup' are both off, maybe we could only do the dry run conversion in this situation? I.e., if either 'backup' or 'writebackup' are set, do what Vim has always done; but if neither are

Re: Folding on markdown headers

2012-05-19 Thread Chris Jones
On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: When I create a file with markdown headers and save it, folding on the headers does not work. When I create a file with markdown headers, save it, close the window, and open the file in a new window, folding on the headers works.

Re: vim: how to yank only displayed texts in folding

2012-05-20 Thread Chris Jones
On Sun, May 20, 2012 at 05:28:10AM EDT, ping wrote: I'm using fold a lot and wondering if there is a way to yank ONLY the displayed texts? that is , say I have following folding: 30 hostname WASHDC core 31 +-- 34 lines: aaa new-model 65 +-- 2 lines: ! 67 service

Re: vim: how to yank only displayed texts in folding

2012-05-20 Thread Chris Jones
On Sun, May 20, 2012 at 07:34:36AM EDT, Christian Brabandt wrote: Hi ping! On So, 20 Mai 2012, ping wrote: [retry] sorry if I posted answered questions since I haven't found a way out yet for my issues... What was wrong with the answer you received last time?

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Thu, May 24, 2012 at 10:53:27AM EDT, Tim Chase wrote: On 05/24/12 08:34, Bob von Knobloch wrote: Hi, I've searched all over but can't find an answer. How can one perform commands like ':%s/\n/\r\r/g' (replacing newlines or tabs etc.) in the gui's 'find and replace' dialogue? Playing

Re: Period in global command

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 05:40:59AM EDT, John Degen wrote: I'm having trouble understanding why there is a period before w in the following command: :'a,'b g/^Error/ .w errors.txt Does it indicate the current directory? It's difficult searching the help for just a .;) '.' is the line

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 05:47:35AM EDT, Christian Brabandt wrote: On Fri, May 25, 2012 11:32, Chris Jones wrote: Search/replace behavior in the GUI is not only different than in the console version but appears to lead to inconsistencies: try a search ‘.*’ for instance and compare with ‘\s

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 06:00:46AM EDT, Chris Jones wrote: Anyway, I don't use the GUI so it doesn't affect me but I was thinking that there may be real world cases where possible inconsistencies (if there are any) might lead to false positives/negatives.. making the search functionality

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Tue, May 22, 2012 at 09:14:03AM EDT, Eric Weir wrote: On May 20, 2012, at 12:20 AM, Chris Jones wrote: On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: When I create a file with markdown headers and save it, folding on the headers does not work. When I create a file

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 10:10:49AM EDT, Ben Fritz wrote: On Friday, May 25, 2012 5:00:46 AM UTC-5, Chris Jones wrote: [..] Do you mean that the code overrides this setting for the GUI search..? Yes...kind of. The code for the GUI automatically inserts \V in the search pattern, which

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 07:17:57PM EDT, Gary Johnson wrote: On 2012-05-25, sc wrote: [..] when you start with an empty window, you have done nothing to tell vim what type of file you are going to create -- when you add text it still doesn't know -- if you write the file with a markdown

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 06:35:28PM EDT, Eric Weir wrote: On May 25, 2012, at 3:08 PM, Chris Jones wrote: [..] Thanks, Chris. It depends on the filetype. If it's markdown the result is foldmethod=expr. Otherwise foldmethod=manual. So it looks like the markdown script gets loaded when

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 06:47:59AM EDT, Eric Weir wrote: On May 25, 2012, at 10:12 PM, Chris Jones wrote: [..] I don't know when it became effective, but my understanding is that markdown support is built into Vim. I ran a quick test on a freshly-installed Vim 7.3 and highlighting worked

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 03:50:24PM EDT, Gary Johnson wrote: On 2012-05-25, Chris Jones wrote: There are things I find a little unclear regarding autocommands but assuming the file extension is something like ‘*.mkdwn’ shouldn't it be possible to achieve this automatically when creating

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 08:38:28PM EDT, Eric Weir wrote: On May 26, 2012, at 6:32 PM, Chris Jones wrote: [..] As soon as I issued a ‘:w /tmp/sample.mdown’ to write the [No Name] buffer to disk , the markdown was highlighted. Thanks, Chris. I did same with an .mkd extent and got the same

Re: how to match all Chinese chars?

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 09:53:55AM EDT, William Fugy wrote: Question: how to match all Chinese chars? --- fenc=utf-16le enc=utf-16le termencoding=utf-16le :g/[\%u4e00-\%u9fff]/ this command doesn't work. However

Re: Folding on markdown headers

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 11:59:36AM EDT, Eric Weir wrote: Thanks, Chris. I was going to say I had no idea there was a user-manual---until I took a look at the pdf version. In fact, I had a hard copy of the book, but got rid of it because I couldn't understand it. I went looking for it but

Re: how to match all Chinese chars?

2012-05-28 Thread Chris Jones
On Sun, May 27, 2012 at 09:25:30PM EDT, William Fugy wrote: On Mon, May 28, 2012 at 10:15 AM, Xell Liu xell@gmail.com wrote: [..] Unless I missed something, and if you absolutely need to do this, you could bypass the limitation by breaking up the range like so: | :g/[一-仿伀-俿倀-儀

Re: Folding on markdown headers

2012-05-28 Thread Chris Jones
On Sun, May 27, 2012 at 04:10:43PM EDT, Gary Johnson wrote: On 2012-05-26, Chris Jones wrote: [..] so is it the BufNewFile or the BufRead event that causes the filetype to be set? Between the two, I would tend to think it is BufNewFile, not because the file is written to disk, but rather

Re: how to match all Chinese chars?

2012-05-29 Thread Chris Jones
On Mon, May 28, 2012 at 08:58:58AM EDT, Christian Brabandt wrote: Hi Chris! [..] I think, you can script this. Something like this: fu! sidCollation(start, end, match) {{{ let start = '0x'. a:start let end = '0x'. a:end let patt = '\%(' if (end - start) 256

Re: how to match all Chinese chars?

2012-05-30 Thread Chris Jones
On Mon, May 28, 2012 at 05:55:27PM EDT, Tony Mechelynck wrote: [..] However, there is also a limitation in Vim, namely, a collection can only match (IIRC) at most 257 different individual characters at the same point. 4E00..9FFF alone is already much more than that. The limit is that a range

Re: XIM Input Method for Motif Gvim

2012-06-02 Thread Chris Jones
On Sat, Jun 02, 2012 at 08:08:04AM EDT, Christian Brabandt wrote: I have recently been working on the Motif GUI and noticed, that my gvim always show XIM INSERT, when in insert mode. I keep reading :h xim and mbyte-XIM, but I seem to be missing something. So my questions are: 1) Why is

Re: XIM Input Method for Motif Gvim

2012-06-02 Thread Chris Jones
On Sat, Jun 02, 2012 at 03:01:12PM EDT, Christian Brabandt wrote: Hi Chris! On Sa, 02 Jun 2012, Chris Jones wrote: On Sat, Jun 02, 2012 at 08:08:04AM EDT, Christian Brabandt wrote: I have recently been working on the Motif GUI and noticed, that my gvim always show XIM INSERT, when

Re: XIM Input Method for Motif Gvim

2012-06-02 Thread Chris Jones
On Sat, Jun 02, 2012 at 03:01:12PM EDT, Christian Brabandt wrote: [..] 1) Why is XIM enabled by default? 2) How do I use it? 3) And most importantly: How do I turn if off? Regarding (3) above, I forgot to mention that there is an imdisable/noimdisable boolean option.

Re: max colors in text based terminals

2012-06-03 Thread Chris Jones
On Sun, Jun 03, 2012 at 08:38:31AM EDT, sinbad wrote: my question is are there any terminal implementations that support more than 256 colors in text consoles not in gui. Konsole and derivatives support a 24-bit color palette, i.e. they let you display 16,777,216 colors concurrently. This

Re: max colors in text based terminals

2012-06-05 Thread Chris Jones
On Mon, Jun 04, 2012 at 08:35:18PM EDT, Thomas Dickey wrote: On Jun 4, 4:00 pm, Chris Jones cjns1...@gmail.com wrote: All the same, I'd be curious to know what the Konsole developers had in mind when they implemented 16M colors support . konsole implements the xterm 256-color controls

Re: max colors in text based terminals

2012-06-06 Thread Chris Jones
On Tue, Jun 05, 2012 at 05:50:45AM EDT, Thomas Dickey wrote: On Jun 5, 3:00 am, Chris Jones cjns1...@gmail.com wrote: [..] xterm looks for 5 (38;5), that's documented and well-known. My understanding is that the 38;5 and the 38;2 have different goals: From Konsole's README.moreColors

Re: What does the second example for map() mean?

2012-06-26 Thread Chris Jones
On Tue, Jun 26, 2012 at 09:56:48PM EDT, Benjamin R. Haskell wrote: There's an example in the help for map() that reads: :let tlist = map(copy(mylist), ' . \t') What is that ampersand doing there? Is the example incomplete? Obsolete? Should it be v:val instead? Yes. Looks like someone

Re: How to write a text line as binary/Hex with a filename by means of Vim command line(s)?

2012-07-04 Thread Chris Jones
On Wed, Jul 04, 2012 at 12:18:48AM EDT, William Fugh wrote: -Vim 7.3 + Vista(SP2) If there are 8 chars in one line like this: 52494646 Question: using Vim command line(s), how to write a binary file, and make it 'RIFF' (4 char, not '52494646') in a viewer of TXT? Just to illustrate: let l1

Re: How to remove empty lines except of one

2012-07-04 Thread Chris Jones
On Wed, Jul 04, 2012 at 10:52:47PM EDT, Tim Chase wrote: For some reason (legacy?), Vim uses \n on the left side and \r on the right side, Ah.. good one.. baffled me for ages and always had something more urgent to do.. never got a chance or remembered to look into it.. and kicked myself later

Re: How to remove empty lines except of one

2012-07-09 Thread Chris Jones
On Thu, Jul 05, 2012 at 06:54:44AM EDT, Tim Chase wrote: Hello Tim, not replying to anybody in particular.. It might be slightly more efficient, as replacing the 2 case with \r\r is a NOOP. As for blank-ish lines (containing just whitespace), it might become something like

Re: vim: session of sessions

2012-07-11 Thread Chris Jones
On Wed, Jul 11, 2012 at 03:25:58PM EDT, ping wrote: Maybe OT, but anyway.. [..] * switching beyond 9 windows is painful in screen, if you ever use it. Not sure what you mean by painful, but GNU/screen lets you define extra shortcuts to access windows directly via the ‘bind’ command: bind ')'

<    1   2   3   >