Re: vim session plugin with MacVim Question

2017-01-01 Thread Tim Gray
On Jan 01, 2017 at 02:17 PM -0600, Russell Urquhart wrote: I would have thought that when i exit and quit MacVim that would end things correctly. Is there any way to NOT get that message when i try and start or load my default session? I don't use NerdTree, but I do use vim-session with

Re: MacVim launching Skim

2015-03-18 Thread Tim Gray
On Mar 18, 2015 at 12:00 PM -0700, hcai wrote: Hi all, I am setting up MacVim for Latex editing and compiling. I tried a lot of methods for launching Skim to view the compiled pdf, but it hasn't been able to work. Does anyone know how to figure it out? :!open -a Skim %:r.pdf I have this in a

Re: Plans for Vim 7.4

2013-05-10 Thread Tim Gray
On May 09, 2013 at 09:42 AM -0700, lith wrote: I'd like to see the breakindent patch included. Yes, please! I would also like to see the breakindent path included. -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Does vim support markdown?

2013-05-01 Thread Tim Gray
On May 01, 2013 at 04:24 PM -0400, Eric Weir wrote: Initially I was going to ask if vim supports markdown syntax, but now I'm guessing vimwiki itself processes the markdown coding in vimwiki documents? Is that right? My copy of Vim (MacVim) has a copy of markdown.vim in $VIMRUNTIME/syntax.

Re: Map Command key to Control on OS X

2012-10-30 Thread Tim Gray
On Oct 30, 2012 at 08:10 AM -0700, Heldraug wrote: Here's the deal: I use a lot a Macbook to code, problem is, it only has a small Control key on the left side, so it's kind of uncomfortable to use, particularly when using keys that have to be typed with the left hand. There are two Command

Re: Listing/finder plugins like command-t, ctrlp, fuzzyfinder

