5 Tips to Make Vim Better for Writing
Ғылым және технология
Today I talk about a few tips to make vim and nvim better for writing.
👇 PULL IT DOWN FOR THE GOOD STUFF 👇
Patreon - / thelinuxcast
Liberapay - liberapay.com/thelinuxcast/
KZread - / @thelinuxcast
===== Follow us 🐧🐧 ======
Odysee - odysee.com/$/invite/@thelinux...
Mastadon - @drmdub@distrotoot.com
/ thelinuxcast
/ mtwb
Discord - / discord
gitlab.com/thelinuxcast
Subscribe at thelinuxcast.org
Contact us email@thelinuxcast.org
Telegram Group - t.me/+9lYoIuLh0JIyMzcx
==== Referenced ====
github.com/junegunn/goyo.vim
github.com/junegunn/limelight...
github.com/plasticboy/vim-mar...
Add word count to airline
let g:airline#extensions#wordcount#enabled = 1
let g:airline#extensions#wordcount#filetypes ='\vnotes|help|markdown|rst|org|text|asciidoc|tex|mail'
===== Thanks to Our Patrons! ====
Syd A. - Tier 5 Patron
Devon C. -- Tier 4 Patron
Chris - Tier 4 Patron
EastCoastWeb - Tier 4 Patron
Gentoo is Fun Too- Tier 4 Patron
Patrick L - Tier 4 Patron
Primus - Tier 4 Patron
Marcus B. - Tier 3 Patron
Maeglin - Tier 3 Patron
Jackson Knife and Tool - Tier 3 Patron
Steve A. Tier 3 Patron
Mitchel V - Tier 2 Patron
ArchSinner - Tier 2 on YT
Amitayas B. - Tier 2 on YT
carbondated - Tier 2 on YT
Marek M. - Tier 1 Patron
Camp514 - Tier 1 Patron
Joshua Lee - Tier 1 Patron
Joris AKA JDawg - Tier 1 Patron
The BSD's Rock - Tier 1 Patron
Peter - Tier 1 Patron
Crucible - Tier 1 Patron
#vim #top5 #thelinuxcast
Пікірлер: 56
To go to the same place you were in a document after closing, use vim sessions. You issue a ":mksess!" and vim will drop a Session.vim file in your current directory. This will store all the docs you had open and where you were in them. Then when you start vim, do "vim -S" to take you back to exactly where you were.
I love Latex. Definitely can be overkill sometimes compared to markdown tho.
Your thumbnails are getting better the more you upload! Thumbs up for that!!!
@gamerking64
Жыл бұрын
@Ahk all the way! welcome :D
I've been using the vim-pencil plugin for navigating through text lines (not vim lines). As soon as it's activated, I can move from line to line in a paragraph , no extra configuration required. I hope this helps; thanks to your tiling WM ricing live streams, I've finally made some dotfiles I'm happy with after only a few weeks with linux. Your channel is a wealth of digestible information for beginners and I've been thoroughly enjoying your content since I've discovered it. Keep up the great content!
@007arek
2 жыл бұрын
Why don't just add bindings for that?
Thanks for the markdown auto-format info! I'd just started looking into that. Also for goyo, that's awesome! Here are some more that I've added for this specific purpose, including the long line navigation issue you mentioned. " Navigate up and down long lines with j and k nnoremap j gj nnoremap k gk " remap scrolling (up, down) noremap noremap " keep cursor in center of screen set so=999 " :set so=0 to turn off " jump to last position when opening file if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"")
Also install which-key , which helps you remember key shortcuts.
Another helpful video. Your comment, "I'm speaking American" at time stamp 09:33 reminded me of a book I have, called, "The American Language." I have the Fourth edition by H. L. Mencken, printed in 1937. It is a seven hundred plus page historical overview about the beginnings of U.S. English and all the words it adopted from other languages around the world. The first edition can be found and read for free online, at Project Gutenberg. Thanks. : )
Thank you, sir. This was helpful. We have a similar use case, and turns out most people aren't using these tools for writing.
These are great tips; thanks! I didn't even know Vim could do markup, and I use it pretty regularly.
you had the answer that I needed. Thank you so much!
Org Mode smiling in the background
You can use underscore instead of asterisk. Speach impediment circumvented 😁
Great video
The goyo plugin seems pretty interesting, I'll have to give that one a shot
@007arek
2 жыл бұрын
If you use neovim, maybe it's better to use a 'fork' of the goyo written in lua.
Thanks for the video Matt! LLAP
There are multiple issues (e.g. image support, gui-like statusline/bufferline support, minimap support) that just aren't possible in vim/neovim right now without some hacky workarounds. Emacs's GUI-specific capabilities still beat neovide(the most advanced neovim GUI), as its a gui-centric editor (as opposed to neovim, which is tui-centric and renders as a set grid). (c) one of the authors of neovide
I use vanilla vim. I found that the more plugins you install the more issues you have. So for a fast config edit I use vim and try to learn emacs for everything else.
@zeocamo
2 жыл бұрын
i use NeoVim with around 40 plugins to turn it into something more then a IDE for my coding
@gl0sek
2 жыл бұрын
@@zeocamo I'm not hating on vim plugins but I just don't have the patience to fix any issues that arise from them interfering each other...
@zeocamo
2 жыл бұрын
@@gl0sek fair, but i hope you get a little more patience then, there is a great world out there :)
@zeocamo
Жыл бұрын
@Ahk all the way! as long you ate on vscode, use the neovim plugin, it is better, it run neovim in the background and use vscode as a frontend.
Page navigation with ctrl-f and ctrl-b
@zeocamo
2 жыл бұрын
c-d for down and c-u for up, this will move a half page and this is easier to follow
This is useful and I can't into Vim, I suck lol. Really will keep this video close.
@zeocamo
2 жыл бұрын
just use vim for 1 week as the only tool if you can use it you do, then you start finding Vim easier to use then any thing else and after a mouth, you will be better with vim then any thing else
For distraction free writing you should consider using neovim with zen-mode. Also asciidoc is a lot more flexible and capable than markdown and slowly is becoming the standard.
Is it possible to use spectrWM with bumblebee-status?
@TheLinuxCast
2 жыл бұрын
I don’t think so. I think It’s only for i3.
I love that font, which is it?
@TheLinuxCast
2 жыл бұрын
That is GohuFont Nerd Font.
@jacksystems
2 жыл бұрын
@@TheLinuxCast Thank you very much :D btw, loved your video, I do a lot of writing for school, these tips will definitely come in useful, thanks for the great video as always.
It sounds to me like you should be using doom emacs and org mode
Not a big deal, but "LaTeX" is pronounced "Lah-tech", not "Lah-tex". The X at the end is a Greek Chi. By default, pandoc uses LaTeX as its backend when it converts to pdf.
Substitute Ctrl-B and Ctrl-F for PgUp and PgDn.
You forgot one very important tip. :! emacs
stop distracting me, with your videos!! =)
Dump vim and install emacs for Org mode, that's how.
@24wherath36
2 жыл бұрын
Or install Org mode in vim
@24wherath36
2 жыл бұрын
On an unrelated note; I clicked on your channel, and I gotta say I agree so much with your video on "the water bottle problem". Great video. I genuinely mean that.
@TheLinuxCast
2 жыл бұрын
No 😂
@nevoyu
2 жыл бұрын
@@TheLinuxCast yes
@camerontgore
2 жыл бұрын
@@nevoyu lol
Self abuse.