Rename files and add init support

main
Buddy Sandidge 4 years ago
parent 8b24e127e8
commit b4b4076b50

@ -1,3 +1,28 @@
Plug 'SirVer/ultisnips', { 'tag': '3.2' }
Plug 'editorconfig/editorconfig-vim', { 'tag': 'v1.1.1' }
Plug 'tpope/vim-surround'
" UltiSnips
Plug 'SirVer/ultisnips', { 'tag': '3.2' }
let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ]
" NerdTree
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle', 'tag': '6.9.8' }
" Close all open buffers on entering a window if the only
" buffer that's left is the NERDTree buffer
function! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName")
if bufwinnr(t:NERDTreeBufName) != -1
if winnr("$") == 1
q
endif
endif
endif
endfunction
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
let NERDTreeDirArrows = 1
let NERDTreeIgnore = [ '\.pyc$', '\.swp$' ]
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()

@ -0,0 +1,15 @@
" Load from init.d instead of plugin directory. This is done so a leader key
" can be set before loading plugin settings. This allows the plugin setting
" files to set mappings with leader keys
for f in split(glob('~/.vim/init.d/*.vim'), '\n')
exe 'source' f
endfor
" The plugged plugin manager function calls need to be called between the
" plug#begin and plug#end. Because of that, using the normal plugin directory
" loading won't work.
call plug#begin('~/.vim/plugged')
for f in split(glob('~/.vim/plug.d/*.vim'), '\n')
exe 'source' f
endfor
call plug#end()

@ -1,7 +0,0 @@
call plug#begin('~/.vim/plugged')
for f in split(glob('~/.vim/plug.d/*.vim'), '\n')
exe 'source' f
endfor
call plug#end()
Loading…
Cancel
Save