Cleaned up file formatter settings; added <leader>ec to markdown files; dictionary update
This commit is contained in:
parent
3f7d0b03e1
commit
10807ce99a
@ -52,3 +52,11 @@ Dhampir
|
|||||||
Venmo
|
Venmo
|
||||||
str/!
|
str/!
|
||||||
Dyreson
|
Dyreson
|
||||||
|
variadic
|
||||||
|
Atlantasy
|
||||||
|
Melany
|
||||||
|
Cossette
|
||||||
|
Teagan
|
||||||
|
Carnifex
|
||||||
|
Rax
|
||||||
|
Teeples
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
syntax on
|
" -- Custom Format Settings ------------------------------ {{{
|
||||||
|
|
||||||
" -- File Formatting ------------------------------------- {{{
|
|
||||||
augroup filetype_specific_formatting
|
augroup filetype_specific_formatting
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab foldmethod=indent foldlevel=99
|
autocmd FileType python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab foldmethod=indent foldlevel=99
|
||||||
@ -9,13 +7,12 @@ augroup filetype_specific_formatting
|
|||||||
autocmd FileType html setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
autocmd FileType html setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
||||||
autocmd FileType javascript setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
autocmd FileType javascript setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
||||||
autocmd FileType css setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
autocmd FileType css setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=indent foldlevel=99
|
||||||
autocmd FileType vim setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=marker foldlevel=1
|
autocmd FileType vim setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=marker foldlevel=99
|
||||||
autocmd FileType sh setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=indent foldlevel=99
|
autocmd FileType sh setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=indent foldlevel=99
|
||||||
autocmd FileType zsh setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=indent foldlevel=99
|
autocmd FileType zsh setlocal tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab foldmethod=indent foldlevel=99
|
||||||
autocmd FileType lisp setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=manual foldlevel=99
|
autocmd FileType lisp setlocal tabstop=2 softtabstop=2 shiftwidth=2 expandtab foldmethod=manual foldlevel=99
|
||||||
autocmd FileType markdown setlocal tabstop=2 noexpandtab foldmethod=indent foldlevel=99 spell
|
autocmd FileType markdown setlocal tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab foldmethod=indent foldlevel=99 spell
|
||||||
autocmd FileType tex setlocal noexpandtab foldmethod=indent foldlevel=99 spell
|
autocmd FileType tex setlocal tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab foldmethod=indent foldlevel=99 spell
|
||||||
|
|
||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
augroup forced_filetype_recognition
|
augroup forced_filetype_recognition
|
||||||
@ -24,14 +21,17 @@ augroup end
|
|||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
" <Leader>ec Commands run on a per-extension basis {{{
|
" -- <Leader>ec to 'execute' a file ---------------------- {{{
|
||||||
augroup execute_file_shortcuts
|
augroup execute_file_shortcuts
|
||||||
" tex opens pdf in chrome
|
autocmd FileType tex nnoremap <Leader>ec :! $WEBBROWSER %:r.pdf<CR>
|
||||||
autocmd FileType tex nnoremap <Leader>ec :! $WEBBROWSER %:r.pdf<CR>
|
autocmd FileType markdown nnoremap <Leader>ec :! $WEBBROWSER %:p<CR><CR>
|
||||||
augroup end
|
augroup end
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
" Custom Formatting Layers {{{
|
" -- Format Override Layers ------------------------------ {{{
|
||||||
source $VIM_DIR/rd_formatting.vim
|
source $VIM_DIR/rd_formatting.vim
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
syntax on
|
||||||
|
Loading…
Reference in New Issue
Block a user