yaml indenting and wildmenu enabled

This commit is contained in:
ManjaroOne666 2017-12-26 22:11:45 +00:00
parent b189ad9e7a
commit 078203638f
2 changed files with 21 additions and 5 deletions

5
vim/ftplugin/yaml.vim Normal file
View File

@ -0,0 +1,5 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set shiftround
set autoindent

21
vimrc
View File

@ -108,6 +108,9 @@ set ignorecase
" unless search contains uppercase
set smartcase
set wildmenu
set wildmode=longest:full,full
" allow hidden buffers
set hidden
@ -372,12 +375,20 @@ nnoremap <leader>ut :UndotreeToggle<cr>
" vim-project-tags
source ~/.vim/bundle/vim-elhiv/elhiv.vim
" override function so we can have custom tag names for built in languages
function! project_tags#add_built_in_language_support()
call project_tags#add_language('.jstags', 'js')
call project_tags#add_language('.vimtags', 'vim')
call project_tags#add_language('.phptags', 'php')
endfunction
" function! project_tags#add_built_in_language_support()
" call project_tags#add_language('.jstags', 'js')
" call project_tags#add_language('.vimtags', 'vim')
" call project_tags#add_language('.phptags', 'php')
" endfunction
" above function causes error (maybe autoloading problem when no
" tags are being used or whatever?)
" see if following three lines work instead
call project_tags#add_language('.jstags', 'js')
call project_tags#add_language('.vimtags', 'vim')
call project_tags#add_language('.phptags', 'php')
call project_tags#add_language('.csstags','css')
call project_tags#add_language('.scsstags','scss')