aboutsummaryrefslogtreecommitdiff
path: root/vim/config
Commit message (Collapse)AuthorAgeFilesLines
* Remove 'shellpipe' settingTom Ryder2017-11-191-3/+0
| | | | | This seems to be necessary for a location-list-based :lmake system to work for checking and linting. I'll figure out exactly why a bit later.
* Move mapleader settings before .vimrc conf sourceTom Ryder2017-11-141-5/+0
| | | | | | | | | | From :help mapleader: > Note that the value of "mapleader" is used at the moment the mapping > is defined. Changing "mapleader" after that has no effect for already > defined mappings. So the order of evaluation matters.
* Strip trailing whitespaceTom Ryder2017-11-131-1/+1
|
* Pre-emptively disable core Vim plugins in configTom Ryder2017-11-131-9/+22
| | | | Most of them, anyway. A couple of them are sane and useful.
* Limit \f mapping to normal modeTom Ryder2017-11-131-1/+1
|
* Move 'hlsearch' insert-mode suspension into pluginTom Ryder2017-11-131-14/+0
| | | | | | It's easily repackaged and it makes the configuration that much shorter, so I may as well. This version also correctly handles 'hlsearch' not being on in the first place.
* Use :set not :setlocal for 'hlsearch'/'incsearch'Tom Ryder2017-11-121-4/+4
| | | | They don't have local analogues; they're global options.
* Correct nonexistent 'wildmode' value in Vim configTom Ryder2017-11-121-1/+1
| | | | | There is no such setting as "longest:list". What I meant was "list:longest".
* Document each 'backspace' flag in Vim configTom Ryder2017-11-121-3/+8
|
* Bind norm J on fixed_join.vim load if appropriateTom Ryder2017-11-121-7/+0
| | | | | | | If there are no mappings to the <Plug>FixedJoin target that the fixed_join.vim plugin provides at the time it is loaded, and the line-joining function of normal-mode J is not already mapped, the plugin will try to map it itself, for a more plug-and-play.
* Merge branch 'feature/vim-mutt-plug' into developTom Ryder2017-11-111-0/+7
|\ | | | | | | | | | | | | * feature/vim-mutt-plug: Move mutt_mail.vim line select logic into plugin Add new mail_mutt.vim plugin, apply mappings Beginnings of a buffer-to-Mutt mailer plugin
| * Move mutt_mail.vim line select logic into pluginTom Ryder2017-11-111-10/+4
| | | | | | | | This makes the configuration shorter and easier to read.
| * Add new mail_mutt.vim plugin, apply mappingsTom Ryder2017-11-111-8/+11
| | | | | | | | | | This plugin provides a shortcut for staring email messages in Mutt with a range of lines.
| * Beginnings of a buffer-to-Mutt mailer pluginTom Ryder2017-11-081-0/+10
| |
* | Sort 'shortmess' flag settings alphabeticallyTom Ryder2017-11-101-6/+6
| |
* | Add 'o' and 'O' back into 'shortmess'Tom Ryder2017-11-101-0/+4
| | | | | | | | | | | | | | These flags prevent multiple messages from reading or writing multiple files from queuing up and forcing an enter prompt. They're part of the default, which is why I didn't notice their absence until I tried using the setting previous to this commit and opened two files at once.
* | Set up individual flags for 'shortmess'Tom Ryder2017-11-101-2/+23
| | | | | | | | | | Most of these are actually the default; may as well explicitly set and document them, however. t and T in particular are new.
* | Use exists+ test rather than exists&Tom Ryder2017-11-103-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From :help hidden-options: >Not all options are supported in all versions. This depends on the >supported features and sometimes on the system. A remark about this is >in curly braces below. When an option is not supported it may still be >set without getting an error, this is called a hidden option. You can't >get the value of a hidden option though, it is not stored. > >To test if option "foo" can be used with ":set" use something like this: > if exists('&foo') >This also returns true for a hidden option. To test if option "foo" is >really supported use something like this: > if exists('+foo')
* | Adjust some whitespace and comment layoutTom Ryder2017-11-107-3/+12
| |
* | Move matchit.vim sourcing into plugin.vimTom Ryder2017-11-102-4/+4
| |
* | Rename netrw.vim to plugin.vimTom Ryder2017-11-101-0/+0
| | | | | | | | For plugin-specific configuration.
* | Remove 'shellslash' settingTom Ryder2017-11-101-6/+0
| | | | | | | | | | This will allow the Windows-specific stuff in my new auto_* plugins to quote filenames correctly.
* | Move fedora.vim into os.vimTom Ryder2017-11-101-0/+0
| | | | | | | | For OS-dependent config.
* | Remove 'tildeop' settingTom Ryder2017-11-101-3/+0
| | | | | | | | I never use it. May as well defer to the vi default.
* | Rearrange three smaller files into display.vimTom Ryder2017-11-105-18/+20
| |
* | Move 'paste' options into terminal.vimTom Ryder2017-11-102-6/+7
| | | | | | | | 'paste' is specific to the terminal only anyway.
* | Move wildmenu config into completion.vimTom Ryder2017-11-102-23/+24
| |
* | Rename complete.vim to completion.vimTom Ryder2017-11-101-0/+0
| | | | | | | | Clearer filename and more consistent to use the noun.
* | Rename term.vim to terminal.vimTom Ryder2017-11-101-0/+0
| | | | | | | | A little clearer and a needless abbreviation anyway.
* | Rename yank.vim to registers.vimTom Ryder2017-11-101-0/+0
| | | | | | | | More likely to share options this way.
* | Move nrformats.vim content to format.vimTom Ryder2017-11-102-3/+4
| |
* | Rename startup.vim to messages.vimTom Ryder2017-11-101-0/+0
| | | | | | | | | | More accurate given the content, and more likely to have other options set in it.
* | Merge encoding.vim and file.vim into files.vimTom Ryder2017-11-102-4/+5
| |
* | Move backup, swap, and undo dir logic into pluginsTom Ryder2017-11-103-71/+28
| |
* | Merge join,indent.vim into whitespace.vimTom Ryder2017-11-103-31/+33
| |
* | Append angle brackets rather than resetting optTom Ryder2017-11-101-1/+1
| |
* | Remove setting for 'tabstop'Tom Ryder2017-11-101-3/+0
|/ | | | | | | | | | | :help 'tabstop' says that setting it may be a bad idea: > Note: Setting 'tabstop' to any other value than 8 can make your file > appear wrong in many places (e.g., when printing it). On thinking about it, it's actually probably better to show literal tabs as eight screen spaces, as it will make it very obvious when there are tabs in the file.
* Merge branch 'feature/vim-plug' into developTom Ryder2017-11-071-1/+1
|\ | | | | | | | | | | | | | | | | | | | | * feature/vim-plug: Add user_ftplugin.vim and user_indent.vim plugins Use b:undo variables correctly Update <Leader>b mapping to use new mapping name Add commands to copy_linebreak.vim Give copy_linebreak.vim enable/disable funcs, maps Add :FixedJoin command Add :StripTrailingWhitespace command
| * Update <Leader>b mapping to use new mapping nameTom Ryder2017-11-071-1/+1
| | | | | | | | The name of this mapping was changed in commit 44bd9a8.
* | Bind <Leader>f to show current 'formatoptions'Tom Ryder2017-11-071-0/+5
| | | | | | | | | | | | I think this option has become overloaded in recent versions and that these would make more sense and be more manageable as separate but interacting options.
* | Add leader bindings for date stampingTom Ryder2017-11-071-0/+9
| | | | | | | | \d adds local time, \D adds UTC time.
* | Add \p Vim binding to show filetypeTom Ryder2017-11-071-0/+5
|/
* Simplify 'formatoptions' configTom Ryder2017-11-061-55/+18
| | | | | We'll let toggle_option_flags.vim raise the errors, and we won't bother with the version number testing.
* Remove redundant has('eval') VimL testTom Ryder2017-11-061-1/+1
| | | | | | | | From what I understand from ":help if", ancient Vim and/or vim-tiny without the 'eval' feature will simply gloss over all commands between :if and :endif without executing them. Therefore as soon as we test a version, we're implicitly excluding everything that doesn't have 'eval' anyway.
* Caution about :execute not eval() in VimL commentsTom Ryder2017-11-061-1/+1
| | | | May as well refer to the actual command I'm using.
* Don't use VimL ==# for number comparisonsTom Ryder2017-11-061-2/+2
| | | | | | | | | | | The Google VimScript Guide says: <https://google.github.io/styleguide/vimscriptfull.xml#Portability> > Always use case-explicit operators for strings (=~# and =~?, never =~). > > This also applies to !~ == != > >= < and <= > This only applies for strings. == and >= are fine for numbers, but ==# > and >=# must be used for strings.
* Make background detection return not set valueTom Ryder2017-11-061-2/+4
| | | | This approach allows more flexibility from the caller's side.
* Move 'formatoptions-a' test near applicable blockTom Ryder2017-11-051-6/+6
| | | | Just to keep related things together.
* Precisely define 'formatoptions' 'a' flag presenceTom Ryder2017-11-051-1/+2
| | | | | | | | | | | | | :help version6.txt, /^Patch 6\.1\.142: > Patch 6.1.142 > Problem: Defining paragraphs without a separating blank line isn't > possible. Paragraphs can't be formatted automatically. > Solution: Allow defining paragraphs with lines that end in white > space. Added the 'w' and 'a' flags in 'formatoptions'. > Files: runtime/doc/change.txt, src/edit.c, src/misc1.c, > src/normal.c, src/option.h, src/ops.c, src/proto/edit.pro, > src/proto/ops.pro, src/vim.h
* Restructure 'format' flag logic around vim-tinyTom Ryder2017-11-051-24/+31
| | | | | | Put in appropriate 'eval' checks and adjust the order of evaluation so that vim-tiny doesn't try to run all this and fail due to the absence of 'eval' for :let.