Compare commits

..

2 Commits

Author SHA1 Message Date
Hektor Misplon 1b62acfc80
Extract 'fold' config 2023-12-18 13:47:46 +01:00
Hektor Misplon ad20848d86
Extract 'netrw' config 2023-12-18 13:45:53 +01:00
3 changed files with 27 additions and 30 deletions

24
.vim/plugin/fold.vim Normal file
View File

@ -0,0 +1,24 @@
" Folds {{{
set foldmethod=marker
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
augroup filetype_python
autocmd!
autocmd FileType python setlocal foldmethod=indent
augroup END
augroup filetype_sh
autocmd!
autocmd FileType sh setlocal foldmethod=marker
augroup END
augroup filetype_snippets
autocmd!
autocmd FileType snippets setlocal foldmethod=marker
augroup END
" }}}

3
.vim/plugin/netrw.vim Normal file
View File

@ -0,0 +1,3 @@
let g:netrw_winsize = 30
let g:netrw_liststyle=3
let g:netrw_banner = 0

30
.vimrc
View File

@ -30,36 +30,6 @@ set spellsuggest+=5 " Limit spell suggestions
set wildignore+=*/node_modules/*,*/tmp/*,*.so,*.swp,*.zip set wildignore+=*/node_modules/*,*/tmp/*,*.so,*.swp,*.zip
set thesaurus+=~/.vim/thesaurus/mthesaur.txt set thesaurus+=~/.vim/thesaurus/mthesaur.txt
" File explorer
let g:netrw_winsize = 30
let g:netrw_liststyle=3
let g:netrw_banner = 0
" }}}
" Folds {{{
" Insert date
fu! Today()
:put =strftime('%d %b %Y')
endfu
set foldmethod=marker
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
augroup filetype_python
autocmd!
autocmd FileType python setlocal foldmethod=indent
augroup END
augroup filetype_sh
autocmd!
autocmd FileType sh setlocal foldmethod=marker
augroup END
" }}} " }}}
" Mappings {{{ " Mappings {{{