From 7357bc2eec7a63406f0bd7473e940906988113d3 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 15 Sep 2020 20:45:05 -0300 Subject: [PATCH] Start abbreviations with ":" --- nvim/init.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 3c48b6e..6e061f8 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -39,15 +39,16 @@ let g:rustfmt_autosave = 1 " Markdown {{{ augroup markdown + au FileType markdown setlocal iskeyword+=: " this is kinda of a "hack" to make abbr accept ":" in them " This is a long abbreviation, but: " Most of it is simply text, with linebreaks (). " There is one thing to take care, though: is NOT . " will call the function (strftime), which will insert the current " date. - au FileType markdown iab headr +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++ + au FileType markdown iab :header +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++ " This abbreviation adds a modeline to set VIM to change the spell " lang to portuguese. - au FileType markdown iab langpt + au FileType markdown iab :pt au FileType markdown setlocal spell " enable spell checking au FileType markdown setlocal textwidth=79 " max line size