diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-08-23 10:09:32 +0900 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-08-24 11:33:06 +0900 |
commit | 0b7e1730bcd4c6ec1b55d541bc612445a4ff0c65 (patch) | |
tree | b7b5f6c446859ece57dddd74d254987e756ddffc /runtime/indent/solidity.vim | |
parent | 810428c4d5162c8971151a37421d4ae0586e321e (diff) | |
download | rneovim-0b7e1730bcd4c6ec1b55d541bc612445a4ff0c65.tar.gz rneovim-0b7e1730bcd4c6ec1b55d541bc612445a4ff0c65.tar.bz2 rneovim-0b7e1730bcd4c6ec1b55d541bc612445a4ff0c65.zip |
vim-patch:e34b51e95fd0
runtime(solidity): add new ftplugin (vim/vim#12877)
Set undo_{ftplugin,indent}
closes vim/vim#11240
https://github.com/vim/vim/commit/e34b51e95fd0ea7b0e34a625db0f9ed7e051e0dd
Co-authored-by: dkearns <dougkearns@gmail.com>
Co-authored-by: cothi <jiungdev@gmail.com>
Diffstat (limited to 'runtime/indent/solidity.vim')
-rw-r--r-- | runtime/indent/solidity.vim | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/runtime/indent/solidity.vim b/runtime/indent/solidity.vim index caed726c0a..55a07c015a 100644 --- a/runtime/indent/solidity.vim +++ b/runtime/indent/solidity.vim @@ -1,9 +1,11 @@ " Vim indent file -" Language: Solidity -" Acknowledgement: Based off of vim-javascript -" Maintainer: Cothi (jiungdev@gmail.com) -" Original Author: tomlion (https://github.com/tomlion/vim-solidity) -" Last Changed: 2022 Sep 27 +" Language: Solidity +" Maintainer: Cothi (jiungdev@gmail.com) +" Original Author: tomlion (https://github.com/tomlion/vim-solidity) +" Last Change: 2022 Sep 27 +" 2023 Aug 22 Vim Project (undo_indent) +" +" Acknowledgement: Based off of vim-javascript " " 0. Initialization {{{1 " ================= @@ -20,6 +22,8 @@ setlocal nosmartindent setlocal indentexpr=GetSolidityIndent() setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e +let b:undo_indent = "setlocal indentexpr< indentkeys< smartindent<" + " Only define the function once. if exists("*GetSolidityIndent") finish |