Age | Commit message (Collapse) | Author |
|
Turn on tab completion to make it easier to navigate to a directory to
save the file in.
|
|
Add a plugin to provide a way to write file names with spaces. Came from
a Vim forum post. Handy to not have to always type backslashes if I want
to save a file with spaces in it.
|
|
Noticed when writing emails that when a line ends with a period, two
spaces are added after it, meaning there are now two spaces between my
sentences. Personally I hate this practise even though I understand why
it makes sense when using fixed-width typefaces. Set nojoinspaces to
make it stop happening.
|
|
Grab the movement commands `[n` and `]n` to move between merge conflict
markers. Makes it easier to get around when fixing conflicts in vimdiff.
Copied from Tim Pope's vim-unimpaired plugin.
|
|
It's useful to have spell checking on when writing emails.
|
|
Add formatoptions for composing email messages. Using a recommendation
from here:
http://wcm1.web.rice.edu/mutt-tips.html
regarding format=flowed emails.
|
|
Looks like ERB files would take their indentation settings from the ruby
setting (2 spaces). I want 4-space indentation in my ERB, at least
typically that's what I want when I'm writing HTML with embedded ruby.
Apply that accordingly.
|
|
Create a python-specific map (<leader>gdo and <leader>gdO) that inserts
import ipdb; ipdb.set_trace()
either above or below the current line. I got tired of having to type it
all the time.
|
|
Add setting to preserve file attributes, such as creation date. I went
to check the creation date of a file I know was created at least a year
ago, but its creation date was today and the same as its modified date.
I had recently edited the file in Vim, and that ended up being the
problem.
This setting ensures that files are reused so their attributes are
preserved.
What an unfortunate loss of history since last April.
|
|
|
|
|
|
So I can grep my open buffers.
|
|
Comply with PEP8 style guidelines by setting a max line width of 79
columns). Should make it easier to write Python code without having to
watch the column count myself.
|
|
Add a mapping to read from the OS X pasteboard. Pasting directly in
insert mode is excessively slow when dealing with a lot of text. Likely
caused by too much redrawing. Reading directly from the OS X pasteboard
is much faster, so add a mapping for that.
|
|
This setting tells vim not to save options & mappings in persisted
sessions. This allows open buffers, windows, and tabs to be saved but
configuration options and plugins to be different when reopening a
session. Useful if I've made modifications to my vimrc after creating a
session.
Found out about this from https://github.com/xolox/vim-session. Really
cool that this exists. It's been something that annoyed me for a while
but I never bothered to find a solution.
|
|
|
|
When making bulleted lists in git commits, I normally use '*' as the
bullet character.
When my text wrapped from the textwidth=72 setting for gitcommit-type
files, the line following the start of a bullet would begin with a
bullet.
Obviously this is the wrong behaviour since I'm continuing a list item,
not of starting a new one.
This frustrated me to no end whenever I wrote a list in a git commit,
constantly having to `0r<space>` to fix the extra asterisks.
I finally decided to solve this problem once and for all. Read up a
little on:
* :h formatoptions
* :h fo-table
* :h format-comments
The last of which gave me what I needed to fix the problem. Now
asterisks in git commits behave as list bullets.
|
|
Never being able to move by word in command mode would always get on my
nerves. In particular if I was trying compose a long command. Sure you
can bring up a command window but that's not what I think of first when
starting to writing a command.
Luckily `cmdline.txt` in vim help has the answer! Since Shift-Left/Right
doesn't work for me and I'm using Control-Left/Right to move between OS
X spaces (not even sure if the Control modifier version works for this
either), create bash/emacs-style mappings to move between words in
command mode.
I'm sorry I didn't find this earlier but it does feel good to have a big
annoyance solved.
|
|
|
|
Was doing a search for a class in HTML files and realised that I want
the files open in vim and in order to do so I would either have to
monkey with some shell piping or Control-Z/fg back and forth from ag
output to vim whilst remembering which filenames I wanted to open and
open them manually.
Craziness.
Finally installing Ag.vim for these instances when I want to instantly
open vim buffers for the files in my search results.
|
|
<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.
|
|
Add an ftdetect file to automatically set Markdown syntax highlighting
for files with a .md extension.
|
|
* Delete mentions of removed plugins (commentary.vim and TabBar)
* Add an entry for tcomment
|
|
Typing `:e!` is fine and all but I want a quicker way to do it.
|
|
|
|
Gives me matchit plugin settings for HTML and Django templates without
including the entire ftplugin for either. Copied the settings from vim's
default ftplugins. Allows me to use matchit to jump between HTML tags
and <:>.
|
|
Allows for extended % matching, between things like < & >, HTML opening
and closing tags, and general regex for various languages.
|
|
Add a plugin for a custom tabline. Still a lot of room for improvement
here, but I really wanted something that would tell me the tab numbers
to make it easier for me to switch between tabs using #gt.
|
|
These are no longer required now that I've switched to tcomment.
|
|
Tried tcomment which is able to recognise the code and apply the
appropriate comment instead of blindly using the comment format
specified for the current file type. Removing commentary.vim as part of
the switchover.
|
|
Trying it out to see how it compares to commentary.vim. Getting annoyed
that commentary.vim doesn't know to use JavaScript comments for a script
embedded in HTML.
|
|
Now that I removed the plugin these are no longer necessary.
|
|
I wasn't using the plugin and it's been sitting around disabled for a
while. Now that I read up on how to delete submodules, I figured I may
as well remove it.
|
|
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.
|
|
|
|
|
|
Provides syntax highlighting and a bunch of other niceties that I
haven't looked into.
|
|
Include basic settings plus compiler mappings. Mappings facilitate
compiling and running Go programs.
|
|
Made a mistake. Using `yi` means that commands like `yi(` don't work
anymore so change the mapping to `yoi` because I can't think of anything
better.
|
|
I often find that I want to delete the line inserted from the `yo`
mapping. This adds a mapping that doesn't add the line in the first
place so I don't have to go back and delete it after pasting.
|
|
Add:
* surround.vim
* golang
|
|
Adds syntax highlighting and other filetype plugins for go. This
package is a mirror of the official repo's vim plugins.
|
|
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.
|