indent-o-matic
supertab
indent-o-matic | supertab | |
---|---|---|
6 | 6 | |
167 | 3,160 | |
- | - | |
3.1 | 0.0 | |
12 months ago | almost 3 years ago | |
Lua | Vim Script | |
MIT 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.
indent-o-matic
-
Which vim plugins do not have a lua equivalent yet?
there is indent-o-matic
-
How have you configured indentation?
I use indent-o-matic, along with these defaults:
-
How to adapt indent to the current file ?
I use https://github.com/Darazaki/indent-o-matic currently and set it with a keymap when that fails.
-
Is there an equivalent to :setlocal {option}< using Lua?
I do use a plugin to match the indentation of existing files (indent-o-matic), and that overrides my own indentation preferences; matching the indentation style of an existing codebase is more important than my own preferences or a language style guide. But if I'm starting a new project I stick to tabs for accessibility (unless it would cause whitespace syntax problems).
-
guess-indent — Automatic indentation style detection plugin for neovim
How does it compare to IndentOMatic?
- indent-o-matic: Dumb automatic fast indentation detection for Neovim written in Lua
supertab
-
Favorite vimrc configs for coding?
vim-lsp and ccls, supertab for auto-completion
-
Which vim plugins do not have a lua equivalent yet?
supertab? (one of the "install and forget" plugins I'm using for years)
-
Is it unorthodox to write java purely in Vim/CLI and not use an IDE?
Extra: for extra intellisense, you can use https://github.com/dense-analysis/ale (I don't - I like to stick to vanilla Vim as much as possible), https://github.com/ervandew/supertab (for completions using TAB instead of Ctrl-P), and https://github.com/jiangmiao/auto-pairs (automatic bracket insertion).
-
Just discovered emacs as a long term vim user and it's incredible
"basic visual settings set number set linebreak "text type settings set encoding=utf-8 "Remapping keys inoremap jk nnoremap j gj nnoremap k gk "to quickly open NERDTree filebrowser. nnoremap :NERDTree "to open files with external programs from paths written in vim. nnoremap gF :!xdg-open "to make Y behave similar to D and C nnoremap Y y$ "to make a new line after the word without entering insert mode nnoremap e a "insert a new line without entering insert mode nnoremap o ok nnoremap O Oj "search settings set hlsearch set incsearch "clipboard settings set clipboard=unnamedplus "for use of Vim plug plugin manager. call plug#begin() " To change the surroundings a text. Plug 'https://github.com/tpope/vim-surround' " A Vim Plugin for Lively Previewing LaTeX PDF Output " Use this command to start the previewer :LLPStartPreview Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' } Plug 'https://github.com/vimwiki/vimwiki' "It is a file browser and does basic file ops. Plug 'preservim/nerdtree' "It highlights most movement commands like w,j,f,t,/ etc.Triggered by "leader twice plus the movement key. Plug 'https://github.com/easymotion/vim-easymotion.git' "enables completion with tab instead of control p. Plug 'https://github.com/ervandew/supertab' "To edit csv files in vim and display them nicely. Plug 'chrisbra/csv.vim' call plug#end() "settings required by plugins. "to use markdown in vimwiki instead of learning vimwiki syntax let g:vimwiki_list = [{'path': '~/vimwiki/', \ 'syntax': 'markdown', 'ext': '.md'}] "Self defined commands which can be executed on vim command line.(must start "with caps) "This is shortcut for quickly sourcing vimrc. command Src source ~/.vimrc "shortcut to delete entire file. command Dal norm ggdG "shortcut to copy entire file. command Yal norm ggyG command Erc vsplit ~/.vimrc "to make presentations with pandoc using source markdown and then opening the pdf through external viewer. command Mkppt :!pandoc % -t beamer -o output.pdf ; xdg-open output.pdf "changing the default leader key which is "\" let mapleader = "\" "auto commands to do stuff based on certain events "This inserts # when leader + c key is pressed in a python file. autocmd filetype python nnoremap c I# autocmd filetype python nnoremap C ^x "saving macros or registers. "macro for anki cloze deletion let @b="f:a{{c1::jkA}}jkj0"
-
is it possible to have autocompletion where we incrementally complete the word instead of all at once?
Currently I use supertab : https://github.com/ervandew/supertab
-
Sublime text like autocomplete in vim
There are plugins that may improve this experience for you, like supertab, vimcompletesme, or vim-mucomplete. You can find more completion plugins here.
What are some alternatives?
trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
VimCompletesMe - You don't Complete Me; Vim Completes Me! A super simple, super minimal, super light-weight tab completion plugin for Vim.
vim-sleuth - sleuth.vim: Heuristically set buffer options
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
neorg - Modernity meets insane extensibility. The future of organizing your life in Neovim.
vim-lsp - async language server protocol plugin for vim and neovim
nvim-dap - Debug Adapter Protocol client implementation for Neovim
vim-mucomplete - Chained completion that works the way you want!
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
coc-java - Java extension for coc.nvim
guess-indent.nvim - Automatic indentation style detection for Neovim
vim-codefmt - Vim plugin for syntax-aware code formatting