diff options
-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 |