Last active
January 9, 2025 13:39
-
-
Save dragonken/c29123e597c6fdf022284cf36d245b64 to your computer and use it in GitHub Desktop.
YAML space indent for vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
filetype plugin indent on | |
"Get the 2-space YAML as the default when hit carriage return after the colon | |
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
set is hlsearch ai ic scs | |
nnoremap <esc><esc> :nohls<cr> | |
"https://vim.fandom.com/wiki/Moving_lines_up_or_down | |
nnoremap <A-j> :m .+1<CR>== | |
nnoremap <A-k> :m .-2<CR>== | |
inoremap <A-j> <Esc>:m .+1<CR>==gi | |
inoremap <A-k> <Esc>:m .-2<CR>==gi | |
vnoremap <A-j> :m '>+1<CR>gv=gv | |
vnoremap <A-k> :m '<-2<CR>gv=gv |
Thanks!
Thanks but for comment i think it should be " not # ?
Thanks but for comment i think it should be " not # ?
Yes. Thanks
Thanks!
Thank you very much!!
Thanks!
Thanks
Thank you! +1 star
Hi. best one thank you. Can you please add line indent? for ex: displays tabs or white space as char
Thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks