tagbar
vim-surround
tagbar | vim-surround | |
---|---|---|
31 | 83 | |
6,083 | 13,035 | |
0.2% | - | |
4.7 | 0.0 | |
about 2 months ago | 11 months ago | |
Vim Script | Vim Script | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tagbar
-
A function to list all function signatures in the current C source file in the quick fix window .
Check this plugin: https://github.com/preservim/tagbar
-
Moving across c-family function arguments
Are you looking for https://vim-taglist.sourceforge.net/ or https://github.com/preservim/tagbar
-
What is this font used from the everforest repo?
I ended up finding https://github.com/preservim/tagbar and like it so far
-
NeoVim & Rust
I also recommend you https://github.com/preservim/tagbar with https://ctags.io/ installed , it will map definitions (functions, enum, struct etc..) to tags and tagbar plugin allows you to open a split window with the mapped list and navigate through your file, it also enabled more advanced features for quick navigation .
-
Question regarding vertical movement
Also not that useful for text files I think, but I sometimes use something like https://github.com/preservim/tagbar to get an overview of the structure of the file, especially in unfamiliar documents. This is a quite old plugin of this nature that depends on ctags, there are more modern plugins that depend on treesitter. However for C++, I found the treesitter based bar plugins not as helpful, they need language specific settings, and the ones I tried didn't have them for C++ at the time.
-
Favorite vimrc configs for coding?
Having said this, there are some useful language independent extensions: jiangmiao/auto-pairs, tpope/vim-commentary, preservim/tagbar, junegunn/vim-peekaboo
-
converting vimscript to lua
Hey, I checked out tagbar plugin. It's really cool. It supports most of the languages. But the ones that needs to be configured, are mentioned in their wiki. It mentions vimscript in it. What will be the lua version of following vimscript?
-
NeoVim Installation and Configuration on Win10/11
:set number :set autoindent :set tabstop=5 :set shiftwidth=4 :set smarttab :set softtabstop=4 :set mouse=a call plug#begin() Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) Plug 'https://github.com/preservim/nerdtree' " NerdTree Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc Plug 'https://github.com/vim-airline/vim-airline' " Status bar Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors Plug 'https://github.com/rstacruz/vim-closer' " For brackets autocompletion " Auto-completion For Javascript, typescript, html, jsx ...etc Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'} " this is for auto complete, prettier and tslinting let g:coc_global_extensions = ['coc-tslint-plugin', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier'] " list of CoC extensions needed Plug 'jiangmiao/auto-pairs' "this will auto close ( [ { " these two plugins will add highlighting and indenting to JSX and TSX files. Plug 'yuezk/vim-js' Plug 'HerringtonDarkholme/yats.vim' Plug 'maxmellon/vim-jsx-pretty' set encoding=UTF-8 call plug#end() nnoremap :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :call CocActionAsync('jumpDefinition') nmap :TagbarToggle :set completeopt-=preview " For No Previews :colorscheme jellybeans let g:NERDTreeDirArrowExpandable="+" let g:NERDTreeDirArrowCollapsible="~" " --- Just Some Notes --- " :PlugClean :PlugInstall :UpdateRemotePlugins " " :CocInstall coc-python " :CocInstall coc-clangd " :CocInstall coc-snippets " :CocCommand snippets.edit... FOR EACH FILE TYPE " air-line let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " airline symbols let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' let g:airline_symbols.linenr = '' inoremap pumvisible() ? coc#_select_confirm() : ""
-
Closing brackets are highlighted in red when in the init.vim file
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation
-
Is there a plugin similar to Visual Studio's object browser/class view?
https://github.com/preservim/tagbar (no LSP support)
vim-surround
-
Difftastic, a structural diff tool that understands syntax
I don't know what exactly you mean by pasting around the second selection, but you can paste selections, registers or even files at specific lines with some vim-fu. If it's generic enough you could write a function or even keyboard shortcut if it's very simple.
I have set ",',(,[,{ in visual mode to cut the selection insert the pairs then paste it back as a very hacky solution, but it gets the job done. If you want something more advanced to add or change anything around the selection tpope has solved that with vim-surround[1].
[1]: https://github.com/tpope/vim-surround
- Surround.vim: Delete/change/add parentheses/quotes/XML-tags with ease (2022)
-
Macro usage of replace
ysw https://github.com/tpope/vim-surround basically i surround the word with " So basically i wanted to surround the first word in line qoutes and then replace the first occurence of = with : Example:
-
Wrapping a range of lines in an html tag?
vim-surround is likely the plugin answer.
-
Quick Text Shortcuts?
If you have Tim Pope's vim-surround plugin, you can also add this to your Vimrc:
-
How do you manually install plugins
If you don't want to leverage Vim's package feature or you want to put your plugins in some other place, add the folder of the plugin to your :h 'runtimepath'. For example, if you download Tim Pope's vim-surround at ~\Documents\vim-surround, you should add this to your Vim configuration:
-
How to select multiple lines which are a 'component' quickly?
I'm using the vim-surround plugin by tPope and I know I can do ysw to surround words with whatever tag i want, I also know about cst (Change surrounding tag). But I'm wondering if there is a quick and easy way to wrap components. Some components might have closing tag and some components might not.
-
Is there anything like "vim-surround" built-in?
Is there any similar plugin to https://github.com/tpope/vim-surround?
-
ShadowVim embeds Neovim inside Xcode
Vim plugins (without UI) work out of the box. Hello vim-surround, argtextobj.vim and whatnot.
-
Vim function to move following word into parentheses?
If you don't insist on staying in insert mode then you can use vim-surround, which is perfect for this: yse
What are some alternatives?
symbols-outline.nvim - A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
nvim-autopairs - autopairs for neovim written in lua
navigator.lua - Code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐 Exploring LSP and 🌲Treesitter symbols a piece of 🍰 Take control like a boss 🦍
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
vista.vim - :cactus: Viewer & Finder for LSP symbols and tags
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
vim-gutentags - A Vim plugin that manages your tag files
tabout.nvim - tabout plugin for neovim
vim-awesome - Awesome Vim plugins from across the universe
delimitMate - Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
vim-markdown - Markdown Vim Mode
micro-editor - A modern and intuitive terminal-based text editor