From ffa59da8a19dc73e4de017b87e2e34c7750c69db Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 22 Oct 2024 10:07:02 +0100 Subject: adds folding, ghetto snippets and grepprg --- vim/min-vim | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'vim') diff --git a/vim/min-vim b/vim/min-vim index edfe770..21d0217 100644 --- a/vim/min-vim +++ b/vim/min-vim @@ -8,7 +8,7 @@ let mapleader = "," syntax on set autoread -set foldmethod=manual +set foldmethod=marker set autowrite set backspace=indent,eol,start "set colorcolumn=80 @@ -19,6 +19,7 @@ set equalalways set fileformat=unix set hidden set history=1000 +set grepprg=git\ grep\ -n\ $* set ignorecase set incsearch set infercase @@ -83,15 +84,21 @@ cnoreabbrev w!! w !sudo tee > /dev/null %| " write file with sudo command! W w -if executable('rg') - set grepprg=rg\ --color=never\ --vimgrep -endif - augroup textfiles autocmd! autocmd filetype markdown setlocal spell spelllang=en augroup end +augroup htmlshortcuts + autocmd! + autocmd filetype htmldjango,html inoremap `li
  • ka + autocmd filetype htmldjango,html inoremap `ul
    ka + autocmd filetype htmldjango,html inoremap `div
    ka + autocmd filetype htmldjango,html inoremap `p

    hhhi + autocmd filetype htmldjango,html inoremap `{{ {{ }}hhi + autocmd FileType htmldjango,html inoremap `{% {% %} +augroup end + set background=dark colorscheme koehler -- cgit v1.2.3