mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +00:00
vim: add yaml indentation
This commit is contained in:
@@ -249,9 +249,7 @@
|
|||||||
set wildmenu
|
set wildmenu
|
||||||
|
|
||||||
" Remember line number
|
" Remember line number
|
||||||
if has("autocmd")
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Search down into subfolders
|
" Search down into subfolders
|
||||||
" Provides tab-completion for all file-related tasks
|
" Provides tab-completion for all file-related tasks
|
||||||
@@ -280,6 +278,9 @@
|
|||||||
noremap <Leader>y "+y
|
noremap <Leader>y "+y
|
||||||
noremap <Leader>p "+p
|
noremap <Leader>p "+p
|
||||||
|
|
||||||
|
" yaml indentation
|
||||||
|
au FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
|
||||||
|
|
||||||
" Python indentation
|
" Python indentation
|
||||||
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix
|
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=79 expandtab autoindent fileformat=unix
|
||||||
let python_highlight_all=1
|
let python_highlight_all=1
|
||||||
|
Reference in New Issue
Block a user