Age | Commit message (Collapse) | Author |
|
<leader>tq quits a window and goes to the previous tab. I was getting
tired of doing `:q` -> `gT`.
I know I have <leader>td but I've been working on some projects lately
where I don't want to delete the buffers from my session.
|
|
Typing `:e!` is fine and all but I want a quicker way to do it.
|
|
|
|
Allows for extended % matching, between things like < & >, HTML opening
and closing tags, and general regex for various languages.
|
|
These are no longer required now that I've switched to tcomment.
|
|
Now that I removed the plugin these are no longer necessary.
|
|
Faster way of going from
<div><span>Hello, world!</span></div>
to
<div>
<span>Hello, world!</span>
</div>
Respects current indentation length and expandtab value.
|
|
Show the type of line ending (line feed or carriage return & line feed,
or in vim land unix & dos) in the statusline.
|
|
|
|
The visual selection would get dropped after saving using <c-h> from
visual mode. Ensure that we're brought back to were we started before
save.
|
|
:CommandTFlush reloads the search list. Necessary when switching
branches or creating new files for example. Add a mapping to make it
faster to do this.
|
|
Allow paths with spaces.
|
|
Allow paths with spaces.
|
|
I incorrectly set the mapping to open the current working directory
instead of the current file's directory.
|
|
Useful for modifying the current file quickly. Did this manually a few
times and it was kind of a pain.
|
|
Just in case. Can be useful to open the file in a different editor
sometimes and if there's an easy way to do it all the better.
|
|
Since I'm using OS X's stock vim which isn't compiled with clipboard
support, add a command to copy text to the clipboard. Useful when split
windows are open or when I want to copy an entire file that takes up
more than a single terminal page.
|
|
Make 0 go to the beginning of the visual line and $ go to the end. Have
g0 and g$ go to the beginning and end of the _actual_ line.
|
|
Add a `<c-g>u` to my save command mapping in Insert mode so I can be
sure that my edits are progressively fed to the undo tree.
|
|
I typically don't want to search the vendor directory when I'm working
in Ruby projects.
|
|
"tx" is an awkward pair of keys and it kind of hurts to type. Change the
mapping to something easier on the fingers.
|
|
Makes it easier to switch between two tabs when there are a bunch open.
Instead of having to memorize their tab numbers, just use this command.
Taken from
http://stackoverflow.com/questions/2119754/switch-to-last-active-tab-in-vim
|
|
Spell out what the mapping is doing.
|
|
If I don't make the colour difference too drastic it still looks all
right, and it's _much_ easier to follow the guide if it's a different
colour than the two surrounding it.
|
|
It was getting annoying having to keep typing "gT" after every ":bd".
|
|
For a quick way to scroll two windows together. Useful for looking at
two different versions of a file where the versions are themselves
separate files.
|
|
* Add entry in CHANGELOG
* Delete commented trial lines
* Add source URLs in a comment above the new augroup
|
|
I did need to set `b:did_ftplugin` in an autocmd. Without doing so I
was only setting it for the first opened buffer, and subsequent buffers
would have filetype plugins enabled. I'm surprised that I didn't realise
it until today. Figured out that I should be setting the autocmd on
BufReadPre in order to get the variable set properly for all buffers
that I open.
|
|
Remove the `Stab` command now that I moved it to a self-contained plugin.
|
|
|
|
Highlight the current line. Makes it easier to see where the cursor is.
|
|
|
|
Ensure that my changes can be undone if I accidentally press Ctrl-u or
Ctrl-w in insert mode.
|
|
Move gitcommit indentation settings from vimrc to an ftplugin file.
Keeps things more organised and makes for a cleaner vimrc.
|
|
Working version of disabled default ftplugins.
|
|
Only run my ftplugins, not the ones that vim provides.
NOTE: this doesn't work. Figure out why.
|
|
To keep things organised, use the .vim/ftdetect directory instead of my
vimrc to set the JSON filetype.
|
|
* Ensure filetype plugin is on so that ftplugins get loaded
* Add a filetype plugin for python with PEP8 indentation and cancel my
custom mappings that preserve indentation on empty lines
|
|
For commentary.vim.
|
|
A command that removes line numbers and invisibles in one go so that
text can be more easily selected and copied at the OS level.
|
|
Faster way to create new tabs.
|
|
|
|
* Remap toggle to <leader>ts
* Set column size to 1
* Set colours of guides to blend better with the background and be less
distracting
|
|
|
|
This setting wasn't working for me, particularly when using EasyGrep,
so I've decided to remove it.
|
|
|
|
When in Insert mode, the statusline background colour changes to green.
In all other modes, the default reversed colours are used.
This change only appears when the twilight256 colourscheme is set.
|
|
Instead of dropping .swp etc. files all over the filesystem, put them
in the `~/.vim/backup/` directory.
Here we have three directories, one for each of backups, swap, and
undo.
|
|
* Create an augroup to house syntax highlighting settings
* Add an autocmd that highlights JSON files using JavaScript syntax
highlighting
|
|
Useful to know. I like having it in BBEdit for those cases when a file
is for whatever reason not UTF-8, so adding it in here.
|