dotfiles
vim-pencil
dotfiles | vim-pencil | |
---|---|---|
13 | 15 | |
10 | 1,549 | |
- | 0.0% | |
8.4 | 2.3 | |
29 days ago | about 1 year ago | |
Nix | 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.
dotfiles
-
I wrote a script to get rid of terrible keybindings
Features: Changing keyboard brightness Changing screen brightness Going to a workspace Moving window to a workspace Changing volume Disabling touchpad(Need an extra script): https://github.com/zim0369/dotfiles/blob/main/scripts/toggle_touchpad toggle picom
-
It only took me a day to port from vimscript to lua. It's worth it.
Just comparing these two files: 1, 2 makes it obvious how much boilerplate it involves to migrate to lua. With the speed-up being unnoticeable without benchmarking, this migration from one perfectly fine config to another looks like a game, where the player is not interested in the result, but rather in the process itself.
-
HOP.NVIM doesn't have it's own highlighting, instead inherits the color of the text underneath, rendering the markers indistinguishable. How do I resolved this issue(pure lua config)?
HERE IS MY CONFIG
-
Suggest me convenient shortcuts that don't mess up with vim defaults.
Here it is.
-
History isn't smooth
If I write a few lines in vim and undo while writing then vim would erase most of the lines, making undo useless. It also happens when using Ctrl+o. The cursor jumps back in time to a very very very old position. I want history to be smooth just like it was in default vim but I don't know what line in my vimrc could be causing this.
-
Is vim slow with large files and syntax on?
The problems I face with neovim are running code. And also running code which takes input. Neovim just emits ansi escape codes or if a program needs any input then it'd panic the program. Specifically in my vimrc https://github.com/zim0369/dotfiles/blob/main/rcs/vimrc If you take a look at the last block of code written in vimscript which helps me run any program without having to leave vim, doesn't work well with neovim. If you can help me make it work smoothly with neovim then it'd be great.
- Is slow scroll ever going to be fixed?
-
Unable to quickly switch from insert to normal mode.
Here is my vimrc. It's kinda neat. Please take a look and lemme know what I'm doing wrong. Thanks in advance.
- zim0369/dotfiles: my configs
-
Dumping Tmux
I personally don't like tmux though I have a really good tmux config https://github.com/zim0369/dotfiles
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.
What are some alternatives?
tasks.vim - Async jobs and tasks
goyo.vim - :tulip: Distraction-free writing in Vim
wezterm - A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
proselint - A linter for prose.
scripts - Some basic Bash scripts/wrappers
vscode-neovim - Vim mode for VSCode, powered by Neovim
dotfiles
nvim-lua-setup
suckless.tags - Script to go to a tag and move master window to a tag with ease.
vim-markdown - Markdown Vim Mode
FastFold - Speed up Vim by updating folds only when called-for.
neuron.nvim - Make neovim the best note taking application