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: 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: 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-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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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 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 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-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-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: 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: 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: 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: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Sat, Jan 21, 2012 at 09:37:14PM EST, John Little wrote: On Jan 18, 3:04 pm, Chris Jones cjns1...@gmail.com wrote: At the bash prompt, I often use the [Alt+.] keyboard action to retrieve the argument of a prior command from the bash history list... That key combination works in bash's

Re: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Sat, Jan 21, 2012 at 09:37:14PM EST, John Little wrote: On Jan 18, 3:04 pm, Chris Jones cjns1...@gmail.com wrote: At the bash prompt, I often use the [Alt+.] keyboard action to retrieve the argument of a prior command from the bash history list... That key combination works in bash's

Re: Retrieve the argument of a prior Ex mode command

2012-01-23 Thread Chris Jones
On Thu, Jan 19, 2012 at 10:37:46PM EST, Tim Chase wrote: On 01/19/12 21:24, Chris Jones wrote: I eventually used a mix of Paul and Tim's suggestions and came up with this: | | Emulate bash/readline's yank-last-arg

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Chris Jones
On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: [..] = function! PreviousTail() let item = histget(getcmdtype(), -1) let patterns = [ \ '^\%([GvV]\|g\%[lobal]\|s\%[ubstitute]\)\(\W\)\%(\1\@!.\|\\\1\)\1\(.*\)',

Re: Retrieve the argument of a prior Ex mode command (back on-list)

2012-01-23 Thread Chris Jones
On Mon, Jan 23, 2012 at 04:24:52PM EST, Tim Chase wrote: On 01/23/12 14:57, Chris Jones wrote: On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: = let item = histget(getcmdtype(), -1

Re: How does S-CR work in gvim?

2012-01-21 Thread Chris Jones
On Fri, Jan 20, 2012 at 06:31:45PM EST, Gary Johnson wrote: Someone just posted a question to superuser What is ‘superuser’? in which they mentioned discovering that Shift-Enter is the same as Ctrl-F. So why bother? I experimented a little and discovered that that's true, but only in

Re: Retrieve the argument of a prior Ex mode command

2012-01-20 Thread Chris Jones
On Fri, Jan 20, 2012 at 02:20:37AM EST, Paul Isambert wrote: Chris Jones cjns1...@gmail.com a écrit: [..] That's because you forgot to retrieve the command typed so far. | let l:head = matchstr(getcmdline(), '^\S*') | let l:cmdl = | ... | return l:head . . l:cmdl Clever

Re: Retrieve the argument of a prior Ex mode command

2012-01-19 Thread Chris Jones
Hello Paul, Sorry for delay.. I didn't have the time to look into this further. On Wed, Jan 18, 2012 at 03:12:18AM EST, Paul Isambert wrote: Chris Jones cjns1...@gmail.com a écrit: At the bash prompt, I often use the [Alt+.] keyboard action to retrieve the argument of a prior command from

Re: Retrieve the argument of a prior Ex mode command

2012-01-19 Thread Chris Jones
On Wed, Jan 18, 2012 at 08:42:51PM EST, Tim Chase wrote: [..] I think the biggest impediment to making a simple mapping to do this would be that in bash, commands are almost always of the form command [optional args]. In Vim, you have a variety of patterns, so extracting the args portion or

Re: Retrieve the argument of a prior Ex mode command

2012-01-18 Thread Chris Jones
On Wed, Jan 18, 2012 at 12:34:03PM EST, Andy Wokula wrote: Am 18.01.2012 03:04, schrieb Chris Jones: At the bash prompt, I often use the [Alt+.]¹ keyboard action to retrieve the argument of a prior command from the bash history list. [..] I think you just want to press Up in the cmdline

Re: What did I do?

2012-01-17 Thread Chris Jones
On Mon, Jan 16, 2012 at 10:04:12PM EST, Vlad Irnov wrote: [..] It's easy to make such mistake if selected text in Visual mode does not stand out and looks similar to Folded lines. Then you may not notice that you are in Visual mode. [..] :set showmode :h 'showmode' ? CJ -- You received

Retrieve the argument of a prior Ex mode command

2012-01-17 Thread Chris Jones
At the bash prompt, I often use the [Alt+.]¹ keyboard action to retrieve the argument of a prior command from the bash history list. To illustrate: | $ mkdir -p long/directory/name/I/would/rather/not/type/again | $ cd [Alt+.] Bash expands the [Alt+.] giving me: | $ cd

Re: ignore new line in search

2012-01-15 Thread Chris Jones
On Sun, Jan 15, 2012 at 10:39:42AM EST, Pau wrote: thanks a lot... but I forgot to mention that one main problem is that I cannot know in advance where the new line is... isn't there a faster way of telling vim to ingore new lines? thanks a lot! [..] Per your initial post, I understood

Re: Vim finishing.

2012-01-13 Thread Chris Jones
On Fri, Jan 13, 2012 at 03:52:50AM EST, Paul Isambert wrote: Hello there, I usually close Vim with Alt+F4 instead of :quit and associates. The problem is, there sometimes is quite some work in the VimLeave autocommand, and a dialog pops up saying that Vim is busy and do I want to close it,

Re: Global change using vim and xxd

2011-12-14 Thread Chris Jones
On Wed, Dec 14, 2011 at 11:27:39AM EST, steve wrote: Im not new to vim, but I realize my huge ignorance when I read that you can edit binary files with vim via xxd. Wow, amazing. However On my first attempt to use it Im kind of confused and running into some problems. I think probably

Re: Can I make :vert the default?

2011-12-14 Thread Chris Jones
On Mon, Dec 12, 2011 at 06:35:56PM EST, Benjamin R. Haskell wrote: On Mon, 12 Dec 2011, Albin Olsson wrote: Hi Is there a setting so that I don't have to prepend my window creating commands with 'vert' every time? In the age of wide screen monitors vertical splitting is a lot nicer than

Re: Global change using vim and xxd

2011-12-14 Thread Chris Jones
On Wed, Dec 14, 2011 at 01:37:03PM EST, Chris Jones wrote: allows you to .cab files them in order to make your changes? proofread: should read: ‘allows you to uncompress .cab files ...’ and compress them back after the fact. CJ -- You received this message from the vim_use maillist. Do

Re: Global change using vim and xxd

2011-12-14 Thread Chris Jones
On Wed, Dec 14, 2011 at 03:20:14PM EST, steve wrote: ps maybe the /winnt/Windows/g is the way to go. I just thought doing it in binary was better. I think im fooling myself. I think it makes better sense unzipping the file, making the changes with plain Vim, and then re-zipping it. A quick

Re: Can I make :vert the default?

2011-12-12 Thread Chris Jones
On Mon, Dec 12, 2011 at 04:11:19PM EST, Albin Olsson wrote: Hi Is there a setting so that I don't have to prepend my window creating commands with 'vert' every time? Not aware of one. In the age of wide screen monitors vertical splitting is a lot nicer than horizontal. Couldn't agree

Re: Can I make :vert the default?

2011-12-12 Thread Chris Jones
On Mon, Dec 12, 2011 at 06:16:17PM EST, Chris Jones wrote: [..] Since I only use horizontal splits once I have already 2-3 vertical planes (on rare occasions) what I personally did was to create abbreviations in my vimrc, such as, [..] Planes? Since we're thinking about moving, my wife

Re: What does ^S work? - stop output in terminals

2011-12-04 Thread Chris Jones
On Sun, Dec 04, 2011 at 05:02:39AM EST, Sven Guckes wrote: [..] you can disable start+stop within the terminal with the stty command: stty start '' stty stop '' stty should then show: start = undef; stop = undef; then again.. you might want to use this feature now

Re: undo lust substitution made with :%s/foo/bar/gc

2011-11-25 Thread Chris Jones
On Fri, Nov 25, 2011 at 04:54:13PM EST, denis perelyubskiy wrote: Hello, There is NO substitute for LUST. Beware of imitations. CJ -- 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

Re: search and replace (not what was searched for)

2011-11-07 Thread Chris Jones
On Mon, Nov 07, 2011 at 02:07:55PM EST, Totte Karlsson wrote: Hi, I often wants to search for lines that have a certain characteristic, and change it. However, I may not want to change what I am searching for. For example. Say I have lines looking like this [1 [2 [3 and want to add

Re: Mapping shortcuts

2011-10-31 Thread Chris Jones
On Mon, Oct 31, 2011 at 01:06:45PM EDT, George Papanikolaou wrote: I know this is simple. but I can't figure it out by Googling... so. Nothing wrong with googling, but there's no guarantee whoever posted his favorite trick fully understands the problem and that whatever worked in his case will

Re: Mapping shortcuts

2011-10-31 Thread Chris Jones
On Mon, Oct 31, 2011 at 04:15:00PM EDT, Chris Jones wrote: [..] In this particular case, you will not find a ‘mappings’ section (this is why you often need to have at least skimmed through the entire manual beforehand to find what you are looking for), Actually, I take that back

Re: drawing and column editing in vim

2011-10-21 Thread Chris Jones
On Fri, Oct 21, 2011 at 09:41:39AM EDT, Eric Smith wrote: I am using DrawIt to make things like Organograms. It becomes messy when removing or inserting an entity. Then the parts of the lines to the right either become pushed to the right or collapse to the left. This of course would

Re: install vim 7.0.109 on Ubuntu 10.04

2011-10-16 Thread Chris Jones
On Sun, Oct 16, 2011 at 01:31:47AM EDT, Tony Mechelynck wrote: On 15/10/11 23:53, Frederico Cadete wrote: I had a similar experience when I recompiled Vim, coming from using vim as packaged by Ubuntu. The differences in behaviour were annoying, but they were not because of the compiling

Re: colorscheme for vimdiff

2011-07-05 Thread Chris Jones
On Tue, Jul 05, 2011 at 02:22:01AM EDT, Anonymous bin Ich wrote: Hi! Is there a way to load different colorscheme when using vimdiff (and different when using vim)? troll Just download any colorscheme. Most authors do not QA against vimdiff, and the result usually looks quite ‘different’…

Re: Mystery vim7 versus vim6.4 - same term, different results

2011-03-07 Thread Chris Jones
On Mon, Mar 07, 2011 at 03:09:32PM EST, howard Schwartz wrote: Ben Schmidt wrote: I wonder if both are looking in the same place for terminfo stuff, and for terminfo in the same format. I set TERMINFO to /etc/terminfo. I do not see how a different version of vim would [..] look in

Re: using the help system in split screen mode

2011-03-06 Thread Chris Jones
On Mon, Feb 28, 2011 at 08:51:03PM EST, Ben Schmidt wrote: [..] Sorry for delay.. had more urgent issues to address.. The suggested pipe ‘setl bt= | help’ does indeed override Vim's miserly behavior relative to help windows.. Why? Because Vim identifies help windows by the buftype, so if

Re: using the help system in split screen mode

2011-03-06 Thread Chris Jones
On Sun, Mar 06, 2011 at 12:48:09PM EST, ZyX wrote: Reply to message «Re: using the help system in split screen mode», sent 20:03:40 06 March 2011, Sunday by Chris Jones: setl bt= | execute vert help a:s | execute ':redraw!' .. setl bt= | execute help a:s | execute ':redraw

Re: using the help system in split screen mode

2011-02-28 Thread Chris Jones
On Sun, Feb 27, 2011 at 06:01:23PM EST, Ben Schmidt wrote: When I am editing a file rather than displaying a help subject, I issue a ‘:vhl topic’ command (with vhl mapped to ‘:vertical help’, and Vim vertically splits the screen and displays the topic's help file in a separate window, so that

Re: using the help system in split screen mode

2011-02-28 Thread Chris Jones
On Mon, Feb 28, 2011 at 03:53:27PM EST, ZyX wrote: How could I figure out the number of help windows in the current tab? let helpcount=len(filter(range(1, winnr('$')), 'getbufvar(winbufnr(v:val), ft)==#help')) Works out of the box. :-) You may want to change ft (shortcut to filetype)

using the help system in split screen mode

2011-02-27 Thread Chris Jones
I'm having a bit of trouble displaying two help windows side by side. Here'as a typical scenario: I am reading the help file for a given topic such as ‘:help folding’ and I want to split the screen vertically so that I can for instance take a look at relevant Vim options - foldclose, foldcolumn..

Re: Using no hard line breaks

2011-02-24 Thread Chris Jones
On Mon, Feb 21, 2011 at 11:55:39AM EST, Benjamin R. Haskell wrote: On Mon, 21 Feb 2011, Chris Jones wrote: 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

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: 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: 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: 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: 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: 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

<    1   2   3   >