aboutsummaryrefslogtreecommitdiff
path: root/vim/config
Commit message (Collapse)AuthorAgeFilesLines
* Toggle Vim 'list', 'number' and 'wrap' globallyTom Ryder2018-05-182-3/+3
| | | | | | No particular reason beyond preference; I think of these as properties of the window itself, not the window-buffer pair, so it makes more sense to me this way.
* Rebind Space in Vim normal mode to scrollTom Ryder2018-04-021-0/+3
| | | | I never use its normal function.
* Remove 'smarttab' settingTom Ryder2018-02-171-4/+0
| | | | | In practice, I don't actually use this; I do ^V^I, and I seldom need literal tabs anyway. Better to leave the behaviour predictable.
* Check for 'esckeys' option for NeoVimTom Ryder2018-02-161-1/+3
| | | | | NeoVim v0.2.3-708-g77286915a no longer includes this option, and raises an error if I try to set it.
* Remove Pathogen from Vim setupTom Ryder2018-01-231-0/+5
| | | | | | | Given that all of this is installed rather than symbolically linked, there's not really any harm following the old mixed ~/.vim layout for plugins. It's one less dependency and it makes the setup quite a bit less complicated.
* Remove 'mac' from 'fileformats'Tom Ryder2018-01-211-4/+0
| | | | | | | | It seems unlikely that I'll ever edit a MacOS encoded file in my lifetime on the Unix and Windows systems to which these dotfiles are deployed, and when 'compatible' is set, the default empty value for this option breaks everything with a bunch of ^J characters in every god-fearing file. Not worth the trouble.
* Remove a baseless assertion I made in a configTom Ryder2018-01-201-2/+1
| | | | | Don't claim that syntax files tend to assume 'autoindent' is set, as it doesn't seem to be true.
* Make entire syntax config dependent on load stateTom Ryder2018-01-201-5/+3
|
* Activate syntax settings conditionallyTom Ryder2018-01-201-2/+4
| | | | | | | | | Per an oft-made recommendation on /r/vim .vimrc review threads: <https://www.reddit.com/r/vim/comments/6znskl/vimrc_review_thread/dnbmvxv/> > Re-sourcing the vimrc won't clobber any of your personal highlight > settings and the if part helps avoid unneeded re-execution/reprocessing.
* 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.