aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'release/v0.7.0'v0.7.0Tom Ryder2017-11-0424-200/+368
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * release/v0.7.0: (21 commits) Update dotfiles(7) manual from README.md Bump version number Add heading for Vim plugins subsection Update README to mention Vim plugins Rename toggle plugin again, use commands not funcs Add short documentation for new custom plugins Use same comment boilerplate for custom plugins Check 'eval' feature for loading command_typos.vim Wrap detect_background.vim func call in 'silent!' Rename and refactor option toggle plugin Don't suggest mappings in Vim plugin comments Move Vim background detection logic into plugin Specify an install-vim-autoload target Spin 'fo' toggle out into new flag toggler plugin Spin copyable linebreak config into new plugin Spin stable join config out into new plugin Use <Plug> prefix, make space strip configurable Rename a misnamed variable in big_file.vim Rename bigfile plugin to big_file Move trailing space strip config into plugin ...
| * Update dotfiles(7) manual from README.mdTom Ryder2017-11-041-3/+21
| |
| * Bump version numberTom Ryder2017-11-041-2/+2
| |
| * Merge branch 'feature/vim-plugin-...' into developTom Ryder2017-11-041-1/+13
| |\ | | | | | | | | | | | | | | | * feature/vim-plugin-readme: Add heading for Vim plugins subsection Update README to mention Vim plugins
| | * Add heading for Vim plugins subsectionTom Ryder2017-11-041-0/+2
| | |
| | * Update README to mention Vim pluginsTom Ryder2017-11-041-1/+11
| |/
| * Merge branch 'feature/spin-vim-plug' into developTom Ryder2017-11-0421-194/+332
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feature/spin-vim-plug: Rename toggle plugin again, use commands not funcs Add short documentation for new custom plugins Use same comment boilerplate for custom plugins Check 'eval' feature for loading command_typos.vim Wrap detect_background.vim func call in 'silent!' Rename and refactor option toggle plugin Don't suggest mappings in Vim plugin comments Move Vim background detection logic into plugin Specify an install-vim-autoload target Spin 'fo' toggle out into new flag toggler plugin Spin copyable linebreak config into new plugin Spin stable join config out into new plugin Use <Plug> prefix, make space strip configurable Rename a misnamed variable in big_file.vim Rename bigfile plugin to big_file Move trailing space strip config into plugin Separate command typos config to plugin
| | * Rename toggle plugin again, use commands not funcsTom Ryder2017-11-045-74/+68
| | | | | | | | | | | | | | | | | | This method makes a bit more sense, and amounts to slightly less verbose mapping commands. It does really on the +user_commands feature being available, however.
| | * Add short documentation for new custom pluginsTom Ryder2017-11-046-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | I'm using the plugin_name.txt syntax suggested by the Vim documentation. That may change in future as I study plugins written by experienced authors like Tim Pope. There will almost certainly be a lot more detail to add to each of these.
| | * Use same comment boilerplate for custom pluginsTom Ryder2017-11-046-3/+25
| | | | | | | | | | | | A brief explanation, an author name, and the license should do fine.
| | * Check 'eval' feature for loading command_typos.vimTom Ryder2017-11-041-1/+1
| | | | | | | | | | | | | | | I strongly suspect the presence of 'user_commands' implies it, but I'm not sure.
| | * Wrap detect_background.vim func call in 'silent!'Tom Ryder2017-11-041-1/+1
| | | | | | | | | | | | | | | | | | This prevents older versions of Vim like 6.2 from throwing "E1017: Missing braces" on merely parsing this code, even though they don't evaluate it.
| | * Rename and refactor option toggle pluginTom Ryder2017-11-042-54/+51
| | | | | | | | | | | | | | | | | | | | | | | | Renamed to flag_toggle.vim and placed in autoload using the namespaced autoload function syntax. I'm not sure this is the right approach yet, but I seem to pretty rarely use a Vim earlier than 7.1 these days.
| | * Don't suggest mappings in Vim plugin commentsTom Ryder2017-11-044-6/+0
| | | | | | | | | | | | Pretty useless, really.
| | * Move Vim background detection logic into pluginTom Ryder2017-11-042-25/+20
| | |
| | * Specify an install-vim-autoload targetTom Ryder2017-11-041-0/+6
| | | | | | | | | | | | | | | We'll use this for defining Vim functions that should be dynamically loaded when required, rather like how pathogen.vim does it.
| | * Spin 'fo' toggle out into new flag toggler pluginTom Ryder2017-11-042-27/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is an experimental new plugin that provides a command to toggle individual single-character flags in an option with a value of a set of such flags, in my case 'formatoptions'. A fair bit of evil eval()ing via :execute here, but I've tried to control it with some strict patern matching.
| | * Spin copyable linebreak config into new pluginTom Ryder2017-11-042-34/+40
| | | | | | | | | | | | | | | Calling this one copy_linebreak.vim. Renamed both the internal function and the plugin key.
| | * Spin stable join config out into new pluginTom Ryder2017-11-042-21/+30
| | | | | | | | | | | | | | | Again using the <Plug> mapping abstraction and not defining the mapping for the user.
| | * Use <Plug> prefix, make space strip configurableTom Ryder2017-11-042-4/+8
| | | | | | | | | | | | | | | | | | This properly abstracts out the StripTrailingWhitespace mapping rather than forcing it to <leader>x within the plugin itself. A bit nicer this way.
| | * Rename a misnamed variable in big_file.vimTom Ryder2017-11-041-4/+4
| | | | | | | | | | | | The word "size" was added to this variable's name unnecesarily.
| | * Rename bigfile plugin to big_fileTom Ryder2017-11-042-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | Just for consistency with the other plugins I'm making. I don't think I really like the cutesy names given to Vim plugins. I prefer the slightly longer and maybe even namespaced names like Perl distributions and modules have. Let's see how well this works.
| | * Move trailing space strip config into pluginTom Ryder2017-11-031-0/+0
| | |
| | * Separate command typos config to pluginTom Ryder2017-11-032-15/+14
| | | | | | | | | | | | | | | Tentatively named command_typos.vim. I've just moved this as-is for now, but it will need review, especially the hardcoded mappings.
| * | Merge branch 'hotfix/v0.6.1' into developTom Ryder2017-11-042-4/+6
| |\ \ | | | | | | | | | | | | | | | | | | | | * hotfix/v0.6.1: Check for 'eval' feature before mapleader :let Bump version number to 0.6.1
| * \ \ Merge branch 'release/v0.6.0' into developTom Ryder2017-11-041-2/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * release/v0.6.0: Bump version number to 0.6.0
* | \ \ \ Merge branch 'hotfix/v0.6.1'v0.6.1Tom Ryder2017-11-042-4/+6
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | * hotfix/v0.6.1: Check for 'eval' feature before mapleader :let Bump version number to 0.6.1
| * | | | Check for 'eval' feature before mapleader :letTom Ryder2017-11-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | This was causing a tiny build of Vim to raise errors about :let being an unavailable command.
| * | | | Bump version number to 0.6.1Tom Ryder2017-11-041-2/+2
|/ / / /
* | | | Merge branch 'release/v0.6.0'v0.6.0Tom Ryder2017-11-045-2/+31
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | * release/v0.6.0: Bump version number to 0.6.0 Add ~/.tidyrc and accompanying Makefile target
| * | | Bump version number to 0.6.0Tom Ryder2017-11-041-2/+2
| |/ /
| * | Merge branch 'feature/tidyrc' into developTom Ryder2017-11-044-0/+29
| |\ \ | | | | | | | | | | | | | | | | * feature/tidyrc: Add ~/.tidyrc and accompanying Makefile target
| | * | Add ~/.tidyrc and accompanying Makefile targetTom Ryder2017-11-044-0/+29
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This target also installs a short shell script in ~/.profile.d to set and export the HTML_TIDY environment variable that defines the path to the configuration file. tidy(1) seems to need this to be explicitly set with a default build, as far as I can tell. This pairs nicely with the settings in vim/ftplugin/html.vim.
| * | Merge branch 'release/v0.5.0' into developTom Ryder2017-11-041-2/+2
| |\ \ | | | | | | | | | | | | | | | | * release/v0.5.0: Bump version number to 0.5.0
* | \ \ Merge branch 'release/v0.5.0'v0.5.0Tom Ryder2017-11-0425-83/+96
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * release/v0.5.0: (25 commits) Bump version number to 0.5.0 Update documentation to reflect ftplugin changes Add lint mapping for Vimscript Specify scope of mapleader variables Use underscore as local map leader Add check and lint mappings for shell script Add tidy mapping for HTML Break long lines in check/lint/tidy mappings Make all lint/check/tidy maps local and silent Improve comments on check/lint/tidy maps Use long form options for tidy(1) Vim call Use direct :write !cmd instead of shellescape() Use full ':execute' not just ':exe' in VimL Check for availability of Vim shellescape() Revert "Adjust UrlLink() to yank word without t... Adjust UrlLink() to yank word without text objects Refactor UrlLink() function normal! commands Use single quotes for HTML link mapping :execute Refactor HTML tidy(1) mapping Use <Leader>/<LocalLeader> correctly in Vim config ...
| * | | Bump version number to 0.5.0Tom Ryder2017-11-041-2/+2
| |/ /
| * | Merge branch 'feature/review-ftplugin' into developTom Ryder2017-11-046-13/+66
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feature/review-ftplugin: Update documentation to reflect ftplugin changes Add lint mapping for Vimscript Specify scope of mapleader variables Use underscore as local map leader Add check and lint mappings for shell script Add tidy mapping for HTML Break long lines in check/lint/tidy mappings Make all lint/check/tidy maps local and silent Improve comments on check/lint/tidy maps Use long form options for tidy(1) Vim call Use direct :write !cmd instead of shellescape() Use full ':execute' not just ':exe' in VimL Check for availability of Vim shellescape() Revert "Adjust UrlLink() to yank word without t... Adjust UrlLink() to yank word without text objects Refactor UrlLink() function normal! commands Use single quotes for HTML link mapping :execute Refactor HTML tidy(1) mapping
| | * | Update documentation to reflect ftplugin changesTom Ryder2017-11-041-2/+6
| | | |
| | * | Add lint mapping for VimscriptTom Ryder2017-11-041-0/+5
| | | | | | | | | | | | | | | | Runs `vint -s`; the -s includes stylistic suggestions.
| | * | Specify scope of mapleader variablesTom Ryder2017-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `vint -s` says: vim/config/leader.vim:2:5: Make the scope explicit like `g:mapleader` (see Anti-pattern of vimrc (Scope of identifier)) vim/config/leader.vim:3:5: Make the scope explicit like `g:maplocalleader` (see Anti-pattern of vimrc (Scope of identifier)) This does still seem to work with the prefixes, despite not being the way the documentation specifies the variables.
| | * | Use underscore as local map leaderTom Ryder2017-11-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should allow me to mentally separate actions specific to a buffer type from actions that apply to buffers in general. It also removes the overlap of <leader>l for 'list' toggling and filetype linting. From ":help maplocalleader": > <LocalLeader> is just like <Leader>, except that it uses > "maplocalleader" instead of "mapleader". <LocalLeader> is to be used > for mappings which are local to a buffer. Example: > > :map <buffer> <LocalLeader>A oanother line<Esc> > > In a global plugin <Leader> should be used and in a filetype plugin > <LocalLeader>. "mapleader" and "maplocalleader" can be equal. > Although, if you make them different, there is a smaller chance of > mappings from global plugins to clash with mappings for filetype > plugins. For example, you could keep "mapleader" at the default > backslash, and set "maplocalleader" to an underscore.
| | * | Add check and lint mappings for shell scriptTom Ryder2017-11-041-0/+22
| | | | | | | | | | | | | | | | | | | | The commands to use in this case are dependent on the particular shell being used.
| | * | Add tidy mapping for HTMLTom Ryder2017-11-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mapping mirrors the one for Perl that passes the content of the buffer through a program to tidy it (i.e. not merely check but actively change it). The tidy(1) option chosen here, -quiet, is the bare minimum to make this invocation useful. We would never want the boilerplate it otherwise emits to be in the buffer after a call. Everything else should be applied in a configuration file, which I'll do in a separate feature.
| | * | Break long lines in check/lint/tidy mappingsTom Ryder2017-11-042-5/+12
| | | |
| | * | Make all lint/check/tidy maps local and silentTom Ryder2017-11-042-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | That is, apply <buffer> and <silent> to each of them, to make them only apply to the current buffer and to prevent them from echoing the command they're running.
| | * | Improve comments on check/lint/tidy mapsTom Ryder2017-11-032-4/+4
| | | |
| | * | Use long form options for tidy(1) Vim callTom Ryder2017-11-031-2/+2
| | | |
| | * | Use direct :write !cmd instead of shellescape()Tom Ryder2017-11-032-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a much better method of calling external programs on the buffer's contents, not just because it avoids the mess of :execute evaluation but also because it doesn't require that there actually be a filename for the current buffer. This drastically simplifies the HTML tidy(1) call in particular.
| | * | Use full ':execute' not just ':exe' in VimLTom Ryder2017-11-032-3/+3
| | | | | | | | | | | | | | | | We should probably avoid this sort of abbreviation in scripts.
| | * | Check for availability of Vim shellescape()Tom Ryder2017-11-032-10/+17
| | | | | | | | | | | | | | | | | | | | It doesn't seem to be in very old Vims; worth testing for to avoid errors if I try to use the function.