2012-08-19 Thread Tim Gray
On Aug 18, 2012 at 10:46 PM -0700, ZyX wrote: Hello. What plugins of this type do you use? Please answer only if your plugin supports at least listing of two kinds of things (files on FS and tags or buffers), but using same interface (thus it is likely that listing of these things is done by

Re: Encoding of double quotes by Vim

2012-08-05 Thread Tim Gray
On Aug 05, 2012 at 05:16 PM -0400, Eric Weir wrote: Thanks for the information on what Vim does, Tony. As my response to Alick indicates, the LyX folks are aware of the problem and that it is their's. I think the point people are trying to make that a) it's a property of LyX and not Vim and

Re: How did I get two instances of vim?

2012-06-30 Thread Tim Gray
On Jun 30, 2012 at 06:39 AM -0400, Eric Weir wrote: Again, I could be overlooking something, but none of your suggestions---improper shut down, etc.---rings a bell. All I know is when I deleted all those swap files and started closing the session before quitting vim, I haven't had the problem.

Re: How did I get two instances of vim?

2012-06-29 Thread Tim Gray
On Jun 29, 2012 at 08:12 AM -0400, Eric Weir wrote: Or, more importantly, how do I get rid of the second? The second session might have already been closed. Or crashed, or just improperly shut down. Who knows without looking at your computer. As long as you don't have any vim instances

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 11:52 AM -0400, Eric Weir wrote: At first I continued sourcing the 'mksession' file after restarting, till I realized it was overwriting the changes I had made. So I'd like to find a method that avoids this problem. I mentioned it before and I'll mention it again. Check

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 12:08 PM -0400, Eric Weir wrote: Thanks for the suggestion. Is it really that simple? If so, it might meet my need. Would I need to include the path to the files? And what does the -o5 part do? Try looking in the help: ':h -o' should get you there. I looked for help with

Re: Can vim be made to start with selected files already open?

2012-06-21 Thread Tim Gray
On Jun 21, 2012 at 01:11 PM -0400, Eric Weir wrote: A quick scan of results on these topics gives me a vague idea of what they are. I'll have to study more carefully to get clear how I would construct an alias to access the files I want to load. I.e., whether the path needs to be explicit.

Re: Selecting paragraphs

2012-06-14 Thread Tim Gray
On Jun 14, 2012 at 11:45 AM -0400, Eric Weir wrote: I've got something in my .vimrc that was supposed to put a marker at the end of each paragraph. It didn't work, and I haven't bothered to find out why. It would be helpful. Maybe you can help me see why it's not working. Here it is: You

Re: Does MacVim require separate installation of vim?

2012-06-13 Thread Tim Gray
On Jun 13, 2012 at 10:47 AM -0400, Eric Weir wrote: Thanks for the clarification, Tony. So, two reason for having a separate installation of vim: So I could run it in the terminal if I wanted to. [Attempting to do so earlier today generated a list of errors that helped me locate the source of

Re: Does MacVim require separate installation of vim?

2012-06-13 Thread Tim Gray
On Jun 13, 2012 at 11:36 AM -0400, Eric Weir wrote: A quick followup. I notice additions to the spelling dictionary---if that's what it's called;I'm referring to 'en.utf-8.add' and 'en.utf8.add.spl'---are getting saved to ~\.vim\spell. Is that the default location when using MacVim? Yes,

Re: Can vim be made to start with selected files already open?

2012-05-24 Thread Tim Gray
On May 24, 2012 at 07:14 AM -0400, Eric Weir wrote: After starting vim I take a bit of time to load the base files I normally work with. It would be a minor convenience if vim could be made to start with these files already loaded. It's a bit different from what you are talking about, but you

Re: Fuzzy Finder vs CtrlP

2012-02-05 Thread Tim Gray
On Feb 05, 2012 at 10:52 PM +0100, Michael Ludwig wrote: Just discoved CtrlP through your message. Looks just great. Me too. I'm not sure if I'll end up using it over Command-T (or Peepopen), but I am going to play around with it and see how it goes. -- You received this message from the

Re: Fuzzy Finder vs CtrlP

2012-02-05 Thread Tim Gray
On Feb 06, 2012 at 02:56 AM +0100, Michael Ludwig wrote: Does that work well for you? Maybe for project where all files have the same names because some framework favors Convention Over Configuration? It works pretty well. If you remember the file name, or parts of it, and you type it in, it

Re: [vim] Problem with `inoremap jj ESC'

2012-01-30 Thread Tim Gray
On Jan 30, 2012 at 07:17 AM -0500, Eric Weir wrote: Why only non-language text--and what do you mean by non-language? If I use vim primarily, almost exclusively, to compose and edit prose, do I need to be concerned? Haven't done any copying and pasting in vim, but do a fair bit of pasting

Re: Redhat Linux has crippled Vim

2012-01-27 Thread Tim Gray
On Jan 27, 2012 at 12:08 AM -0800, howardb21 wrote: Apparently, in redhat one only gets a decent set of features compiled, if one installs the graphics version of gvim. This isn't an authoritative response by any means, but that's what I found. My experience is with an RHEL 5.3 system where

Re: What did I do?

2012-01-21 Thread Tim Gray
On Jan 21, 2012 at 02:27 PM -0500, Eric Weir wrote: Thanks, Dotan. Will do. Instead of switching Capslock and ESC, you could remap something to ESC in Vim. For example, I use: inoremap jj ESC This lets me type 'jj' in insert mode to return to normal mode. If you have to type a word

Re: LaTeX-ize vim

2011-12-07 Thread Tim Gray
On Dec 07, 2011 at 02:05 PM +0100, Juanjo Gomez Navarro wrote: What I would like is that when I open a latex document (this is, a file with extension tex), the spelling corrector gets activated, and the words are not cut in the middle of two lines. This one is pretty straight forward. Create

Re: LaTeX syntax misery

2011-09-19 Thread Tim Gray
On Sep 17, 2011 at 08:03 PM -0400, Moshe Kamensky wrote: In my experience, the problem is the folding. When I set foldmethod=manual, the problem (mostly) disappears. I seem to remember having this same problem and it was related to folding. I just checked, and while I don't have

Re: gvim or vim in console...

2011-09-11 Thread Tim Gray
On Sep 11, 2011 at 06:39 AM +0200, Kevin Tough wrote: I am just starting to learn vim. I use Fedora and would like to know whether most programmers use vim from the console or do they/you use gvim. I have read that using one instance of vim is the best usage. I usually use both. Terminal vim

Re: O-Reilly's Learning the vi and Vim Editors

2011-09-02 Thread Tim Gray
On Sep 01, 2011 at 05:15 PM -0700, Hozzy2u wrote: Is the material on vi of any value in learning Vim? Money is a little short lately and I don't wish to waste any. Thanks to anyone kind enough to answer this. It's not a bad book. But if you want to save some cash, either buy it used, or

Re: emacs-style file backups

2011-08-08 Thread Tim Gray
On Aug 07, 2011 at 02:15 AM -0400, Alan wrote: I want a new backup file only when I first open up a file in a buffer and save it the first time. But after I close the buffer and reopen it again later, I want it to write another backup. I wrote a crummy vim script that makes a back up copy of a

Re: Command to ingnore spelling of a word

2011-06-27 Thread Tim Gray
On Jun 26, 2011 at 11:43 AM -0400, Eric Weir wrote: I would recognize them if I saw them in a file. Help indicates that there are files to which words on which zg and zw have been used are added. I've looked for them in /spell/en in the runtime folder but don't see any files there with the spl

Re: Command to ingnore spelling of a word

2011-06-25 Thread Tim Gray
On Jun 25, 2011 at 06:15 PM +0200, Andy Wokula wrote: And the command is :spellgood! (for the cmdline) or zG for Normal mode. :h zG That command, and the version that adds a word to the spellfile (zg) are both in the Vim help file (:help spell). There is also a section on the

Re: Exasperated with folding

2011-06-22 Thread Tim Gray
On Jun 22, 2011 at 10:02 AM -0400, Eric Weir wrote: au BufRead,BufNewFile *.ext :set ft=markdown I tried putting this in ~/.vim/after/ftplugin/markdown.vim and it didn't work. I moved it to my .vimrc and it worked. I don't know if that's the best place for it, though. You want it in

Re: Exasperated with folding

2011-06-21 Thread Tim Gray
On Jun 21, 2011 at 08:44 PM -0400, Eric Weir wrote: But that gives rise to another question: Could I associate other extents with the markdown filetype, e.g., mmd? I mentioned how to do this on the spell checking thread we were corresponding on. au BufRead,BufNewFile *.ext :set

Re: how to remove numbers from txt files but leave them on for coding

2011-05-11 Thread Tim Gray
On May 11, 2011 at 02:57 AM -0700, woodygar wrote: Hi just stated to use vim as a python ide - how to remove numbers from .txt but leave them on for .py .pyw files In your .vimrc include the following lines: set nonumber au FileType python setlocal number The first line turns off

Re: Cut-and-Paste with :g/pattern/d

2011-05-11 Thread Tim Gray
On May 11, 2011 at 11:51 AM -0500, Waters, Bill wrote: I often use :g/pattern/d to delete select lines. But I just realized that I don't know how to retrieve all of those lines after performing this command. If I do a 'p' after this, I only get the last line that was deleted. How can I

Re: Cut-and-Paste with :g/pattern/d

2011-05-11 Thread Tim Gray
On May 11, 2011 at 11:51 AM -0500, Waters, Bill wrote: I often use :g/pattern/d to delete select lines. But I just realized that I don't know how to retrieve all of those lines after performing this command. If I do a 'p' after this, I only get the last line that was deleted. How can I

Re: vim %character

2011-04-28 Thread Tim Gray
On Apr 28, 2011 at 06:04 AM -0700, cyboman wrote: what do those %:p:h mean? can anyone recommend a help file i need do read in order to understand the meanings of %:p:h? filename-modifiers is what you want to search the help for. -- You received this message from the vim_use maillist. Do not

Re: Starting to write with Vim

2011-04-15 Thread Tim Gray
On Apr 15, 2011 at 10:50 AM -0400, Eric Weir wrote: Thanks for bringing these to my attention, Tim -- and for the other suggestions. I get ( and ) and w/W/b/B/e/E, but f/F/t/T are eluding me at the moment. I can't tell what they do. It might be worth checking out one of the vim books and

Re: syntax coloring

2011-04-15 Thread Tim Gray
On Apr 15, 2011 at 07:29 PM +, Karl wrote: Unsubscribe Why not try sending an email to: mailto:vim_use+unsubscr...@googlegroups.com -- 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: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 08:55 AM -0400, Eric Weir wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited as ways to move around the screen. Is there a way to move up or down from what is displayed as one line on the screen when linebreak is set to another, i.e., within what Vim

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 09:28 AM -0400, Eric Weir wrote: I've found gvimrc in the finder, i.e., in the MacVim.app package. How do I open it in Vim? I think you'll want to edit the one that lives in your home directory. From Vim, try: :e ~/.vimrc -- You received this message from the

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 02:32 PM -0400, Eric Weir wrote: '/user/ericweir/foobar' is equivalent to '~/foobar', but not to '/user/~/foobar' (which is meaningless). Furthermore, since you are on a Mac, it's '/Users/ericweir'. While I'm at it, in floundering around with Vim I've encountered paths

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 03:08 PM -0400, Eric Weir wrote: If I'd invested in a new machine, instead of trying to get linux to work the way I wanted on a clunky old one, I probably wouldn't have had to flounder. But then I'd never discovered Mac. I'm glad I discovered Mac. It just works. Well just

Re: soft wrapping at a specified column

2011-04-11 Thread Tim Gray
On Apr 08, 2011 at 02:15 PM -0700, Gary Johnson wrote: If you open Vim in a window wider than 80 columns, it will automatically open a new window on the right such that the left window is 80 columns wide. Thanks for the pointers guys. I'll play around with them. It's a shame this isn't an

soft wrapping at a specified column

2011-04-08 Thread Tim Gray
Is there really no way for Vim to soft wrap at a specified column? I know I can turn on hard wrapping or resize the window. Unfortunately, when you resize the window to something that makes really long lines more readable (like 80-90 columns), as soon as you perform a vsplit, you have to go

Re: Any non-programmer users of Vim here?

2011-04-08 Thread Tim Gray
On Apr 08, 2011 at 11:25 AM -0400, Eric Weir wrote: A question regarding a concern raised by another respondent: How do you deal with the absence of word wrap. [Or is that even an issue with latex?] Vim does soft wrap, but it only wraps at the edge of the screen. It can also be set to soft

Re: Any non-programmer users of Vim here?

2011-04-08 Thread Tim Gray
On Apr 08, 2011 at 12:17 PM -0400, Eric Weir wrote: That's the way I'd want to go -- and as I've said, the way I worked between MaxThink and word processors for a long time. Well if that's the way you want to go, you could also do straight Latex from Vim. That works very well for many types

Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tim Gray
On Apr 07, 2011 at 04:15 PM -0400, Eric Weir wrote: Still, as I imagine many are, I'm a bit intimidated complexity of the commands and the steep learning curve. So, I'm wondering if there are any ordinary, nonprogrammer writers here who've gotten comfortable with Vim as a writer's editor -- or

Re: Any non-programmer users of Vim here?

2011-04-07 Thread Tim Gray
On Apr 07, 2011 at 08:58 PM -0400, Eric Weir wrote: Thanks for the suggestion, Tim. I'll keep it in mind. No problem. I've really been enjoying vim, but I feel like to get the most out of it you need to a) put the time in to learn it and b) put the time in *configuring* to make it work for

Re: Is there a plugin which allows I add tags in Visual Mode?

2011-04-03 Thread Tim Gray
On Apr 03, 2011 at 11:56 AM +0400, ZyX wrote: Yes, it is surround.vim: when you are in visual mode you can type `sp' and get selected text surrounded with `p.../p'. I think tpope's ragtag[1] script enhances surround specifically for HTML. Also worth checking out. Though I also recommend

Re: vim counterpart for persistent includes

2011-04-02 Thread Tim Gray
On Apr 02, 2011 at 11:07 AM +0200, Marc Weber wrote: This only seems to be useful to me until you learn a proper programming language / template engine. For the most part I don't find it necessary, but every once in a while, it can save a lot of time. Particularly in helping to maintain

vim counterpart for persistent includes

2011-04-01 Thread Tim Gray
I'm a new user of vim and am currently evaluating it for my uses. I'm coming from BBEdit. One of the features of BBEdit that I've found useful is the 'persistent include.'* It's mostly used for HTML. The idea behind it is that you can specify a file in an HTML comment, and when you 'update'

Re: vim counterpart for persistent includes

2011-04-01 Thread Tim Gray
On Apr 01, 2011 at 06:27 PM -0500, Tim Chase wrote: I don't know of anything pre-existing, but I whipped up this which reads in the file: Wow, thanks! I'll see if it suits my needs. You don't mention how these replacements are triggered (it might have been in the bbedit website)...on-read?