bufexplorer
barbar.nvim
Our great sponsors
bufexplorer | barbar.nvim | |
---|---|---|
8 | 38 | |
502 | 2,064 | |
- | - | |
2.3 | 6.9 | |
12 months ago | 16 days ago | |
Vim Script | Lua | |
BSD 3-clause "New" or "Revised" License | - |
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.
bufexplorer
-
Simple Buffer Management (outline)
I have those two installed, but I hardly use it. I still use good old one like https://github.com/jlanzarotta/bufexplorer.
-
Buffer switchers like VSCode
To open new buffers I usually use telescope. But to switch quickly between files I'm currently working on, I use Ctrl+6 (mapped to tab) or BufExplorer https://github.com/jlanzarotta/bufexplorer (mapped to Ctrl+tab). With BufExplorer you can also close opened buffers easily.
-
What's the best way to move through buffers?
In addition to all those ways Vim offers by default, there is a plugin that could be interesting for you: https://github.com/jlanzarotta/bufexplorer When the buffer explorer opens, you see a list and can navigate with hjkl. An Enter will open this buffer.
-
Trying a IDE like on Vim after a week to setup Emacs (kind of fail).
execute pathogen#infect() syntax on set number set incsearch filetype plugin indent on "" System """"" Ale let g:ale_sign_column_always = 1 let g:ale_sign_error = '>>' let g:ale_sign_warning = '--' " Set this. Airline will handle the rest. let g:airline#extensions#ale#enabled = 1 let g:ale_echo_msg_error_str = 'E' let g:ale_echo_msg_warning_str = 'W' let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' """" Tagbar nmap :TagbarToggle """" AutoComplete " It needs https://github.com/prabirshrestha/asyncomplete-lsp.vim inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? asyncomplete#close_popup() : "\" "" Force refresh imap (asyncomplete_force_refresh) " allow modifying the completeopt variable, or it will " be overridden all the time let g:asyncomplete_auto_completeopt = 0 set completeopt=menuone,noinsert,noselect,preview autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif """" Syntastic " https://github.com/vim-syntastic/syntastic "set statusline+=%#warningmsg# "set statusline+=%{SyntasticStatuslineFlag()} "set statusline+=%* "let g:syntastic_always_populate_loc_list = 1 "let g:syntastic_auto_loc_list = 1 "let g:syntastic_check_on_open = 1 "let g:syntastic_check_on_wq = 0 """" LSP if executable('clangd') au User lsp_setup call lsp#register_server({ \ 'name': 'clangd', \ 'cmd': {server_info->['clangd', '-background-index']}, \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'], \ }) endif function! s:on_lsp_buffer_enabled() abort setlocal omnifunc=lsp#complete setlocal signcolumn=yes if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif nmap gd (lsp-definition) nmap gs (lsp-document-symbol-search) nmap gS (lsp-workspace-symbol-search) nmap gr (lsp-references) nmap gi (lsp-implementation) nmap gt (lsp-type-definition) nmap rn (lsp-rename) nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic) nmap K (lsp-hover) inoremap lsp#scroll(+4) inoremap lsp#scroll(-4) let g:lsp_format_sync_timeout = 1000 autocmd! BufWritePre *.rs,*.go call execute('LspDocumentFormatSync') " refer to doc to add more commands endfunction augroup lsp_install au! " call s:on_lsp_buffer_enabled only for languages that has the server registered. autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled() augroup END "" Folding set foldmethod=expr \ foldexpr=lsp#ui#vim#folding#foldexpr() \ foldtext=lsp#ui#vim#folding#foldtext() """" Nerdtree " https://github.com/preservim/nerdtree nnoremap n :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :NERDTreeFind " Start NERDTree and put the cursor back in the other window. autocmd VimEnter * NERDTree | wincmd p " Close the tab if NERDTree is the only window remaining in it. autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif " If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree. autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 | \ let buf=bufnr() | buffer# | execute "normal! \w" | execute 'buffer'.buf | endif " Design let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' """" NerdCommenter " Create default mappings let g:NERDCreateDefaultMappings = 1 " Add spaces after comment delimiters by default let g:NERDSpaceDelims = 1 " Use compact syntax for prettified multi-line comments let g:NERDCompactSexyComs = 1 " Align line-wise comment delimiters flush left instead of following code indentation let g:NERDDefaultAlign = 'left' " Set a language to use its alternate delimiters by default let g:NERDAltDelims_java = 1 " Add your own custom formats or override the defaults let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } " Allow commenting and inverting empty lines (useful when commenting a region) let g:NERDCommentEmptyLines = 1 " Enable trimming of trailing whitespace when uncommenting let g:NERDTrimTrailingWhitespace = 1 " Enable NERDCommenterToggle to check all selected lines is commented or not let g:NERDToggleCheckAllLines = 1 """" IndentLine "let g:indentLine_setColors = 0 "let g:indentLine_defaultGroup = 'SpecialKey' " Vim let g:indentLine_color_term = 239 " GVim let g:indentLine_color_gui = '#A4E57E' " none X terminal let g:indentLine_color_tty_light = 7 " (default: 4) let g:indentLine_color_dark = 1 " (default: 2) " Background (Vim, GVim) let g:indentLine_bgcolor_term = 202 let g:indentLine_bgcolor_gui = '#FF5F00' let g:indentLine_char_list = ['|', '¦', '┆', '┊'] """" bufexplorer " https://github.com/jlanzarotta/bufexplorer
-
File tree browser faster than NERDTree
I've been using BufExplorer for several years now. It's basically :ls with convenient navigation.
-
FZF Buffer Delete
I love FZF but to switch and manage buffers I still use BufExplorer. We can easily wipe or delete buffers, it keeps track of the buffers opened in each tab (this way it's easy to have tabs for different aspects of the project I'm working on), etc.
-
Converting from an IDE, biggest issue is navigating between files efficiently
I've been using BufExplorer for over a decade haven't really seen anything worth switching to so far...
-
Do not get the benefit of tabs
tabs for me are very useful, I use tabs with every file that I know I have to change, when I want to change the buffer I use https://github.com/jlanzarotta/bufexplorer if the buffer is opened in another tab also the plugin change the tab
barbar.nvim
-
Neovim workflow
considering your vscode background when you say tabs your really mean buffers( Trust me even i had this problem when I made the switch). So your solution here is using a plugin. There are many but I personally use barbar.nvim
-
How to change selected line number color so that it stands out more in one dark
you can check out https://github.com/romgrk/barbar.nvim
-
Introducing: nvim-early retirement – auto-close your buffers after x minutes of inactivity
Nice! I personally use barbar.nvim's : BufferCloseAllButVisible which closes all buffers that aren't currently visible in a window.
-
I'm honestly so close to putting a bounty on a lua vim-wintabs
There has been discussion of adding that feature to upstream barbar.nvim, but no concrete work has begun yet.
-
[New plugin] deadcolumn.nvim -- gradually show you colorcolumn as you type
I'm using barbar.nvim, a simple but efficient bufferline plugin.
-
Semantic highlighting
LuaLS has trouble identifying vim functions. I just went through and annotated a bunch of functions with doc comments in a project to help it figure things out.
- VSCode like window tabs
-
How do you work with buffers?
I use barbar.nvim for displaying buffers as tabs and whenever I feel like I have too many open I run :BufferCloseAllButVisible (from a mapping), and it closes every buffer except those I have currently visible
- Closing brackets are highlighted in red when in the init.vim file
-
switch buffers shortcut
i use barbar
What are some alternatives?
nvim-tree.lua - A file explorer tree for neovim written in lua
bufferline.nvim - A snazzy bufferline for Neovim
vim-ctrlspace - Vim Space Controller
lightline.vim - A light and configurable statusline/tabline plugin for Vim
coc-explorer - 📁 Explorer for coc.nvim
taboo.vim - Few utilities for pretty tabs
vim-projectionist - projectionist.vim: Granular project configuration
impatient.nvim - Improve startup time for Neovim
minibufexpl.vim - Elegant buffer explorer - takes very little screen space
fern.vim - 🌿 General purpose asynchronous tree viewer written in Pure Vim script
vim-buftabline - Forget Vim tabs – now you can have buffer tabs
lualine.nvim - A blazing fast and easy to configure neovim statusline plugin written in pure lua. [Moved to: https://github.com/nvim-lualine/lualine.nvim]