diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-22 10:07:02 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-22 10:07:02 +0100 |
commit | ffa59da8a19dc73e4de017b87e2e34c7750c69db (patch) | |
tree | 45222ffa7cbdfdc2b90b1338d2347359722ab17a | |
parent | 34d846d7f14c986b4e2561b997a7b5a172e7c4df (diff) |
adds folding, ghetto snippets and grepprg
-rw-r--r-- | vim/min-vim | 17 |
1 files changed, 12 insertions, 5 deletions
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 <li><cr></li><esc>ka<cr> + autocmd filetype htmldjango,html inoremap `ul <ul><cr></ul><esc>ka<cr> + autocmd filetype htmldjango,html inoremap `div <div><cr></div><esc>ka<cr> + autocmd filetype htmldjango,html inoremap `p <p></p><esc>hhhi + autocmd filetype htmldjango,html inoremap `{{ {{ }}<esc>hhi + autocmd FileType htmldjango,html inoremap `{% {% %}<Left><Left><Left> +augroup end + set background=dark colorscheme koehler |