RE: write a very basic syntax file

2015-11-11 Thread John Beckett
Jose Caballero wrote: > Now I only need to figure out how to highlight comments. I'm not sure if that point is covered, but try: http://vim.wikia.com/wiki/Creating_your_own_syntax_files John -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

RE: conflagration between expantab and softtabstop

2015-11-01 Thread John Beckett
toothpik wrote: > I find this unexpected -- history dictates when I am having unexpected > results it is because I don't fully understand what I am doing, so please, > ppl, educate me -- why are spaces inserted with noexpandtab set? The info here might help:

RE: vimdiff options by file type?

2015-09-30 Thread John Beckett
David Woodfall wrote: > Sorry for going off topic a little, but is the order that > .vimrc, .vim/plugin/* etc. are read listed somewhere? For more detail than can be digested: :help startup John -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

RE: visincr and mswin not compatible

2015-09-24 Thread John Beckett
jordi_frei wrote: > The thing is that, I really need to use cntrl-C, cntrl-V Do not source mwwin.vim and do not use 'behave mswin'. Instead, put the following in your _vimrc. " Select all, cut, copy, paste. nnoremap ggVG vnoremap "+x vnoremap "+y nnoremap "+gP cnoremap + exe 'inoremap

RE: displaying ^M carriage returns in a file, like the 'old' vi used to do

2015-08-18 Thread John Beckett
So, the question has been raised, and I'm posting it to this group. Is there a simple method, in vim, of displaying ^M carriage return characters as a precaution or test when their presence in a file can be detrimental, if not catastrophic? There is some good information at:

RE: Diff mode via Tabs

2015-06-18 Thread John Beckett
David Fishburn wrote: I use gVim for diffing from my source control system using: gvim.exe -O -d file1.txt file2.txt I avoid problems by working in Vim. I use some external tool to generate a list of files I want to diff, then paste it into a temporary buffer in Vim. Either the external tool

RE: reverting keymaps for location-list buffer

2015-05-02 Thread John Beckett
Stephan Sahm wrote: I remapped CR and I really like my remapping. There are however some problems For quickfix buffers I found this: autocmd BufReadPost quickfix nnoremap CR CR is there something similar for location-list buffers? To make Enter work normally in a quickfix window, rather

RE: BufReadPost event for location list

2015-05-02 Thread John Beckett
Stephan Sahm wrote: I want to do the following for location-list buffers: autocmd BufReadPost quickfix nnoremap CR CR Please don't ask essentially the same question twice. See my answer to the other question. John -- -- You received this message from the vim_use maillist. Do not

RE: reverting keymaps for location-list buffer

2015-05-02 Thread John Beckett
Stephan Sahm wrote: is the vimfiles folder maybe wrong? must it be somewhere under .vim/ maybe? Sorry, my confusion. For a Unix-based system, create file (you may have to create the directory first): ~/.vim/ftplugin/qf.vim containing the single line: nnoremap buffer CR CR The above should

RE: Cannot log into my vim account.

2015-04-24 Thread John Beckett
I cannot log into my vim account (http://www.vim.org/account/profile.php?user_id=34258) and there is no way to reset the password. It says to ask Bram to reset my password. You can email me as Bram might be a bit busy. John -- -- You received this message from the vim_use maillist. Do not

RE: gvim not showing unicode Devanagari - Hindi text

2015-03-03 Thread John Beckett
V S Rawat wrote: My gvim, vim 7.4 on w8 is not showing unicode Devanagari - Hindi text. What is it showing? Vim requires that you have selected a suitable font which has to be mono-spaced. This shows that CJK can be handled with the right font so presumably some font would handle what you

RE: How can I better use Vim help

2015-02-03 Thread John Beckett
Sayth Renshaw wrote: How is the best way in vim to use the help system when I am unsure exactly what term or phrase to look for? The tip has some useful info: http://vim.wikia.com/wiki/Learn_to_use_help Your question about vertical splits is very general and an example of what you mean might

RE: why function! instead of just function

2015-01-20 Thread John Beckett
Bao Niu wrote: I am learning Vimscript and I wonder if there is any difference between writing function! vs. function? Expanding on Tim's reply, suppose you have file h.vim which contains: function! Hello() echoerr 'Hello' endfunction In Vim, assuming the directory shown by :pwd is

RE: Should vimgrep always use / to enclose your search patterns?

2015-01-20 Thread John Beckett
Bao Niu wrote: in Vim is enclosing your search pattern with / recommended? The documentation says it is optional. If it's optional then why not just forget it? I would be too nervous to follow Tim's advice, but it seems to work. Are you aware of the general rule that applies to commands like

RE: converting format

2015-01-18 Thread John Beckett
John Culleton wrote: I have a customer's file in dos format. Is there a command to convert it to *nix format? The advice you have received so far is not the whole story. See: http://vim.wikia.com/wiki/File_format John -- -- You received this message from the vim_use maillist. Do not

RE: Site error

2014-12-30 Thread John Beckett
Gabor Urban wrote: I wanted to check something among the scripts, and encountered the following error: An error has been encountered in accessing this page. 1. Server: www.vim.org 2. URL path: /scripts/script_search_results.php The site is hosted on sourceforge.org and they have problems

RE: how to display different color in vi

2014-12-24 Thread John Beckett
skyworld wrote: normally I use gvim instead of vi. My question is for gvim is: can i use different color to show diffent word? For example, I would like to highlight word red with red and yellow with color yellow in one document. Is this possible? The tip for that is:

RE: Expanding a variable

2014-12-02 Thread John Beckett
David Fishburn wrote: Assume the net result is I have this: let test_newline = '\n' Is this what you mean? :let x = '\n' :let x = substitute(x, '\\n', '\n', 'g') :echo char2nr(x) The first line puts a string of two characters (a backslash and n) into x. The second line changes

RE: vim to format/prettyprint assembly lang source - Best way?

2014-11-24 Thread John Beckett
russurquhart1 wrote: I have some assembly language source, in an older document, that when it was ported to our current platform, the code samples got messed up. I am now faced with the task of going through and reformatting the assembly language examples. I'm using vim, to format the code

RE: How to make a local option global?

2014-09-28 Thread John Beckett
Cesar Romani wrote: How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? As Ben mentioned, settings like that should be set via filetype. If you have several open files

RE: vim.org fails to redirect to www.vim.org for Chrome users

2014-08-20 Thread John Beckett
Andrew Pennebaker wrote: When I enter vim.org into the address bar in Firefox, it successfully redirects to www.vim.org. But when I enter vim.org in Chrome, no redirect happens. That has been discussed a couple of times in the past. The person who provides the DNS for Vim does so in an

RE: vim function for printing text in to a buffer.

2014-08-02 Thread John Beckett
sinbad wrote: i'm trying to write a vim function to generate the following output. first of all why is it so difficult to ptint text into the buffer, i thought vim will have a simple printf() command which can dump the text into the buffer, but after googling a lot i found that append() is

RE: Question about setting default syntax highlighter

2014-07-17 Thread John Beckett
Carfield Yim wrote: Hi, I need to use vim to edit config files for Visual Studio project a lot, all the config file are XML but edit with *.conf. How can I config vim to use XML syntax highlighter for all *.conf file? See the example at http://vim.wikia.com/wiki/Filetype.vim Sorry it's a bit

RE: how to hidden the ^M without change the file

2014-07-13 Thread John Beckett
fengidri wrote: when the file has '\r\n' and '\n', I donot want see the ^M, but I donot want change the file. I recommend reading the details: http://vim.wikia.com/wiki/File_format John -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the

RE: Clean string returned by windows console cmd

2014-07-09 Thread John Beckett
Ni Va wrote: Your command is pretty good but can I affect a variable instead of output command under the cursor into the buffer You have to do some work. :new :r !wmic logicaldisk get deviceid :1,2d :%s/\s\+$//e :let drives = getline(1,'$') :echo drives Select the above text and yank it (type

RE: Clean string returned by windows console cmd

2014-07-08 Thread John Beckett
Ni Va wrote: This is obtained by launching this command : echo system(wmic logicaldisk get deviceid) The problem is that the output from wmic is Unicode, and system is dumping the bytes. I don't know how to avoid that, but the following reads the plain text if you have the correct settings: :r

RE: Vim trick to make all the same numbers to replace by the numbera in ascending order ?

2014-07-02 Thread John Beckett
Arup Rakshit wrote: replace by the numbera in ascending order ? You have good answers, but you might want to see the tip: http://vim.wikia.com/wiki/Making_a_list_of_numbers John -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the

RE: vim 7.4: pasting is very slow on HP UX machine.

2014-06-30 Thread John Beckett
Sarath Addanki wrote: I'm using right click to paste into Vim via PuTTY. Has anyone pointed out what is happening? On paste (right click), PuTTY sends each character from the clipboard over the SSH session to the server where Vim is running, as if you had typed the character. I do not know the

RE: how can I mark the indentation with (dots) in Vim ?

2014-06-28 Thread John Beckett
Arup Rakshit wrote: You can see, that, while he is typing code, indentations are showing with dots. 2 dots for 2 space indentations, 4 dots for 4 spaces etc.. How the same can be done in Vim ? Search for listchars at http://vim.wikia.com/wiki/Highlight_unwanted_spaces John -- -- You

RE: How to join vim maillist v...@vim.org

2014-06-19 Thread John Beckett
Qin Fu Qi wrote: I want to join the mail list v...@vim.org. Welcome, you are now a member and your message and my reply has been sent to the mailing list. The method of joining is tricky. I don't think there is any feedback from Google Groups as to what will happen next. In order to avoid spam,

RE: How to join the maillist v...@vim.org? Who can

2014-06-19 Thread John Beckett
Qin Fu Qi wrote: I would be insanly happy if the email could be seen by you. I am a big fun of vim and I am looking forward to joining v...@vim.org. I have replied to the other message. I went to click remove to remove this near-duplicate from the list of messages waiting to be moderated, but

RE: How to join vim maillist v...@vim.org

2014-06-19 Thread John Beckett
Qin Fu Qi wrote: [personal info] Another confusing issue is that clicking Reply replies TO THE GROUP (most mail clients will show the email address of the group in the To field). Unfortunately, your message has been sent to well over a thousand people, and will be archived on various websites.

RE: How to start vimdiff?

2014-06-07 Thread John Beckett
wolfv wrote: How to start vimdiff? Using :help vimdiff shows that vimdiff is equivalent to vim -d. Using gvim (which I recommend), you could start it at command prompt: gvim -d file1 file2 Or, if you are already editing file2, you would enter: :diffs file1 It is handy to do the last

RE: relative marks?

2014-05-08 Thread John Beckett
Chris Lott wrote: Is there a way to set a mark (or similar) that is relative to a word? For instance, given the following text: Foo bar. Baz. And more stuff. I'd like to be able to quickly jump to the space after bar. even if the text has been changed to something like: You could do a

RE: Problem with latex template

2014-04-15 Thread John Beckett
Alain Bertrand wrote: The mailing list server seems quite slow to publish new threads. It's fast. The problem comes from the fact that the first post of each new member has to be moderated (approved by a manager). Sometimes that's fast, but it may take several hours. Also, sometimes Google

RE: Another SRT questions

2014-04-14 Thread John Beckett
Jeri Raye wrote: For example: I want to tell you this. and also this. How to change this into: I want to tell you this. And also this. :%s/\.\_s*\zs\l/\u/gc Perhaps sentences end with other characters, so you might try: :%s/[.!?]\_s*\zs\l/\u/gc John -- -- You received this message

RE: Select entire line based on tag, then export only those lines of text

2014-04-13 Thread John Beckett
Charles Campbell provided a good answer, but for a 1.5GB file you must have a lot of RAM, and you must disable some features before starting. First, use your operating system to copy yourtabdelimitedfile to ambulance-only-file. Then do the following: vim (or gvim) :set eventignore=FileType

RE: local hlsearch

2014-04-01 Thread John Beckett
meino wrote: I often use a search'n'replace on an area, which is limited by a previously selected visual block. Additional hlsearch is on by default. After the searech'n'replace has ended, the found places are marked all over the whole text. This is often irritating to me. Is there a way to

RE: how can I configure word highlighting in VIM ?

2014-03-29 Thread John Beckett
Arup Rakshit wrote: Subject: how can I configure word highlighting in VIM ? If you mean by searching, I suggest starting here: http://vim.wikia.com/wiki/Searching See what it says (you know about *?), and scan down to the Highlighting search matches link near the bottom. There are also some

RE: ^@

2014-03-22 Thread John Beckett
Ni Va wrote: I am launching windows cmd from GVim7.4. let cmd = 'myexecutablepath OneArg' exe !.cmd To guard against strange characters, the command must be escaped: let cmd = 'myexecutablepath OneArg' exe !.shellescape(cmd, 1) John -- -- You received this message from the vim_use

RE: marry

2014-03-17 Thread John Beckett
caughe...@comcast.net wrote: [some random URL] I do not know what the above is, and I would not recommend clicking links to random websites, but I am replying to let others know that I have adjusted this user's settings so that future messages are moderated (they will not appear unless approved

RE: matchstr() ^ and $ wrong for multi-line text?

2014-02-09 Thread John Beckett
David Barnett wrote: I noticed that matchstr() seems to always interpret ^ as start-of-string and $ as end-of-string, even when the string is multiple lines. :help pattern says they should be start-of-line and end-of-line, respectively. For example :echo matchstr(foo\nbar, '^foo$')

RE: Vim Scripts Spam

2014-02-06 Thread John Beckett
ZyX wrote: Thanks, I deleted them (and the user) about six hours ago. Wondering why these scripts return 200 OK though page contents say they are not found. That is probably reasonable as the user requests script 4854, and vim.org responds with: script: I couldn't find the script you

RE: Vim Scripts Spam

2014-02-05 Thread John Beckett
Paul wrote: Subject: Vim Scripts Spam http://www.vim.org/scripts/script.php?script_id=4854 http://www.vim.org/scripts/script.php?script_id=4855 Thanks, I deleted them (and the user) about six hours ago. There has been remarkably little spam, the last I deleted was on 9 January. John -- --

RE: XXD with Vim

2014-02-04 Thread John Beckett
Ven Tadipatri wrote: It's nice that you can go into hex mode with Vim through the use of XXD, but it's really hard trying to find out what hex codes correspond to a given character. You know about ga and g8? In normal mode, put the cursor on a character of interest then type ga or type g8

RE: Vim Weekly

2014-01-29 Thread John Beckett
I'm adding a little to what Ben wrote. It is a shame about adverts at vim.wikia.com (although I never see them), but as Ben noted, the ads pay for a good server and a fast internet connection, and support. Also, there is a practically guaranteed continuity to the site because even if Ben and I

RE: Do developers use vim exclusively or alternate with an IDE?

2014-01-13 Thread John Beckett
Marc Weber wrote: Nobody prevents you from remapping ctrl-v to do what you want. The block selection is not lost, you can still start selection by v then switch to block by ctrl-v - I just assume that you use block selections less often than pasting .. You can also use Ctrl-Q to start block

RE: Macros in Vim

2013-12-26 Thread John Beckett
I put an example at http://vim.wikia.com/wiki/Macros 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

RE: meaning of c-_b

2013-11-22 Thread John Beckett
FlashBurn wrote: I'm using a tcomment plugin and need to comment out a block of code. There is a command for it abbreviated in the following way c-_b I'm interpreting it as holding the Ctrl button, press underscore button, and then b. But it doesn't work for me. What am I missing. Hold

RE: Advanced vimrc? question

2013-09-10 Thread John Beckett
Gabor Urban wrote: I use different indention depth with different types of sources. It is rather time consuming to set it manually. Is there a possibility to defined these values to file extensions? See Different settings for different file types:

RE: Where does S-Insert mapping come from on Windows?

2013-09-09 Thread John Beckett
Christian Brabandt wrote: And where is this mapping actually defined? And why only on Windows? That is hardcoded in the Vim source. It can't be true! Yet... gvim -u NONE -i NONE :map :imap gives v C-X *d v C-Del *d v S-Del *d v C-Insert

RE: regex variable

2013-07-19 Thread John Beckett
shawn wilson wrote: libpcre would be fine, yes. Or the library that Ruby uses - either way. ... I guess this should be a feature request then? Vim is strongly attached to compatibility, and is immensely complex. I would not bother requesting a new regex syntax because it won't happen. John

RE: regex variable

2013-07-18 Thread John Beckett
shawn wilson wrote: This is probably a feature request but I really do hate the regex engine and would love to swap it out. Is there / can there be a compile time option to use a different engine? No (I assume you want different regex syntax, probably PCRE). Tony's post is talking about a new

RE: Case insensitive search

2013-07-09 Thread John Beckett
Patterson, Joel wrote: I'll try the various suggestions. You got a lot of good suggestions, but the best thing would be to examine our tip: http://vim.wikia.com/wiki/Searching BTW you really should find a way to NOT post long signatures and disclaimers to a mailing list. John -- -- You

RE: mappings time out bug?

2013-06-19 Thread John Beckett
Has this issue been sorted out? Let's not work out who-said- what. The OP was: nnoremap gp `[v`] since 'g' is not mapped, it shouldn't timeout no matter what the timeout length is right? As expected, the built in mapping for gp, gv, etc. both work no matter how long one waits between the g

RE: Opening large files

2013-05-17 Thread John Beckett
Rajesh Kannan wrote: - Vim Online Error script:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) - I just noticed that problem myself, and came here to see if there was a discussion. I will investigate the situation in an hour, if I get time,

RE: Opening large files

2013-05-17 Thread John Beckett
- Vim Online Error script:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) - I just noticed that problem myself, and came here to see if there was a discussion. I will investigate the situation in an hour, if I get time, otherwise not

RE: Its about you - what about a github based wiki ? - demo ready

2013-05-06 Thread John Beckett
Christian Brabandt wrote: Well, there is wikipediafs¹, but this project seems dead and I couldn't convince it to either mount the wikipedia.org nor vim.wikia. So I would say, it doesn't seem to be working currently. ¹) http://wikipediafs.sourceforge.net/ I played with that a few years ago. I

RE: \ze position

2013-03-22 Thread John Beckett
Axel Bender wrote: Sorry, I was too unspecific. I want to use the \z[es] from the last match() to prevent searching for the same - complicated - expression two times (once with match() the second time with matchend()...). I forget the details, but I sweated blood working out how to avoid

RE: windows x64 binaries

2013-02-19 Thread John Beckett
Hugo Ahlenius wrote: Is there some good spot where one can get updated Windows 64-bit binaries? I haven't tried it, but there is another site mentioned at: http://vim.wikia.com/wiki/Download John -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply

RE: mapping a substitute for the Esc key?

2013-02-18 Thread John Beckett
Steve Litt wrote: Question for all of you: What's your favorite substitute for Esc, whether a keystroke, key combination, or key sequence? Some ideas are at: http://vim.wikia.com/wiki/Avoid_the_escape_key I use the bizarre method on that page involving Enter (search for ToggleEnterMapping).

RE: Copying text from wikipedia yields: lots of ???

2013-02-18 Thread John Beckett
Daniel M. Eldridge wrote: Pasting text from a wikipedia articles leaves me with lots of I haven't looked at your images, but the problem is very likely to be due to use of an incorrect encoding. The first two lines in your vimrc should be: set nocompatible set encoding=utf-8 Saying

RE: Copying text from wikipedia yields: lots of ???

2013-02-18 Thread John Beckett
Daniel M. Eldridge wrote: Humm...I was missing the encoding=utf-8 line but now--so now problem has not been solved. Now, instead of marks I get solid blocks--the size of a character. You need a font which supports the characters you are looking at. DejaVu Sans Mono is an example of a

RE: Our posts are being flagged as spam.

2013-02-16 Thread John Beckett
Erik Christiansen wrote: While looking in the spam folder, I found: ... But 99% of posts are not similarly mis-flagged I have previously noticed that Google sometimes flags good mail as spam when large quotes from an earlier message have not been removed. I have often seen that (although not

RE: Best practice on cleaning vimrc files

2013-02-12 Thread John Beckett
Malusi Gcakasi wrote: Secondly, what are the best practices for how a vimrc setup should be structured. Or are the details of this up to the individual user? It would be good if that were documented somewhere in a simple way. The following has some ideas.

RE: mapping a function with key

2013-02-08 Thread John Beckett
rudrab wrote: I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf Here is the complete code. In normal mode,

RE: Visual Mode Selection in Windows 7

2013-02-08 Thread John Beckett
Roy Fulbright wrote: I tried hjkl, but they lose the selection the same as the arrow keys. Please delete excessive text when replying. Don't quote a chain of previous messages, and make sure to delete email addresses. David Fishburn mentioned the two alternatives: (1) Press v then move cursor

RE: Script to send selected text from Vim to R in Ubuntu

2013-02-05 Thread John Beckett
Josef Montag wrote: I have started using Ubuntu and try to figure out ways and tools for a simple script. I use Vim to write code for R and need a script that takes a selection in Vim and sends it to R and have this script attached to a key combination. I'm not sure whether this could all be

RE: Yank part of line?

2013-01-12 Thread John Beckett
stosss wrote: This appears to be the only thing in help that seems to imply you can yank part of a line. But I can't figure out how to make that work. Am I wrong about this? Is the only way to yank part of a line in visual mode only or search and replace if one gets technical? (text from

RE: vim_use in evolution(gnome)

2013-01-09 Thread John Beckett
Mats Bertil Tegner wrote: I generally read newsgroups in evolution. The server I use is eternal-september.org, that claims to provides free read and write access to all text newsgroups.. I can read others in google groups like in comp.lang.*. But vim_use is not there. Can anyone managed to

RE: Command history

2013-01-06 Thread John Beckett
Laskhara Singh wrote: How do I recall the keystrokes history? In Vim, a command history is a log of the Ex commands entered (those commands that with :, like :tabe or :help :tabe. As stated, you can see that history by typing q: See http://vim.wikia.com/wiki/Using_command-line_history I

RE: spam

2012-12-27 Thread John Beckett
The message (no subject) that I am replying to consisted of a single line which was a link to some website. It was almost certainly spam, and possibly malware, and almost certainly was spoofed (that is, the sender was NOT Tony). I have deleted the message from the Google Groups archive (but it

RE: Spam from ad...@139.com

2012-12-20 Thread John Beckett
I have no idea why, but it appears that the spam from ad...@139.com to anyone who posts to vim_use has stopped. As I mentioned, I have emailed everyone who receives vim_use asking about the problem (in batches of 60 at a time). Thanks to those who responded. I unsubscribed 60 members since some of

RE: regexp

2012-12-18 Thread John Beckett
Cesar Romani wrote: If I have the following line: a href=http://www.whatever.com;SomeTitle/a How to create the file SomeTitle.txt with the content (without the dashes): [InternetShortcut] URL=http://www.whatever.com With the cursor on the line,

RE: new spam-script uploaded to vim.org

2012-12-17 Thread John Beckett
jeroen wrote: This certainly looks like another script which can be classified as 'spam': http://www.vim.org/scripts/script.php?script_id=4362 Thanks. All related material deleted. John -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

RE: copy and replace with a slight modification a line several times

2012-12-14 Thread John Beckett
A Loumiotis wrote: function! Conva_d(linenr) let line = getline(a:linenr) let result = [] for i in [a,b,c,d] call add(result, substitute(line, 'x\(\w\)\@!','_' . i, 'g')) endfor call setline(a:linenr, result[0]) execute a:linenr . 'put =result[1:]' endfunction From

RE: copy and replace with a slight modification a line several times

2012-12-11 Thread John Beckett
A Loumiotis wrote: Starting with a file with two lines: var1_$x; var2$x-1 var3x; var4x==1 I would like to end up with the following seven line file: var1_1; var21-1 var1_2; var22-1 var1_3; var23-1 var3_a; var4_a==1 var3_b; var4_b==1 var3_c; var4_c==1 var3_d; var4_d==1 How could I

RE: copy and replace with a slight modification a line several times

2012-12-11 Thread John Beckett
Ben Fritz wrote: ... call setline(.,[line,repl1,repl2,repl3]) There is a problem with that because four lines will be inserted into the buffer, and those lines will OVERWRITE existing lines. That's why my script used 'setline()' to replace the first line, and 'put' to insert the extra lines.

RE: vim insert mode injection

2012-12-10 Thread John Beckett
ping wrote: I'm looking at a handy way to insert curr timestamp when writing, right in insert mode The tip for that is: http://vim.wikia.com/wiki/Insert_current_date_or_time E15: Invalid expression: strftime('%c')^\eSNR113_WrapCmdLine() Don't know about that, but enter the following to find

RE: Spam from ad...@139.com

2012-12-02 Thread John Beckett
This is an updated outline of the vim_use spam problem. Following some email exchanges, I am trying a few things to see if I can find a solution and may have more updates. The following uses -at- instead of @ so the Google Groups web interface will not hide the email addresses. It appears that

Spam from ad...@139.com

2012-11-29 Thread John Beckett
Does anyone have an archive of mail which includes the spam that we receive from ad...@139.com? I need to know when that spam started. I kept a few messages, and the earliest I have is 2012-07-09. Does anyone know of an earlier date? Or, can you say when it did NOT occur (that is, you posted to

RE: Email backscatter problem [was: Re: Is Vundle dead?]

2012-11-25 Thread John Beckett
Benjamin R. Haskell wrote: Yes, the emails come from ad...@139.com, but they're on behalf of the 13657...@139.com subscriber (so `admin@` is akin to `postmaster@`). I just had another attempt at working out how the spam from ad...@139.com is being sent to each person who posts. As a manager

RE: UP_CASE_VARIABLE to UpCaseVariable

2012-11-19 Thread John Beckett
Waters, Bill wrote: Does anyone have a plugin or clever substitution that will convert from an all upper case variable (UP_CASE_VARIABLE) to a camel-case variable (UpCaseVariable), and vice versa? Some suggestions are at: http://vim.wikia.com/wiki/Converting_variables_to_or_from_camel_case

RE: UP_CASE_VARIABLE to UpCaseVariable

2012-11-19 Thread John Beckett
David Fishburn wrote: Some suggestions are at: http://vim.wikia.com/wiki/Converting_variables_to_or_from_camel_case I am surprised that didnt reference the keepcase.vim script which I think is great. http://www.vim.org/scripts/script.php?script_id=6 That script is mentioned at:

RE: shiftround option

2012-11-17 Thread John Beckett
rail shafigulin wrote: I'm still no quite clear. So when I set shiftround it moves the code by the length of shiftwidth-1 when I use the or ? The way to think of it is this: If you have :set noshiftround, after adjusting an indent you may find that the indents are NOT aligned at the standard

RE: capture to file output of :set all?

2012-11-17 Thread John Beckett
Erik wrote: Thanks, but: :help :redir E433: No tags file E149: Sorry, no help for :redir If your help was working, you could use: :help :helptags to see: To rebuild the help tags in the runtime directory (requires write permission there): :helptags $VIMRUNTIME/doc

RE: Mappings, no idea how to use.

2012-11-17 Thread John Beckett
stosss wrote: I did not create this. I have no idea how this works or what key strokes trigger it. Can someone help me understand how to use it? It looks like there are two or three mappings below. Does it go in the .vimrc or somewhere else? The first extract you posted comes from:

RE: floating problem of eval()

2012-11-12 Thread John Beckett
oversky wrote: :echo eval('1/2') 0 As Danny mentioned, that is not strange as Vim follows the same concepts as used in the C language (and others) where 1 is an integer, but 1.0 (both without quotes) is a floating point number. You get the same in Python 2.7, where 1/2 also evaluates as 0.

RE: Contacting Vim Tips Wiki Admin JohnBeckett

2012-11-09 Thread John Beckett
Suresh Govindachar wrote: Hello JohnBeckett, Regarding your comments to http://vim.wikia.com/wiki/Mappings_to_facilitate_the_creation_of_text please see the recent (within past 22 hours) emails in the thread Commands from insert mode. See also

RE: Contacting Vim Tips Wiki Admin JohnBeckett

2012-11-09 Thread John Beckett
You have misunderstood the issue. No one is attempting to reconfigure vim in any way. No one is attempting to avoid the normal mode. It is just that while in insert mode, there is often a need to do something quick in normal mode and get back to insert mode -- the creator of Vim himself

RE: Question regarding 'diffput' 'diffget'

2012-10-20 Thread John Beckett
meino.cramer wrote: at my work and at home I often I use vimdiff -- its simply great! If there is a change in one of the files, which is missing in the other file and you want to add the difference to the other file, you can diffput the stuff while the cursor is in the according lines. On

RE: Replacing current line with last-yanked register

2012-10-16 Thread John Beckett
Ben Fritz wrote: The best example that comes to mind: http://vim.wikia.com/wiki/Short_mappings_for_common_tasks There's also this, which I've never really liked but seems to get a lot of traffic: http://vim.wikia.com/wiki/Best_Vim_Tips Best_Vim_Tips is an older version of Zapper's tips

RE: Vim + debugger for Python?

2012-10-11 Thread John Beckett
Shay wrote: After 39 years of doing things the hard way, I'm committed to trying the easy way. For Python, I've been experimenting with WingIDE, but am having a hard time getting used to the loss of editor functionality. I'm using the WingIDE vim personality, but WingIDE is not a dedicated

RE: OT: The so called steep learning curve of vim...

2012-10-02 Thread John Beckett
Marc Weber wrote: Try Win + R - regedit click on any folder - File export - save as .reg file. Then you have a binary format which you can open in Vim but which is unreadable for humans. Notepad decodes it. On Windows (or most systems for that matter), your vimrc should probably start with

RE: colorschemer release upload failure

2012-09-30 Thread John Beckett
richard emberson wrote: I am trying to upload the first release of what I call colorschemer http://www.vim.org/scripts/add_script_version.php?script_id=4240 ... Now, the colorschemer.zip file is a rather big file: 3.5M. Would that prevent me from uploading it? I don't know about any

RE: spam scripts on vim.org

2012-09-25 Thread John Beckett
Bram Moolenaar wrote: I think some spamscript were posted to vim.org yesterday: http://www.vim.org/scripts/script.php?script_id=4236 http://www.vim.org/scripts/script.php?script_id=4235 http://www.vim.org/scripts/script.php?script_id=4234 http://www.vim.org/scripts/script.php?script_id=4233

RE: spam scripts on vim.org

2012-09-25 Thread John Beckett
Charles Campbell [I think!] wrote: I admit that I don't know how to do this, but perhaps the anti-spam scheme for the mail-list (all new posters need to be approved by our elite, hardworking, and underpaid group of moderators, and, after approval, posters would have ready access) could be

RE: Create a 1,000,000 byte file with VIM.

2012-09-11 Thread John Beckett
Dotan Cohen wrote: I am trying to create a 1,000,000 byte file with VIM. The following has VIM using 100% of _both_ my CPUs (Intel DuoCore) for almost two hours before I killed it: iaesc100. Vim is for editing text, not performing arbitrary operations. One problem with the above (on a

RE: problems with gf

2012-08-26 Thread John Beckett
David H. Lynch Jr. wrote: I use gf heavily to edit the file under the cursor. I am working on some projects with filenames that contain characters like [ and ] that are not handled by the gf command. As well as tweaking 'isfname' as Tim mentioned, you might experiment with visually selecting

RE: moving tab pages using maps

2012-08-10 Thread John Beckett
Marcin Szamotulski wrote: It is possible and quite easy: map A-S-j :tabm +1CR map A-S-k :tabm -1CR I don't think that would work. A mapping to move the current tab is included here: http://vim.wikia.com/wiki/Using_tab_pages John -- You received this message from the vim_use maillist. Do

  1   2   3   4   5   6   7   8   >