16 Commits

Author SHA1 Message Date
7af8660355 Also set tmux navigation flag on FocusGained
Make using the `@vim$TMUX_PANE` window flag much more robust by
unsetting it every time the zsh prompt is drawn and setting it again
using a `FocusGained` `autocmd` in vim. This removes the need for the
hacky check for zsh in the conditional defined in the `in_vim` variable.
2019-08-16 21:58:38 +01:00
1f07473b57 Use tmux window option for pane change detection
Improve tmux integration when changing buffers or panes when vim was
invoked by another process so that seamless navigation works when the
`vim$TMUX_PANE` window option has been set, not only when the pane's
command matches a simple regex.
2019-08-11 18:58:55 +01:00
1e47926465 Don't add conflict marker highlight in help files 2019-07-24 13:57:22 +01:00
2faa156aae Only add help autocmd's in help buffers 2019-06-10 10:23:34 +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
ab0b81b6de Remove .env/.out filetype detection 2019-03-27 14:51:57 +00:00
7ace086458 Don't match non conflict markers 2018-08-26 10:51:11 +01:00
fe197a4c76 Add conflict marker highlights as TODO's
For all filetype's highlight conflict markers with the Todo highlight
group and leave trailing text as before. This makes conflict markers
very obvious, in C/C++ where I have operator highlighting conflict
markers are not longer highlighted as operators.
2018-08-26 10:51:11 +01:00
5380ea7c78 Remove relativenumber autocmds
These kept disabling relativenumber when editing which was annoying.
2018-08-26 10:51:11 +01:00
0e419ee514 Add .env/.out filetype autocmds 2018-08-26 10:50:08 +01:00
e635d62e0c Change relativenumber behaviour 2018-08-26 10:49:14 +01:00
03de858c9b Only flip relativenumber for cpp files 2018-08-26 10:49:14 +01:00
e26b13c742 Restructure vim config 2018-08-26 10:40:44 +01:00