Re: Unintentionally closing Vim with many buffers open

2015-12-06 Thread wolfv
On Sunday, December 6, 2015 at 10:37:14 PM UTC-7, Ben Fritz wrote: > On Saturday, December 5, 2015 at 1:18:02 PM UTC-6, wolfv wrote: > > Sometimes I unintentionally close Vim with many buffers open. > > Then I have to reopen Vim and reopen all the buffers I was working on. >

Unintentionally closing Vim with many buffers open

2015-12-05 Thread wolfv
Sometimes I unintentionally close Vim with many buffers open. Then I have to reopen Vim and reopen all the buffers I was working on. Is there a way to prevent this, like a plugin that prompts "Multiple buffers are open, are you sure you want to close them?" Thank you. -- -- You received this

How to run a vim plugin function from vimrc?

2015-10-22 Thread wolfv
A plugin defines a function named HLMarks(): hi Marks term=reverse ctermfg=0 ctermbg=40 guibg=Grey40 function! HLMarks(group) call clearmatches() let index = char2nr('a') while index < char2nr('z') call matchadd( a:group, '\%'.line(

Re: How to run a vim plugin function from vimrc?

2015-10-22 Thread wolfv
On Thursday, October 22, 2015 at 12:21:33 AM UTC-6, wolfv wrote: > A plugin defines a function named HLMarks(): > > hi Marks term=reverse ctermfg=0 ctermbg=40 guibg=Grey40 > > function! HLMarks(group) > call clearmatches() > let index = char2nr('a')

Re: netrw 'qb' starts recoding macro

2015-08-18 Thread wolfv
On Sunday, August 16, 2015 at 9:12:18 PM UTC-6, wolfv wrote: From netrw normal mode, I type 'qb' to list bookmarks. Sometimes 'qb' will list bookmarks as intended. But usually the 'q' just starts recording a macro. Is there a setting to make 'q' always list bookmarks from netrw normal mode

netrw 'qb' starts recoding macro

2015-08-16 Thread wolfv
From netrw normal mode, I type 'qb' to list bookmarks. Sometimes 'qb' will list bookmarks as intended. But usually the 'q' just starts recording a macro. Is there a setting to make 'q' always list bookmarks from netrw normal mode? 'q' is too easy to activate recording accidentally. Is there a way

Re: Where in the vim script is +-- N lines: added to folded markdown headings?

2015-08-15 Thread wolfv
On Saturday, August 15, 2015 at 12:42:27 AM UTC-6, Gary Johnson wrote: On 2015-08-14, wolfv wrote: I am using vim 7.4 with markdown heading folding from https://gist.github.com/vim-voom/1035030 and highlighting from /usr/share/vim/vim74/syntax/markdown.vim With this setup, folded

Highlight only markdown headings

2015-08-14 Thread wolfv
I want to highlight markdown headings, and omit the remaining Markdown syntax. Maybe I could paste the vim script that highlights the markdown headings into my vimrc. Where is the vim script that highlights the markdown headings? Is there an easier way? Thank you. -- -- You received this

Where in the vim script is +-- N lines: added to folded markdown headings?

2015-08-14 Thread wolfv
I am using vim 7.4 with markdown heading folding from https://gist.github.com/vim-voom/1035030 and highlighting from /usr/share/vim/vim74/syntax/markdown.vim With this setup, folded headings are preceded by +-- N lines: , where N is the heading level. Unfolded headings are rendered as is. This

Re: Highlight only markdown headings

2015-08-14 Thread wolfv
On Friday, August 14, 2015 at 4:03:01 AM UTC-6, Sven Guckes wrote: * wolfv [2015-08-14 11:56]: I want to highlight markdown headings, and omit the remaining Markdown syntax. Maybe I could paste the vim script that highlights the markdown headings into my vimrc. Where is the vim script

Re: Keep markdown headings open when switching buffers?

2015-08-13 Thread wolfv
On Thursday, August 13, 2015 at 3:41:36 AM UTC-6, wolfv wrote: On Wed, Aug 12, 2015 at 10:52 PM, Nikolay Pavlov wrote: 2015-08-13 7:49 GMT+03:00 wolfv: I use markdown files with #headings, a vim plug-in folds and unfolds the headings. When I initially open a markdown file

remove all markdown highlighting except for the headings?

2015-08-13 Thread wolfv
Is there a way to remove all markdown highlighting except for the headings. I do NOT want *bold* and _italics_ rendered. My minimal vimrc file is attached. -- -- 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

Re: Keep markdown headings open when switching buffers?

2015-08-13 Thread wolfv
On Thursday, August 13, 2015 at 3:05:58 PM UTC-6, wolfv wrote: On Thursday, August 13, 2015 at 3:41:36 AM UTC-6, wolfv wrote: On Wed, Aug 12, 2015 at 10:52 PM, Nikolay Pavlov wrote: 2015-08-13 7:49 GMT+03:00 wolfv: I use markdown files with #headings, a vim plug-in folds

Keep markdown headings open when switching buffers?

2015-08-12 Thread wolfv
I use markdown files with #headings, a vim plug-in folds and unfolds the headings. When I initially open a markdown file in vim, all the headings are folded. I drill down through the headings to access a line. I switch to another buffer, read a line, and then switch back to the previous

Vim hangs and consums 24% of CPU

2015-07-01 Thread wolfv
16 $ ls -la -rw-r--r--. 1 wolfv wolfv 4323 Jun 28 22:55 .vimrc where columns describe file's -rw-r--r--.access rights (Chapter 9 – Permissions) 1 number of hard links wolfv owner wolfv group 4323 size in bytes Jun 28 22:55

Re: vimdiff noob question

2014-06-12 Thread wolfv
On Thursday, June 12, 2014 8:43:13 AM UTC-6, Ben Fritz wrote: On Wed, Jun 11, 2014 at 11:04 PM, wolfv wrote: On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote: On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 10:48:15 AM UTC-6, Ben Fritz wrote: On Tuesday, June 10, 2014 4:49:26 PM UTC-5, wolfv wrote: I manually set a.txt and b.txt to contain unique lines of text. In what program? Vim? Notepad? Then from Command Prompt: gvim -O a.txt b.txt opens gvim

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 3:12:55 PM UTC-6, Ben Fritz wrote: On Wednesday, June 11, 2014 2:33:57 PM UTC-5, wolfv wrote: From Command Prompt: C:\Users\wolf\My Documentsgvim -N -u NONE -U NONE -i NONE -O a.txt b.txt This message pops up: Location is not available

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 2:01:21 PM UTC-6, Tim Chase wrote: On 2014-06-11 12:33, wolfv wrote: The only reason I use vimdiff from the command prompt is because that is how the tutorial does it. Otherwise I always launch gVim from the taskbar. Is there a way to run vimdiff from

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: Can you use vimdiff, from C:\Users\wolf\Documents (rather than My Documents)? I am using Windows 7. From Command Prompt: C:\Users\wolf\Documentsvim -d

Re: vimdiff noob question

2014-06-11 Thread wolfv
On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote: On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: Can you use vimdiff, from C:\Users\wolf\Documents (rather than My Documents)? I am using Windows

Re: vimdiff noob question

2014-06-10 Thread wolfv
On Tuesday, June 10, 2014 5:58:18 AM UTC-6, Ben Fritz wrote: On Monday, June 9, 2014 3:42:08 PM UTC-5, wolfv wrote: Here is a detailed play-by-play of me opening files in vim (screen shots are attached): Thanks! I open files a.txt and b.txt in vim (non-diff mode). Ok

Re: vimdiff noob question

2014-06-10 Thread wolfv
On Tuesday, June 10, 2014 2:04:19 PM UTC-6, Ben Fritz wrote: On Tuesday, June 10, 2014 10:44:29 AM UTC-5, wolfv wrote: Both gvim diff and vim diff causes a.txt and b.txt to become empty: C:\Users\wolf\My Documentsvim -d a.txt b.txt C:\Users\wolf\My Documentsgvim -d a.txt

Re: vimdiff noob question

2014-06-09 Thread wolfv
On Monday, June 9, 2014 9:18:11 AM UTC-6, Ben Fritz wrote: On Sunday, June 8, 2014 9:01:25 PM UTC-5, wolfv wrote: Same results with: vim -d a.txt b.txt where a.txt and b.txt contain different text on every line. both files end up empty. Can Vim open these files correctly without

Re: vimdiff noob question

2014-06-08 Thread wolfv
On Sunday, June 8, 2014 1:02:00 PM UTC-6, Tony Mechelynck wrote: On 08/06/14 07:18, wolfv wrote: On Saturday, June 7, 2014 7:32:14 PM UTC-6, Tony Mechelynck wrote: On 07/06/14 21:11, wolfv wrote: I am following the example in the vim user manual: 08.7 Viewing differences

Re: vimdiff noob question

2014-06-08 Thread wolfv
On Sunday, June 8, 2014 7:34:30 PM UTC-6, Tony Mechelynck wrote: On 09/06/14 02:39, wolfv wrote: On Sunday, June 8, 2014 1:04:55 PM UTC-6, Ben Fritz wrote: On Sunday, June 8, 2014 12:18:24 AM UTC-5, wolfv wrote: Thanks Tony. My path environment checks out. The vim install

How to start vimdiff?

2014-06-07 Thread wolfv
I would like to learn vimdiff, but haven't got very far. I can start vim and gvim from the Command Prompt, but not vimdiff. How to start vimdiff? Here is what I tried on the Command Prompt: C:\vimdiff 'vimdiff' is not recognized as an internal or external command, operable program or batch file.

Re: How to start vimdiff?

2014-06-07 Thread wolfv
On Saturday, June 7, 2014 1:07:37 AM UTC-6, wolfv wrote: I would like to learn vimdiff, but haven't got very far. I can start vim and gvim from the Command Prompt, but not vimdiff. How to start vimdiff? Here is what I tried on the Command Prompt: C:\vimdiff 'vimdiff' is not recognized

Re: How to start vimdiff?

2014-06-07 Thread wolfv
Thanks Tim. That explains it, there is no vimdiff.bat on my system. -- -- 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

noob vimdiff question

2014-06-07 Thread wolfv
I am following the example in the vim user manual: 08.7 Viewing differences with vimdiff My vimdiff is either broken or I am not understanding something. In this example, a.txt has serveral lines of text. I open vimdiff from the command prompt: vim -d a.txt~ a.txt ~ ~ ~ ~ vimdiff

vimdiff noob question

2014-06-07 Thread wolfv
I am following the example in the vim user manual: 08.7 Viewing differences with vimdiff My vimdiff is either broken or I am not understanding something. In this example, a.txt has serveral lines of text. I open vimdiff from the command prompt: vim -d a.txt~ a.txt ~ ~ ~ ~ vimdiff

Re: vimdiff noob question

2014-06-07 Thread wolfv
On Saturday, June 7, 2014 7:32:14 PM UTC-6, Tony Mechelynck wrote: On 07/06/14 21:11, wolfv wrote: I am following the example in the vim user manual: 08.7 Viewing differences with vimdiff My vimdiff is either broken or I am not understanding something. In this example, a.txt

Re: Highlight just headings?

2013-01-13 Thread wolfv
Thanks Shlomi. What is usr_*? -- 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

Highlight just headings?

2013-01-12 Thread wolfv
I use VIM to edit .txt files for personal notes and to-do lists. I really like my setup but sometimes it is hard to pick out the headings. The only Markdown convention I use is headings. I turned off Markdown syntax because most of the highlighting gets in the way e.g. the “_” underscore in

How to highlight markdown headings in .txt files?

2013-01-11 Thread wolfv
Vim will highlight markdown headings (e.g. #heading1) in files with the “.markdown” suffix. Is there a way to highlight markdown headings in files with the “.txt” sufix? Thank you. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are

Re: How to highlight markdown headings in .txt files?

2013-01-11 Thread wolfv
On Friday, January 11, 2013 7:22:43 PM UTC-7, Tim Chase wrote: On 01/11/13 20:10, wolfv wrote: Vim will highlight markdown headings (e.g. #heading1) in files with the �.markdown� suffix. Is there a way to highlight markdown headings in files with the �.txt� sufix

Re: why is Vim coloring text in txt files?

2012-01-01 Thread wolfv
OK Tony, I changed my vimrc file, so lines 2 3 read: source $VIMRUNTIME/vimrc_example.vim au! vimrcEx FileType text and it works. But what does line 3 do? Thanks, wolfv On Jan 1, 2:08 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 01/01/12 00:33, wolfv wrote

Re: why is Vim coloring text in txt files?

2012-01-01 Thread wolfv
Thanks Tony. I couldn't have don't it without you. On Jan 1, 2:08 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 01/01/12 14:54, wolfv wrote: OK Tony, I changed my vimrc file, so lines 2  3 read:      source $VIMRUNTIME/vimrc_example.vim      au! vimrcEx FileType text

Re: why is Vim coloring text in txt files?

2011-12-31 Thread wolfv
txt files wrap at column 80. My vimrc file has: setlocal lines=72 columns=100 I copied the above filetype.vim file: When I have no filetype, files wrap at column 100 as desired. How to make txt files wrap at column 100? Thanks, wolfv -- You received this message from the vim_use maillist

Re: why is Vim coloring text in txt files?

2011-12-31 Thread wolfv
On Dec 31, 11:59 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: add a file $HOME/vimfiles/after/ftplugin/text.vim (for Windows) In that file, either the following commands: setlocal wm=0 let l:tw = columns Tony I tried both setlocal wm=0 and let l:tw = columns (one at a time) in

Re: why is Vim coloring text in txt files?

2011-12-31 Thread wolfv
On Dec 31, 2:33 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 31/12/11 21:44, wolfv wrote: Try         :verbose setlocal tw? wm? fo?         :echo $HOME         :scriptnames while editing a text file. Then check the help for these options (and |fo-table| for the latter one

Re: why is Vim coloring text in txt files?

2011-12-28 Thread wolfv
On Dec 28, 1:15 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 28/12/11 01:53, wolfv wrote: Hi Tony.  I didn't get vary far.  Here is what I tried.  From the Vim EX Line editor I typed::!mkdir $HOME/vimfiles This cmd window popped up: C:\Windows\system32\cmd.exe /c mkdir

Re: why is Vim coloring text in txt files?

2011-12-28 Thread wolfv
On Dec 28, 7:29 pm, John Beckett johnb.beck...@gmail.com wrote: wolfv wrote: I tried this from cmd window: C:\Users\wolf cd %HOME% The system cannot find the path specified. It's a long story, some of which is mentioned at:http://vim.wikia.com/wiki/Filetype.vim (search for $HOME

Re: why is Vim coloring text in txt files?

2011-12-27 Thread wolfv
... Is there a syntax error? Regards, wolfv On Dec 27, 12:55 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 27/12/11 05:26, wolfv wrote: Thanks Tony.  I don't know what else to do.  Most of this Vim code is over my head.  I am using Vim 7.3 on Windows 7.  This is what it says in my :h

Re: why is Vim coloring text in txt files?

2011-12-26 Thread wolfv
Thanks Thilo and Tony. I Changed my filetype.vim code so when there is a “#” at the beginning of the first 3 lines, Vim sets generic configuration. i.e. I deleted this line: \ || getline(4) =~ '^#' || getline(5) =~ '^#' My txt files won't have a “#” in the first 3 lines, so that's good

Re: why is Vim coloring text in txt files?

2011-12-26 Thread wolfv
for vimtutor |tutor| So what code do I put in what file? Regards, wolfv On Dec 26, 8:27 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 27/12/11 03:49, wolfv wrote: Thanks Thilo and Tony. I Changed my filetype.vim code so when there is a # at the beginning of the first 3 lines

Re: why is Vim coloring text in txt files?

2011-12-25 Thread wolfv
. Thank you, wolfv -- temp2.txt: After reopening file in Vim, if first line starting with hash (#) starts after column 1 then  #hash is black  'single quote is black'  double quote is black temp3.txt: After reopening file in Vim, if first line starting with hash (#) starts

Re: why is Vim coloring text in txt files?

2011-12-25 Thread wolfv
Thanks Thilo. I found the Generic configuration code in my C:\Program Files (x86)\Vim \vim73\filetype.vim Where in the file should the local configuration code (below) be placed? txt autocmd BufNewFile,BufRead \ *.txt, \*README* \ setl ft=text wolfv On Dec 25, 9:26 am

Re: How to fold by expression using a function?

2011-12-11 Thread wolfv
Fritz fritzophre...@gmail.com wrote: On Dec 3, 12:39 am, wolfv wolfvo...@gmail.com wrote: Ben, Problem solved.  Folding worked after I added this source statement to the end of my _vimrc file:    so C:\Program Files (x86)\Vim\vimfiles \ftplugin\markdown.vim Thank you for your help

How to open 3 files in Vim on Windows startup?

2011-12-10 Thread wolfv
a useless cmd terminal open. Is there a way to make Windows startup open 3 files in a single Vim window (three tabs) without leaving the cmd terminal open? Thank you, wolfv -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: How to open 3 files in Vim on Windows startup?

2011-12-10 Thread wolfv
wolfv wolfvo...@gmail.com schrieb: I open the same three text files every time I boot Windows. So I want Windows 7 to automatically open the three files on startup. I wrote this batch file and put it in Startup folder: C:\Program Files (x86)\Vim\vim73\gvim.exe -p file1 file2 file3 Which

Re: How to make _vimrc turn spell checker on for .txt files?

2011-12-05 Thread wolfv
Thanks rgen and Zind. Lowercase au fixed it. It's good to use :h. On Dec 5, 12:03 am, Jürgen Krämer jottka...@googlemail.com wrote: Hi, wolfv wrote: Thanks Rich.  After adding the code to my vimrc file and opening Vim, a pop-up message says: E492: Not an editor command: Au BufRead

How to make _vimrc turn spell checker on for .txt files?

2011-12-04 Thread wolfv
How to make _vimrc turn spell checker on for .txt files? Here is the pseudo code: if filename ends in .txt setlocal spell on else setlocal spell off endif Thank you, wolfv -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: How to make _vimrc turn spell checker on for .txt files?

2011-12-04 Thread wolfv
Thanks Rich. After adding the code to my vimrc file and opening Vim, a pop-up message says: E492: Not an editor command: Au BufRead,BufNewFile *.txt setlocal spell on On Dec 4, 10:29 pm, Rich Healey healey.r...@gmail.com wrote: Au BufRead,BufNewFile *.txt setlocal spell on Alternately, you

How to fold by expression using a function?

2011-12-02 Thread wolfv
How to fold by expression using the Foldexpr_markdown function posted on https://gist.github.com/1038710 ? I am running Vim 7.3.46 and do not have vim-voom installed. I added the following lines to my _vimrc file: set foldmethod=expr :so C:\Program Files

Re: How to fold by expression using a function?

2011-12-02 Thread wolfv
you. On Dec 2, 2:02 am, Christian Brabandt cbli...@256bit.org wrote: On Fri, December 2, 2011 9:57 am, wolfv wrote: How to fold by expression using the Foldexpr_markdown function posted onhttps://gist.github.com/1038710? I am running Vim 7.3.46 and do not have vim-voom installed. I added

Re: How to fold by expression using a function?

2011-12-02 Thread wolfv
: No fold found message when zc from lines starting with #:## test level 2 Thank you. On Dec 2, 2:02 am, Christian Brabandt cbli...@256bit.org wrote: On Fri, December 2, 2011 9:57 am, wolfv wrote: How to fold by expression using the Foldexpr_markdown function posted onhttps

Re: How to fold by expression using a function?

2011-12-02 Thread wolfv
setlocal foldexpr=Foldexpr_markdown(v:lnum) I saved the files and then reopened test_fold.txt file, but got “E490: No fold found” message when zc from lines starting with “#”: ## test level 2 Thank you for your help. wolfv On Dec 2, 8:57 am, Ben Fritz fritzophre...@gmail.com wrote

Re: How to fold by expression using a function?

2011-12-02 Thread wolfv
2, 1:52 pm, Ben Fritz fritzophre...@gmail.com wrote: On Dec 2, 11:17 am, wolfv wolfvo...@gmail.com wrote: Ben, I followed your suggestions (not sure if I understand it all).  But I still get the “E490: No fold found” message.  Here is what I did: Moved the markdown.vim file

Re: How to fold by expression using a function?

2011-12-02 Thread wolfv
...@gmail.com wrote: On Dec 2, 11:17 am, wolfv wolfvo...@gmail.com wrote: Ben, I followed your suggestions (not sure if I understand it all).  But I still get the “E490: No fold found” message.  Here is what I did: Moved the markdown.vim file from ftplugin folder to the indent

How to edit vimrc file on Windows 7?

2011-11-26 Thread wolfv
I am attempting to save changes to vimrc file (C:\Program Files (x86)\Vim\_vimrc) using Vim 7.3.46 on Windows 7. When I type :w! this message appears: _vimrc E212: Can't open file for writing So I tried :w!!, but that didn't work either. I am logged in as Administrator. The _vimrc file

Can VIM display two files simultaneously?

2011-10-12 Thread wolfv
I am considering learning VIM (vim-cucumber to be exact). Can VIM display two files simultaneously (a step definitions file and it's feature file)? Thanks. -- 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