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

  • @noferblatz
    @noferblatz2 жыл бұрын

    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.

  • @danf4321
    @danf43212 жыл бұрын

    I love Latex. Definitely can be overkill sometimes compared to markdown tho.

  • @gamerking64
    @gamerking642 жыл бұрын

    Your thumbnails are getting better the more you upload! Thumbs up for that!!!

  • @gamerking64

    @gamerking64

    Жыл бұрын

    @Ahk all the way! welcome :D

  • @xx-ek7zk
    @xx-ek7zk2 жыл бұрын

    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

    @007arek

    2 жыл бұрын

    Why don't just add bindings for that?

  • @metadigm
    @metadigm2 жыл бұрын

    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("'\"")

  • @Mutombo71
    @Mutombo712 жыл бұрын

    Also install which-key , which helps you remember key shortcuts.

  • @lumarlee6093
    @lumarlee60932 жыл бұрын

    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. : )

  • @admiralmachine
    @admiralmachine2 жыл бұрын

    Thank you, sir. This was helpful. We have a similar use case, and turns out most people aren't using these tools for writing.

  • @ringo8410
    @ringo841010 ай бұрын

    These are great tips; thanks! I didn't even know Vim could do markup, and I use it pretty regularly.

  • @dvoraklovelace2801
    @dvoraklovelace2801 Жыл бұрын

    you had the answer that I needed. Thank you so much!

  • @pspiagicw
    @pspiagicw2 жыл бұрын

    Org Mode smiling in the background

  • @pskry
    @pskry2 жыл бұрын

    You can use underscore instead of asterisk. Speach impediment circumvented 😁

  • @Clintboyd
    @Clintboyd2 жыл бұрын

    Great video

  • @ghsinfosec
    @ghsinfosec2 жыл бұрын

    The goyo plugin seems pretty interesting, I'll have to give that one a shot

  • @007arek

    @007arek

    2 жыл бұрын

    If you use neovim, maybe it's better to use a 'fork' of the goyo written in lua.

  • @BrucesWorldofStuff
    @BrucesWorldofStuff2 жыл бұрын

    Thanks for the video Matt! LLAP

  • @MrCradleman
    @MrCradleman2 жыл бұрын

    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

  • @gl0sek
    @gl0sek2 жыл бұрын

    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

    @zeocamo

    2 жыл бұрын

    i use NeoVim with around 40 plugins to turn it into something more then a IDE for my coding

  • @gl0sek

    @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

    @zeocamo

    2 жыл бұрын

    @@gl0sek fair, but i hope you get a little more patience then, there is a great world out there :)

  • @zeocamo

    @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.

  • @vlmath314
    @vlmath3142 жыл бұрын

    Page navigation with ctrl-f and ctrl-b

  • @zeocamo

    @zeocamo

    2 жыл бұрын

    c-d for down and c-u for up, this will move a half page and this is easier to follow

  • @phonewithoutquestion80
    @phonewithoutquestion802 жыл бұрын

    This is useful and I can't into Vim, I suck lol. Really will keep this video close.

  • @zeocamo

    @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

  • @Mutombo71
    @Mutombo712 жыл бұрын

    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.

  • @eniojuniorschutt2828
    @eniojuniorschutt28282 жыл бұрын

    Is it possible to use spectrWM with bumblebee-status?

  • @TheLinuxCast

    @TheLinuxCast

    2 жыл бұрын

    I don’t think so. I think It’s only for i3.

  • @jacksystems
    @jacksystems2 жыл бұрын

    I love that font, which is it?

  • @TheLinuxCast

    @TheLinuxCast

    2 жыл бұрын

    That is GohuFont Nerd Font.

  • @jacksystems

    @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.

  • @Tn5421Me
    @Tn5421Me2 жыл бұрын

    It sounds to me like you should be using doom emacs and org mode

  • @kevinklement2621
    @kevinklement26212 жыл бұрын

    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.

  • @noferblatz
    @noferblatz2 жыл бұрын

    Substitute Ctrl-B and Ctrl-F for PgUp and PgDn.

  • @aryakiran256
    @aryakiran2562 жыл бұрын

    You forgot one very important tip. :! emacs

  • @bengoshi4
    @bengoshi42 жыл бұрын

    stop distracting me, with your videos!! =)

  • @nevoyu
    @nevoyu2 жыл бұрын

    Dump vim and install emacs for Org mode, that's how.

  • @24wherath36

    @24wherath36

    2 жыл бұрын

    Or install Org mode in vim

  • @24wherath36

    @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

    @TheLinuxCast

    2 жыл бұрын

    No 😂

  • @nevoyu

    @nevoyu

    2 жыл бұрын

    @@TheLinuxCast yes

  • @camerontgore

    @camerontgore

    2 жыл бұрын

    @@nevoyu lol

  • @untermench3502
    @untermench3502 Жыл бұрын

    Self abuse.

Келесі