From 721a7ea65d23e7b149ba73968a1d75727a55b390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 10 Nov 2021 22:18:24 +0100 Subject: vimrc : use habamax/vim-godot --- vimrc | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/vimrc b/vimrc index 4a58939..b303f28 100644 --- a/vimrc +++ b/vimrc @@ -20,9 +20,9 @@ Plugin 'tpope/vim-surround' " cs' Plugin 'tpope/vim-fugitive' " Gstatus Gdiff Gwrite (Git add %) Plugin 'tpope/vim-repeat' " allows '.' to work with plugins Plugin 'gnupg.vim' -Plugin 'majutsushi/tagbar' +Plugin 'majutsushi/tagbar' " F2 " Plugin 'vim-scripts/taglist.vim' -Plugin 'scrooloose/nerdtree' +Plugin 'scrooloose/nerdtree' " F3 " Plugin 'abudden/taghighlight-automirror' " Plugin 'jwhitley/vim-matchit' " Plugin 'msanders/snipmate.vim' @@ -33,10 +33,9 @@ Plugin 'scrooloose/nerdtree' " Plugin 'tpope/vim-markdown' " Plugin 'vim-scripts/javacomplete' Plugin 'Shougo/deoplete.nvim' -Plugin 'Shougo/neosnippet' -Plugin 'Shougo/neosnippet-snippets' -Plugin 'calviken/vim-gdscript3' - +" Plugin 'Shougo/neosnippet' +" Plugin 'Shougo/neosnippet-snippets' +Plugin 'habamax/vim-godot' call vundle#end() " required filetype plugin indent on " required @@ -133,6 +132,15 @@ xmap (neosnippet_expand_target) let g:localvimrc_ask=0 let g:localvimrc_sandbox=0 +" godot ------------------------------------------------------------------- +func! GodotSettings() abort + " setlocal foldmethod=expr + setlocal tabstop=4 + nnoremap :GodotRunLast + nnoremap :GodotRun + nnoremap :GodotRunCurrent + nnoremap :GodotRunFZF +endfunc " tagbar / taglist ----------------------------------------------------------- nmap :TagbarToggle @@ -164,18 +172,15 @@ if has("autocmd") \ endif " Syntax of these languages is fussy over tabs Vs spaces + autocmd FileType gdscript call GodotSettings() autocmd FileType make setlocal ts=8 sts=8 sw=8 noexpandtab autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab - " Customisations based on house-style (arbitrary) + " Personal taste autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab autocmd Filetype html,xml,xsl source ~/.vim/scripts/closetag.vim - " Treat .rss files as XML - autocmd BufNewFile,BufRead *.rss setfiletype xml - autocmd BufNewFile * :exe("0r! ~/.vim/skeletons.rb %:p " . &filetype) - endif " has("autocmd") source ~/.vim/scripts/bepo-layout.vim -- cgit v1.1-2-g2b99