aboutsummaryrefslogtreecommitdiff
path: root/vim/config
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Map <leader>j to toggle 'fo'-'j' flag in VimTom Ryder2017-11-051-7/+12
| | | | | This is implemented in the same way as done for 'fo'-'a'; testing for the presence of the flag based on known version tests first.
* Use :echoerr not :echomsg for 'fo'-'a' absenceTom Ryder2017-11-051-1/+1
| | | | | A bit clearer as the mapping was clearly called in error, and results in not being able to do what was need.
* Use simpler error message for 'fo'-'a' absenceTom Ryder2017-11-051-1/+1
|
* Keep script var cache of 'a' 'fo' flag supportTom Ryder2017-11-051-2/+7
| | | | Use the result to decide how to map <Leader>a.
* Keep script var cache of 'j' 'fo' flag supportTom Ryder2017-11-051-3/+6
| | | | We'll use this in a subsequent commit to decide how to map <Leader>j.
* Lower threshold for 'formatoptions' 'a' flagTom Ryder2017-11-051-3/+3
| | | | I have found it works correctly on an instance of Vim 7.0.
* Block 'formatoptions' 'a' flag on old Vim versionsTom Ryder2017-11-051-6/+20
| | | | | If I ever care, this needs more careful testing to find the version in which the flag was added.
* Limit search highlighting hooks to Vim >= 7.1Tom Ryder2017-11-051-1/+1
| | | | 'InsertEnter' and 'InsertLeave' are not autocmd events in Vim 6.1.
* Add explanatory note for choosing imperfect remapTom Ryder2017-11-051-1/+4
| | | | | | 'vnoremap' also includes select mode, which I very seldom use anyway; in this context it's not worth breaking compatibility with old Vims to use the more accurate 'xnoremap'.
* Adjust plugin code layout a lotTom Ryder2017-11-0412-24/+58
| | | | | | | | | | | | | Including renaming big_file.vim and accompanying functions yet again, to big_file_options.vim. Trying to keep complex autocmd and mapping definitions on long lines broken up semantically; definition and options on one line, patterns or mapping key on the next, and the command to run on the last. Also trying to make sure that <silent>, <buffer>, and <unique> are applied in the correct places, and that all mapping commands are using the :<C-U> idiom for the command prefix.