| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit 6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d.
I don't think this is the right approach. The main reason I dropped
surround.vim was because I didn't like how often I was doing something
that doesn't work at all in vanilla Vim. If I make a half-assed
re-implementation, I'm just perpetuating the problem.
|
|
|
|
|
|
| |
This is an attempt at a small subset of surround.vim's behaviour,
hopefully drastically simplified. I'm not actually sure how useful or
practical this is going to be yet.
|
| |
|
|
|
|
|
| |
May as well, now that we've dropped support for versions of Vim that
don't have it.
|
|
|
|
|
| |
Instead, remap \= specifically to use tidy(1) to reformat the whole
buffer.
|
|
|
|
|
| |
The mapping was removed in commit 44a75be, but not the autoloaded
function that the plugin was replacing.
|
| |
|
|
|
|
|
|
|
| |
The function invoked to detect the HTML type for omnicompletion is
pretty big, sets a few buffer variables that it doesn't arrange to
clear, and I don't use it at all. Loading a dummy function in its place
seems to be better.
|
| |
|
| |
|
|
|
|
|
| |
This should be a command, and may very well be useful outside of mail
contexts, but this will do OK for now.
|
|
|
|
|
|
| |
If we don't actually want to know whether the string occurs *anywhere*
in the line, just at the start, we should really use substring
operations or plain old regular expression tests.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows quoting paragraphs and blocks using { } and similar motions,
doing what I mean.
|
| |
|
| |
|
| |
|
|
|
|
| |
I intend to use it elsewhere.
|
| |
|
|
|
|
|
| |
I think this is the wrong approach, and maybe even a slight security
risk.
|
|
|
|
|
|
|
| |
Mostly to properly tie down the way I want sessions to behave while I
write my book.
No documentation yet!
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Set 'equalprg' for HTML and Perl
- Discard filter#Stable()
- Set default :compiler for all applicable filetypes
- Change local leader mappings for Perl and shell script merely to set
:compiler, rather than running it
- Bind global leader mapping for running :lmake!
- Bind global leader mappings for applying 'equalprg' and 'formatprg' to
the whole buffer, using a new autoloaded helper function
vimrc#Anchor() to avoid the cursor jumping around
|
|
|
|
| |
Much more logical location.
|
|
|
|
|
| |
This plugin updates the filetype after every insert operation that
changes the first line. No documentation yet.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
I don't see myself breaking this out into its own ftplugin, and the
Makefile can be simpler this way.
|
|
|
|
|
| |
Not sure if this one will get published--it's a bit ad-hoc in its
current state.
|
|
|
|
| |
Each thereby effectively becomes its own .vimrc for that type.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Iterate through all the buffer-local mappings each time the filetype
changes, and clear any that begin with the local leader, using two
autoloaded functions and one autoload variable for :redir.
I really don't think it should be this hard. I hope I haven't missed
something in the documentation that makes this easier. I thought
maparg() or mapcheck() might do it, but no such luck.
Maybe I can refactor this later.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
No advantage to making them autoload
|
| |
|
|
|
|
|
|
|
|
| |
* Add a function to suspend autoformatting for the duration of pasting
lines.
* Factor the ftplugin's functions out to be autoloaded; this requires
Vim >=7.0, but it already needed that.
* Add Makefile infrastructure for new autoload directories/files.
|
|
|
|
|
|
|
|
|
|
|
| |
It's too complicated and confusing, and doesn't do enough to justify
wrecking Vim's own logic for doing this sort of thing. Better to just
say `:set background=dark` and be done with it.
This is the only one of my inline plugins with an `autoload` file, so we
can get rid of that, too.
Not worth packaging/publishing to www.vim.org.
|
|
|
|
|
| |
This makes the block work correctly when 'compatible' is set and 'C' is
in 'cpoptions'.
|