vim-pencil
vim-textobj-user
vim-pencil | vim-textobj-user | |
---|---|---|
15 | 25 | |
1,549 | 1,424 | |
0.0% | - | |
2.3 | 0.0 | |
about 1 year ago | over 4 years 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.
vim-pencil
- Is there a way to make undo sensible?
-
Using Neovim, latex, and a terminal pdf-viewer
Another option is vim-pencil.
-
How could I use neovim for general writing and annotations?
Both of the above are naturally integrated into billions of nvim plugins. I store files in a cloud folder to have access to them on my phone. There are apps that allow you to work with notes written in markdown like Obsidian. You should have a way to quickly go to your writing files. You could use telescope-project.nvim, startify shortcuts, or any other session plugin. I would also recommend setting up LSP for writing. You will be able to have diagnostics, "code actions" on wrong grammar, allowing you to add words to dictionary and suppress rules. I use ltex_extra.nvim for this. There are also a good set of plugins for writing by one author, just check them at the bottom of the pencil page.
-
Almost monospaced: the perfect fonts for writing
Two years ago, I did nanowrimo in Vim with a whole suite of plugins:
- https://github.com/preservim/vim-pencil
- https://github.com/junegunn/goyo.vim.git
- https://github.com/junegunn/limelight.vim.git
- https://github.com/vimwiki/vimwiki
It was fun, and the setup is almost identical to iA Writer which I appreciate. I even had it all on my phone with Termux!
Last year I just did it in Markdown in VSCode in "zen mode" which also worked pretty well. It was definitely easier to setup than Vim and had better highlighting of bold/italics/etc.
- Vim-pencil, Rethinking Vim as a tool for writing
-
Research paper + vim help
You may like vim-pencil if you use markdown. It adds several small conveniences around word wrap options, among other things. Note also that the author of pencil includes many useful links in the README for conceiving vim as a tool for prose. My workflow is based on pandoc and bibtex. But that part's not vim- specific.
-
How do you write files that are strictly max 80 chars per line?
The most efficient way to do this is to install the vim-pencil plugin--when you go to edit the file, say :Pencil to activate the plugin, and it'll reformat the text on the fly while you're editing it. Basically it makes vim act less like vim and more like a word processor.
-
Vim for text files
You may find vim-pencil usefull. The readme has some good links.
-
How to replace soft wraps with hard wraps irrespective of terminal width
preservim/vim-pencil: Rethinking Vim as a tool for writing
-
History isn't smooth
vim-pencil sets undo points at the end of every sentence (and other things) although you might not want to install a full plugin just for that.
vim-textobj-user
-
vim-textobj-variable-segment throws an error using lazy.nvim
Using lazy, it throws the error 70% of the time. when it doesn't throw the error it works. but It uses a dependency (vim-textobj-user) and I already tested it (only using that plugin without other plugins) is not the dependency's fault.
-
What are all the accepted "inner" motion arguments?
Just to add to that, there are also various plugins that give you additional text objects, such as: - ii for indent levels (https://github.com/kana/vim-textobj-indent) - iz for folds (https://github.com/kana/vim-textobj-fold) - if for functions (https://github.com/kana/vim-textobj-function) - ic for comments (https://github.com/glts/vim-textobj-comment) - User-defined text objects (https://github.com/kana/vim-textobj-user)
-
How to change between slashes using vim-textobj-user?
Thank you, kind vimmer. For others stumbling upon this issue, having same character around is not supported in textobj-user, but there's a workaround: https://github.com/kana/vim-textobj-user/issues/48.
-
What kind of short cut key if any do you use for changing text up until next underscore character?
The vim-wordmotion plugin extends the idea of words to include snake case and camel case words among other things. On a related note, the vim-textobj-user plugin lets you extend vim's understanding of text objects.
- Installing argtextobj.vim
-
How to detect nearest nested bracket (of any type)
if anyone wants to use this, just make sure to also install https://github.com/kana/vim-textobj-user for it to work
- Are there plugins for Neovim that don't exist, that should exist, in your opinion?
-
Delete word inside parens without deleting paren or comma
I would highly recommend https://github.com/kana/vim-textobj-user. Specifically, you'd want to pair it with https://github.com/sgur/vim-textobj-parameter. Check the readme for other useful custom text objects, personally I think this is one of my most useful set of plugins
-
Leap.nvim: Neovim’s Answer to the Mouse
I NEVER use count, because my mental flow is drastically hindered by pausing for any form of counting in midst of editing; I stay off even relative numbers even. In their place, I enable a vast number of text objects instead, quite a few implemented through the `kana/textobj-user plugin`. Good text object are an embodiment of intent and thus map better mentally than any method using brute counting, even at the loss of some precision and speed.
[kana/textobj-user](https://github.com/kana/vim-textobj-user)
-
Vim text object for path
I would suggest using vim-textobj-user. Someone has already implemented a path object using this plugin. You can find this implementation here.
What are some alternatives?
goyo.vim - :tulip: Distraction-free writing in Vim
nvim-treesitter-textobjects
proselint - A linter for prose.
wildfire.vim - Smart selection of the closest text object
vscode-neovim - Vim mode for VSCode, powered by Neovim
vim-indent-object - Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.
nvim-lua-setup
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vim-markdown - Markdown Vim Mode
vim-matchup - vim match-up: even better % :facepunch: navigate and highlight matching words :facepunch: modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
neuron.nvim - Make neovim the best note taking application
vim-textobj-indent - Vim plugin: Text objects for indented blocks of lines