Re: Is there a setting that controls how long error messages are displayed for?

2014-01-02 Thread Matt Martini
On Jan 1, 2014, at 6:57 PM, Ivan wrote: I recently tried to access a non-existant colorscheme (:colorscheme idontexist) and got the expected error message (Cannot find color scheme...), but was surprised how quickly it disappeared (after about one second). Is there a setting that controls

autocmd pattern exclusion?

2012-11-28 Thread Matt Martini
I have an autocmd that I would like to trigger for all files, except a certain file. Is there a way to write this? I'm thinking something like: autocmd BufReadPost *, !.git/COMMIT_EDITMSG do stuff Thanks, Matt -- You received this message from the vim_use maillist. Do not top-post!

Re: autocmd pattern exclusion?

2012-11-28 Thread Matt Martini
On Nov 28, 2012, at 2:22 PM, Andy Wokula wrote: Am 28.11.2012 17:31, schrieb Matt Martini: I have an autocmd that I would like to trigger for all files, except a certain file. Is there a way to write this? I'm thinking something like: autocmd BufReadPost *, !.git/COMMIT_EDITMSG do

Re: Using vim to syntax highlight stdin

2012-05-22 Thread Matt Martini
On May 22, 2012, at 12:14 AM, Magnus Woldrich wrote: On May 22, Scott (Scott) wrote: My question is about preventing pagination. I'd like to use Vim syntax highlighting to highlight my program output but I do NOT want to Vim to paginate the output. You want the data highlighted on stdout?

Conditional bundle loading?

2011-09-22 Thread Matt Martini
I would like to know if there is a way to conditionally load a bundle, or if there is an way to load a bundle manually. I was getting really long load times (on the order of 30 seconds) for vim (7.3.230 OS X), through some effort I tracked this down to the syntastic bundle. I like this bundle

Syntastic bundle causes slow startup on OS X

2011-09-22 Thread Matt Martini
After some troubleshooting, I discovered that the excessively long vim startup times I was experiencing were caused by the Syntastic bundle. I was seeing startup times of 15 to 30+ seconds for a new file. However, I was only seeing this on Mac OSX (Snow Leopard, Tiger), but not on Ubuntu

Filtering text through external commands

2011-03-27 Thread Matt Martini
How do I set up a mapping to make the currently selected text (visual mode) get processed by an external command? I have a bunch of scripts that do text processing (mostly perl and bash) that I want to process the current buffer in vim. To process the whole file, I can do: map leaderx :%!

Re: Perl indent in vim 7.3

2011-03-18 Thread Matt Martini
On Mar 18, 2011, at 10:39 AM, Benjamin R. Haskell wrote: On Fri, 18 Mar 2011, S Krishnakumar wrote: Hello, I recently moved to Vim 7.3 from Vim 7.2. I use Vim primarily for coding Perl. The first thing I noticed today was that the indenting is not what I would expect-- Code Snippet

setting the name of the swap file?

2011-03-02 Thread Matt Martini
Hi, Is it possible to change the name of the swap file that Vim uses? I have just started using a centralized location for swapfiles with the 'directory' option. However, I am running into a problem of name space collision, or lack of same. Often I edit files with the same name in different

Re: Automatically open new files in tabs

2011-02-24 Thread Matt Martini
Ben, AK: Thanks for the help. I did a bit of reading and now understand the purpose/functionality of tabs in Vim much better. $ alias vim='vim -p' Got me most of the way there. With this Bash alias if I open a bunch of files at once they will open in a separate tab each. I also mapped