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