457 Commits

Author SHA1 Message Date
bf9276aa1b Customize termdebug highlight groups 2019-04-11 16:11:07 +01:00
ef0f39b780 Make add ! to function PythonIndent 2019-04-05 17:40:07 +01:00
6d2fbc2ac5 Add cmake surround for generator expressions 2019-04-04 17:24:32 +01:00
72fe59ffaa Only invoke last change substitution in help files
Previously the `autocmd` to replace the date on the first line if `Last
change: ` was present resulted in the cursor being moved in non `help`
filetypes due to the substitution failing. Now the substitution is only
attempted if the current file is a `help` file.
2019-04-04 16:53:46 +01:00
bdea77f86a Auto update Last change in vim help files 2019-03-31 23:17:02 +01:00
01b027b5ac Support snippet templates and add help snippets
Add `autocmd` to automatically expand the `_template` snippet on the
`BufNewFile` event, if the expansion fails because the `_template`
snippet does not exist for the current `filetype` undo the changes. Do
the same thing when the `filetype` changes to `help`, since these are
`text` files to begin with the first `autocmd` has no effect.
2019-03-31 15:04:08 +01:00
65c219c98d Add todo.md template 2019-03-30 20:13:28 +00:00
baff9ae3fd Improve global snippets
* `todo`, `note` now do not add comment strings when in a comment line
* `fixme` added to match `todo` and `note
* `date` renamed `datetime` and updated to match the unix `date` command
* `date`, `time` added inserting only the date or time now
* `utc` updated, no longer spitting the timezone offset
2019-03-30 17:07:29 +00:00
9d6a9925e5 Copy default GetPythonIndent 2019-03-28 20:58:39 +00:00
ab0b81b6de Remove .env/.out filetype detection 2019-03-27 14:51:57 +00:00
3576ca02fe Update fresh DiffChange fg color to yellow 2019-03-27 10:23:01 +00:00
91c85da67b Add C ANSI color escape sequence snippets 2019-03-27 10:01:55 +00:00
e9051dc246 Override default Python indent settings 2019-03-23 23:40:17 +00:00
84e310a28f Fix Python 3 issue in todo snippet 2019-03-23 23:15:13 +00:00
ce6ec3d410 Improve vim function snippet 2019-03-23 21:06:45 +00:00
f730d382bc Highlight *.ronn as markdown 2019-03-17 16:03:33 +00:00
c8ac5496ca Add Python raw string snippet 2019-03-17 14:56:25 +00:00
74c73066f4 Escape ¯\_(ツ)_/¯ snippet except in text documents 2019-03-08 15:48:54 +00:00
aff61cd8a8 Change *x snippet to mark the checkbox checked 2019-02-27 09:40:42 +00:00
709408fdeb Add lit global ID regex snippet 2019-02-27 09:40:34 +00:00
d0ce0a66ad Add more flexible lit regex snippets 2019-02-26 16:19:22 +00:00
b493ad17e5 Make minpac commands have consistent format 2019-02-21 11:47:23 +00:00
d555afe61e Move minpac command into plugin/commands.vim 2019-02-21 11:46:28 +00:00
65a6178bec Add ansi filetype for handling escape sequences
Based on [AnsiEsc.vim](https://github.com/vim-scripts/AnsiEsc.vim)
separate out the syntax highlighting into a separate `ansi` filetype.
This conceals escape sequences and highlights ansi color escape
sequences in text files so that they have the same appearance as in the
terminal.
2019-02-16 09:51:38 +00:00
8a10516961 Extend syntax/llvm.vim for better highlighting 2018-12-13 16:19:46 +00:00
e3886d08f8 Only install fzf as a plugin, not the cli tool 2018-12-13 16:18:58 +00:00
eab3090da7 Add termdebug window selection mappings 2018-12-13 16:13:12 +00:00
5f4e6c7636 Remove bundle/* from ignore file 2018-12-03 11:49:29 +00:00
bdb9504aec Use selected YouCompleteMe repo 2018-12-03 11:44:41 +00:00
97904dd47e Add shrug and tableflip snippets 2018-12-03 11:39:51 +00:00
34ba64980a Change main C snippet to an array of const char* 2018-12-03 11:39:51 +00:00
8fc26f9227 Add python highlight blocks to gdbinit syntax 2018-12-03 11:39:51 +00:00
51621e8134 Remove vim-plug and use minpac
* Add `Pack`, `PackUpdate`, `PackStatus` and `PackClean` commands to
  manage plugins.
* Don't load `minpac` by default.
* Remove `vim-plug` completely.
2018-11-30 19:41:21 +00:00
971d510f22 Add pack/* to ignore file 2018-11-30 17:49:07 +00:00
3a60c0abcf Improve static_assert snippet & increase sync minlines 2018-11-30 17:46:46 +00:00
446063c2e3 Add sizeof, decltype, and declval snippets 2018-11-30 17:46:46 +00:00
91dc036e8f Open *.def has cpp filetype 2018-10-25 19:06:00 +01:00
d3a8920bf7 Set viminfofile to ~/.cache/vim/info 2018-10-19 12:01:03 +01:00
61599e0b05 Disable experimental C++ syntax highlighting 2018-10-05 17:59:15 +01:00
64c8bc6b40 Use upstream YouCompleteMe on macOS
The oblitum fork of YouCompleteMe is getting dated and uses LLVM 4.0 on
macOS, this results in erroneous errors in the system headers on macOS
since it's not been updated to match upstream. Use Valloric's repo to
avoid these errors on macOS.
2018-10-04 10:20:02 +01:00
c326a04f70 Don't use normal mode mappings in vimscript 2018-09-14 16:37:14 +01:00
992096a2a0 Add :Debug command
The :Debug command quickly starts a new debugging sessions.

* adds the `termdebug` package
* invokes `TermdebugCommand` with the given arguments
2018-09-14 16:17:09 +01:00
2414a94684 Update llvm syntax file 2018-09-12 16:05:52 +01:00
c80ddd3617 Add mapping to rename include guards in c/cpp 2018-09-07 22:13:29 +01:00
25c18763bc Move ale highlight groups to fresh colorscheme 2018-09-05 19:08:19 +01:00
53c971b802 Use vim-coiled-snake instead of custom Python fold 2018-09-03 22:16:40 +01:00
6fb2f7a01c Remove cursorline option 2018-08-30 23:37:28 +01:00
6c818dd2d7 Remove duplicate Doxygen snippets 2018-08-28 11:11:56 +01:00
e745c6ebdf Improve C/C++ intent settings 2018-08-28 11:10:40 +01:00
5f7ba84ce6 Don't highlight cursor line 2018-08-26 19:14:59 +01:00