-
vim surround 연습하기Vim_Editor_IDE/Vim_Plugins 2022. 12. 17. 15:58728x90
https://github.com/tpope/vim-surround
surround.vim Surround.vim is all about "surroundings": parentheses, brackets, quotes, XML tags, and more. The plugin provides mappings to easily delete, change and add such surroundings in pairs. It's easiest to explain with examples. Press cs"' inside "Hello world!" to change it to 'Hello world!' Now press cs'<q> to change it to <q>Hello world!</q> To go full circle, press cst" to get "Hello world!" To remove the delimiters entirely, press ds". Hello world! Now with the cursor on "Hello", press ysiw] (iw is a text object). [Hello] world! Let's make that braces and add some space (use } instead of { for no space): cs]{ { Hello } world! Now wrap the entire line in parentheses with yssb or yss). ({ Hello } world!) Revert to the original text: ds{ds) Hello world! Emphasize hello: ysiw<em> <em>Hello</em> world! Finally, let's try out visual mode. Press a capital V (for linewise visual mode) followed by S<p class="important">. <p class="important"> <em>Hello</em> world! </p> This plugin is very powerful for HTML and XML editing, a niche which currently seems underfilled in Vim land. (As opposed to HTML/XML inserting, for which many plugins are available). Adding, changing, and removing pairs of tags simultaneously is a breeze.
내가 공부하려고 만듬
WindowsOS_윈도우_Vim개발자세팅part3_surround_vim #surround #settings
https://youtu.be/hgeHORtxod0vim-surround 연습하기
반응형'Vim_Editor_IDE > Vim_Plugins' 카테고리의 다른 글
Vim&NeoVim Plugin❤️Relative Number쓸때 라인 넘버 바로 보이게 세팅하기 (0) 2023.01.13 LunarVim단축키❤️Neovim_surround_단축키 외우기 (0) 2022.12.18 vim plugin❤️surround 사용법 yss" (2) 2022.12.17 Vim plugin, insert or delete brackets, parens, quotes in pair (0) 2022.12.17 Vim Spell Cheker Plug-in (0) 2022.12.17 Neovim | Config Structuring & Patterns |BitInByte (0) 2022.06.01 NeoVim Plug-ins)nvim-jdtls(java❤️ lsp setting하기) (0) 2022.06.01 Top 6 Neovim 0.6+ plug-ins for developers (0) 2022.05.30