Vimrc and Vim Plug-In Overview

Ғылым және технология

Absolutely everything you're looking for is here:
lukesmith.xyz

Пікірлер: 129

  • @cui3931
    @cui39315 жыл бұрын

    Adding a figlet title on every dot file is like drawing a heart on top of each "i".

  • @coompiler9029

    @coompiler9029

    3 жыл бұрын

    People who have neofetch in their .bashrc/.zshrc: *Pathetic*

  • @RudyHill
    @RudyHill5 жыл бұрын

    Luke's Tech Tips TM

  • @TehKorwinMikke
    @TehKorwinMikke5 жыл бұрын

    you can save up to 2/3 keystrokes with `alias e='vim'` in .bashrc

  • @demian1951
    @demian19515 жыл бұрын

    That's the thing i like about vim - using it for a long time and now i have some new good ideas for my own vimrc from someone who loves it too :) there is always something that is usefull that you didnt think about

  • @marcelocortez3312
    @marcelocortez33124 жыл бұрын

    I felt like a pro adding "set number" to mi vimrc and then your video... Damn.

  • @cunningham.s_law
    @cunningham.s_law4 жыл бұрын

    I can't seem to find the video where you explain how to get latex live preview without the plugin by piping the file to zathura

  • @astrochelonian
    @astrochelonian5 жыл бұрын

    Assuming you don't run the compiler script from the command line too often, have you considered simply using after/ scripts in vim to set makeprg appropriately?

  • @logandungeon3385
    @logandungeon33855 жыл бұрын

    To address the "remove trailing whitespace" option: Doesn't this destroy your markdown files? Or do you not use the double space linebreaks?

  • @ReneHoffmann194
    @ReneHoffmann1945 жыл бұрын

    The remove trailing whitespace command has a flaw. When saving the position of the cursor changes to where a whitespace was replaced. Is there a fix/workaround for that? Couldn't figure one out by myself.

  • @larslelove8189
    @larslelove81895 жыл бұрын

    Thank you so much, this is awesome

  • @0.1X-Engineer
    @0.1X-Engineer5 жыл бұрын

    This whole video makes you look like Cypher from the matrix movie

  • @romeo.mike.365

    @romeo.mike.365

    5 жыл бұрын

    ...I don't even see the code. All I see is blonde, brunette, redhead....

  • @gekkou7374

    @gekkou7374

    4 жыл бұрын

    ....it is him.... and we are in the matrix D:

  • @justinsuvoy

    @justinsuvoy

    3 жыл бұрын

    Cypher wanted that steak!!!😎

  • @AhmedKhaled-sj1zx
    @AhmedKhaled-sj1zx5 жыл бұрын

    Sooo clean. I like it. Emacs user here :P

  • @DrFizzyQuizzler
    @DrFizzyQuizzler4 жыл бұрын

    where did you find the Bold header that you use for your Vimrc and bashrc? I have seen them in several of you videos and would like to know where you got them?

  • @Slime181
    @Slime1815 жыл бұрын

    didn't you use vimtex or vim-latex at one point?

  • @kaize3851
    @kaize38515 жыл бұрын

    What happened with live latex preview plug-in?

  • @douwehuysmans5959
    @douwehuysmans59595 жыл бұрын

    Will you upload a tutorial on ed?

  • @rochr4
    @rochr44 жыл бұрын

    'set number relativenumber' is excelent, thanks! :)

  • @2Worlds_and_InBetween

    @2Worlds_and_InBetween

    3 жыл бұрын

    yes it is... it could be said im an older user... cos, i started with line numbers as a kid and still need them now

  • @leonardozerino9628
    @leonardozerino96284 жыл бұрын

    how the hell do you use deadkeys in st? or in urxvt. I still couldnt figure how enable dead keys on the simpler terminals

  • @lolisamurai
    @lolisamurai5 жыл бұрын

    another nice way to detect trailing whitespace and other whitespace you don't want is set listchars=tab:>~,nbsp:_,trail:. set list this will highlight tabs, non-breaking whitespace and trailing whitespace. the only downside is that you have to switch it over to tabs when you work with code where tabs are used set listchars=tab:\ \ ,nbsp:_,trail:. set list

  • @MA790XT
    @MA790XT5 жыл бұрын

    I would be interested how you take notes. Do you have a Latex/Markdown Document for a Formula or something else you would like to note/remind?

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    I don't take notes.

  • @MrHatoi
    @MrHatoi5 жыл бұрын

    Why do you use a special character plugin instead of just using a compose key (like right alt)?

  • @danplt
    @danplt2 жыл бұрын

    How do you edit files which have text in language that needs complex font rendering, like Bengali

  • @ClaudioRoncaglio
    @ClaudioRoncaglio5 жыл бұрын

    Luke, you're the only vim user on the planet without a Tim Popes plugin! ;)

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    Yeah I used to have surround, which I guess it very useful, but I just never got in the habit of using it.

  • @kendawg_mcawesome
    @kendawg_mcawesome5 жыл бұрын

    Jeez, I'm gonna make one of those Emacs videos for you, y'all need to get on that shit.

  • @user-ic7cj8lq9z
    @user-ic7cj8lq9z5 жыл бұрын

    I do a lot of html files, good idea to automatically put the html character codes

  • @barneyzephirin-belle554
    @barneyzephirin-belle5545 жыл бұрын

    Im trying to setup autocmd snippets similar and its not working... what do i need

  • @cam2291
    @cam22915 жыл бұрын

    dad

  • @b4ssripper
    @b4ssripper5 жыл бұрын

    Main issue with someone starting fresh with vim - they tend to install bunch of plugins/using others vimrc files without actually knowing what these settings do. Afterwards, without any organization file become so cumbersome that sometimes not only the owner of this file could not understand it, even daily vim users may wonder why they use some of deprecated or unused settings that hogs program boot time and just being unnecessary. (Also i don't know who wrote all that up ☝️ikr im pretty bad at english)

  • @frankliuao
    @frankliuao5 жыл бұрын

    Hi thanks for the video!! May I ask what software you used to record your screen and the webcam at the same time?

  • @minhajshovon9789

    @minhajshovon9789

    4 жыл бұрын

    he uses ffmpeg for screen recording and mpv to play his webcam feed.

  • @cla041054
    @cla0410545 жыл бұрын

    I am now using vim8 native plugin manager, it is the easiest one to use and most robust(for me)

  • @GfastGao
    @GfastGao5 жыл бұрын

    Hi Luke, I love you. Ist that the performance issue bottlenecked you to make video only up to 720p? or you believe this is just fine?

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    I don't record on a 1080p screen, so that's why there's no 1080p option.

  • @code8860
    @code88603 жыл бұрын

    Just asking: is not vim-fugitive good enough?

  • @InNominePraxis
    @InNominePraxis5 жыл бұрын

    What's the purpose of the in your compilation bindings? I guess you're hitting redo but y tho

  • @InNominePraxis

    @InNominePraxis

    5 жыл бұрын

    Your compilation script is good stuff man, i made a few tweaks to auto open and/or refresh pdf upon compilation since i never want to compile without seeing what is actually happening. .vimrc: autocmd VimLeave *.tex !~/.local/bin/compiler.sh % vimleave compile.sh: if [ "$2" == "" ]; then pdflatex "$1" # Open corresponding .pdf document if not already open. Otherwise, # reload .pdf file by sending an 'r' keypress via xdotool. if [ ! $(pgrep -f "mupdf-x11 .*($file).pdf") ]; then mupdf-x11 $(echo "$1" | sed 's/tex$/pdf/') & disown else xdotool search --name "$file".pdf | xargs -I "$file".pdf xdotool key --window "$file".pdf r fi elif [ "$2" == "vimleave" ]; then # Close corresponding .pdf document if open. [ ! $(pgrep -f "mupdf-x11 .*($file).pdf") ] && exit 0 || xdotool search --name "$file".pdf | xargs -I "$file".pdf xdotool key --window "$file".pdf q fi

  • @lpanebr
    @lpanebr3 жыл бұрын

    How do you manage your bibliography? I mean when you came across a PDF or website online, how do you get the information saved and file stored?

  • @lpanebr

    @lpanebr

    3 жыл бұрын

    Nevermind. I just found it at kzread.info/dash/bejne/nad1yM-DlsfbkpM.html thanks for the great content!

  • @christbaumer
    @christbaumer4 жыл бұрын

    What are the advantages of Vimling over just XCompose?

  • @LeonidBraynerMyshkin
    @LeonidBraynerMyshkin5 жыл бұрын

    Vim has packages since 8.0. You only need these plugin managers as a fallback in case you're managing a CentOS server or something.

  • @liamattard3899
    @liamattard38994 жыл бұрын

    How does he keep the vim terminal floating without a border?

  • @shuvojitkarmakar1249
    @shuvojitkarmakar12493 жыл бұрын

    I don't see the snippets anymore in your init.vim file in your GitHub

  • @biku1998
    @biku19985 жыл бұрын

    Which Linux distro are you using ?

  • @Gabriel-to8uo
    @Gabriel-to8uo5 жыл бұрын

    wildmode is enabled by default on new installations of Vim I think? At least when I was showing it to my brother on his computer it let me autocomplete stuff

  • @Egzvorg

    @Egzvorg

    5 жыл бұрын

    it was probably set in defaults.vim which is not loaded if you have any .vimrc

  • @-XArchLinuxEnjoyerX-
    @-XArchLinuxEnjoyerX-5 жыл бұрын

    Hey, can someone please tell me where to get the shellcheck program he uses? For me it says command not found. Thanks

  • @minhajshovon9789

    @minhajshovon9789

    4 жыл бұрын

    :set spell!

  • @Eryn321
    @Eryn3214 жыл бұрын

    when you coming back! I know they got internet in that small town you moved to!

  • @tomtomtomtom691
    @tomtomtomtom6915 жыл бұрын

    Until you write your own compiler, it’s an amateur project. Holy C.

  • @TheJamesconroy
    @TheJamesconroy5 жыл бұрын

    How do you use tmux? I've looked at your config but couldn't find the super key.

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    I don't use tmux except as a dropdown terminal (super+u). I do all my real tiling in i3.

  • @rolandicus1771
    @rolandicus17715 жыл бұрын

    Use ALE with shellcheck it does the shellcheck inline and marks the lines. Works good. What about bash-support? That does good for code snippets

  • @klaskycsupo121
    @klaskycsupo1215 жыл бұрын

    Great video. I am having trouble setting vim as c/c++ ide. Could you make tutorial on that?

  • @alex_hiller

    @alex_hiller

    5 жыл бұрын

    You will want to install UltiSnips (to make quickly editable and expandable pieces of code) and the ALE linting plugins (for good code practices). I then use a short script to compile the current file and bind it to r.

  • @xinruizhong3096
    @xinruizhong30964 жыл бұрын

    maybe you can make videos about code-completion and LSP---language server protocol . Thanks .

  • @dmmeteo
    @dmmeteo5 жыл бұрын

    Did u try SpaceVim?

  • @mayurravindra9433
    @mayurravindra94333 жыл бұрын

    What is leader?

  • @BrunusRicieri
    @BrunusRicieri5 жыл бұрын

    Waiting for the video: vim is bloated, only use nvi XD

  • @2Worlds_and_InBetween

    @2Worlds_and_InBetween

    3 жыл бұрын

    #Vi ftw

  • @daveshouldaine2520

    @daveshouldaine2520

    3 жыл бұрын

    ed is standard editor for UNIX

  • @vison360
    @vison3605 жыл бұрын

    Still hoping for Kakoune review

  • @petewest3122
    @petewest31225 жыл бұрын

    what is ?

  • @TheJamesconroy

    @TheJamesconroy

    5 жыл бұрын

    Pete West is a variable holding a key. Luke's leader is space, but by default it is one of the slashes, "\" I think.

  • @petewest3122

    @petewest3122

    5 жыл бұрын

    @@TheJamesconroy Thanks, James.

  • @mkd1113
    @mkd11135 жыл бұрын

    Why don't you use ed, the standard unix text editor.

  • @jakestewart9798

    @jakestewart9798

    4 жыл бұрын

    i'd like to interject for a moment. "vi" is the "vi"sual editor for ed and vim is just vi improved. The commands used in ed also work in vim, so in a sense he is actually using ed.

  • @minhajshovon9789

    @minhajshovon9789

    4 жыл бұрын

    spoiler: he will start using neovim

  • @legorockfan9
    @legorockfan95 жыл бұрын

    How do I learn to become a VIM god?

  • @2Worlds_and_InBetween

    @2Worlds_and_InBetween

    3 жыл бұрын

    practice practice... vim tutor practice yt vids practice practice vim tutor practicepracticepracticepracticepracticepracticepracticepractice ive been using vim for a while now and I still learn new stuff every time I use it

  • @MultiCGU
    @MultiCGU5 жыл бұрын

    Why not use NeoVim?

  • @quebono100

    @quebono100

    5 жыл бұрын

    vim is legend :)

  • @kycurtis
    @kycurtis5 жыл бұрын

    well I feel splitbelow and splitright are counterintuitive for me... I like to be splitted above and left.

  • @falafelfajt
    @falafelfajt5 жыл бұрын

    sam editor when?

  • @TOn-fx2gr
    @TOn-fx2gr4 жыл бұрын

    When i am on tmux i loose my vim plugins theme ....... Can someone help pls

  • @feschber

    @feschber

    3 жыл бұрын

    just in case you haven't figured that out already: its probably because tmux doesn't support 256 colors by default. unix.stackexchange.com/questions/1045/getting-256-colors-to-work-in-tmux TLDR: ~$ which tmux tmux: aliased to TERM=xterm-256color tmux set -g default-terminal "screen-256color"

  • @Jeremy-su3xy
    @Jeremy-su3xy4 жыл бұрын

    I don't know how to configure the rc file.

  • @feschber

    @feschber

    3 жыл бұрын

    :e $MYVIMRC

  • @exebixel
    @exebixel4 жыл бұрын

    what the color scheme?

  • @jankodedic3130
    @jankodedic31305 жыл бұрын

    Why don't you use fugitive? It's much better than vimagit..

  • @fantoroVEVO
    @fantoroVEVO5 жыл бұрын

    wait what I thought you switched over to emacs

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    The only reliable benefit of using emacs is that people would stop nagging me to use emacs.

  • @fantoroVEVO

    @fantoroVEVO

    5 жыл бұрын

    @@LukeSmithxyz oh ok honestly I should get back to watching you more because last video I watched was with you using emacs lol and your content is really enjoyable

  • @LukeSmithxyz

    @LukeSmithxyz

    5 жыл бұрын

    Well I've never used emacs in a video here.

  • @fantoroVEVO

    @fantoroVEVO

    5 жыл бұрын

    @@LukeSmithxyz Hmm seems like my memory is getting rusty oof

  • @TehKorwinMikke

    @TehKorwinMikke

    5 жыл бұрын

    @@LukeSmithxyz Vimmachines will nag you much harder than emarcsists if you were to switch.

  • @pharmokan
    @pharmokan4 жыл бұрын

    system paste register in terminal using vim ftl

  • @rexevan6714
    @rexevan67145 жыл бұрын

    *shebang*

  • @princesinha284
    @princesinha2845 жыл бұрын

    How to search for plugins?

  • @theemacsen1518

    @theemacsen1518

    4 жыл бұрын

    vim awesome

  • @ianpan0102
    @ianpan01025 жыл бұрын

    [ Emacs User Alert! ] The biggest problem with Vim keybindings that I could think of is that it really gets deep in your brain, and you'll not be able to effectively edit text on other software or platform without constantly reminding yourself NOT to use 'hjkl' to navigate or press 'i' and 'ESC' to hop in and out of Insert Mode. While with Emacs bindings all the navigating shortcuts are prefixed with Ctrl or Meta (Alt) and can be ported to different platforms once you get used to it!

  • @yepsan95

    @yepsan95

    Жыл бұрын

    What about the pinky injuries

  • @matj12
    @matj125 жыл бұрын

    Why do you have your accented characters automatically converted to HTML ecape sequences? IMO escape sequences are for those who can't type the actual characters, so converting the actual characters to escape sequences is pointless.

  • @harshtiwari9588
    @harshtiwari95885 жыл бұрын

    what do you think about space-vim?

  • @theemacsen1518

    @theemacsen1518

    4 жыл бұрын

    trash dont use it lmao

  • @rexevan6714
    @rexevan67145 жыл бұрын

    Vim itself is bloated, use neovim instead.

  • @rolandicus1771

    @rolandicus1771

    5 жыл бұрын

    Vim 8 has asynchronous support also :terminal now. What's neovim got removed that bloats vim?

  • @HiPhish

    @HiPhish

    5 жыл бұрын

    ​@@rolandicus1771 1) Neovim has removed all the code for all the dead systems that wouldn't be able to run Vim anyway. 2) Neovim can be retrofitted with other languages without recompiling it every time 3) Lua as an alternative to VimScript 4) Neovim separates the interface from the editor 5) Neovim has an API 6) Neovim does it better :P About 1), this removes tons of code that doesn't do anything anyway. I know they also replaced some parts of Vim's own code with libraries, which should at least in theory make it more maintainable, but you will have to ask the devs about details. About 2), if you want to write a Vim plugin in for example Python you need to compile Vim with Python embedded. That's not a big deal for something as common as Python, but it is a big problem for other languages. Either your package manager offers an option, or you will have to get all the dependencies and compile it yourself. And not just that, now support for that language is tied to Vim's development, adding yet another maintenance burden. In Neovim support for other languages can be just retrofitted. Want to write a plugin in your obscure pet language? Just hook up the API client and you're good to go. I even wrote my own for Racket (a type of Lisp), you can find the whole list here: github.com/neovim/neovim/wiki/Related-projects#api-clients This alone removes tons of bloat and maintenance nightmare out of the editor. I can update and maintain my Racket client completely at my own pace instead of being tied down to Neovim's release schedule. About 3), VimScript is not going anywhere, and it's a good language for what it is meant to be: a configuration language for a text editor. But if you want to do more complicated stuff, Lua is a better choice. About 4), just as support for plugins in other languages can be retrofitted, so can a GUI be retrofitted. The GUI is really just a plugin. Lots of interesting stuff, you can even embed Neovim into another editor or IDE. So even if you are forced to use a certain IDe at work, you could just embed Neovim into it and have the real things instead of an approximation. github.com/neovim/neovim/wiki/Related-projects#gui About 5), this is the killer feature for plugin authors. If you have ever written a plugin for Vim you will know how to accomplish the simplest of tasks you will have to go through a series of rituals. The API gives a set of primitive building blocks to work with, so you no longer need to sacrifice a virgin goat on a full moon to set an option in a buffer that is not the current one. Even if you don't write full plugins, the API can allow you to write much nicer mappings. I really regret not making Info.vim just Neovim-only and using the API. About 6), that one is intentionally provocative :) But seriously, all the features Vim copied, it copied in an incompatible and worse manner. There is no reason to use JSON over MessagePack, it's slower and uses more memory. People who have worked with both editors agree that Neovim's way is easier to work with.

  • @desktorp

    @desktorp

    5 жыл бұрын

    @@HiPhish The best sales pitch I've ever read and it's for a free program.

  • @rolandicus1771

    @rolandicus1771

    5 жыл бұрын

    @@HiPhish neovim sounds the balls for development. I use vim for bash scripting so I guess in that respect its available on most servers I bother so it's fine. Enjoy the neovim silver ship as you glide through the high altitudes ;)

  • @2Worlds_and_InBetween

    @2Worlds_and_InBetween

    3 жыл бұрын

    in 20 years time I expect to hear the same arguments again, like last time

  • @nngogol244
    @nngogol2445 жыл бұрын

    Luke, can you create a scenario, where you use VIM, tmux, htop and other tools for fun? I just always wanted to use this awesome "pro"-looking quick-flickering screen porn with hotkeys etc. Don't worry, I want to see this JUST for fun. IRL I code in good mood and jerk of screen with tmux.

  • @margielamadman
    @margielamadman5 жыл бұрын

    can i get your vim dotfiles

  • @Ben7o711X
    @Ben7o711X3 жыл бұрын

    the master / slave terminology borrowed from the lexical field of slavery is offensive and obsolete. The Main / secondary terminology is likely the technical replacement. That being said, I am not giving you a trial of intent.

  • @tristanbellingham6759
    @tristanbellingham67595 жыл бұрын

    I use pathogen because I am not a coward ty

  • @monadstack
    @monadstack5 жыл бұрын

    Hi mr, lemme save ur videos offline for understand more. Lacks of internet data here.

  • @Andre-bi3gq
    @Andre-bi3gq5 жыл бұрын

    5:00 or you could use themouse...

  • @spagootest2185

    @spagootest2185

    5 жыл бұрын

    You never realize how fast you are with a keyboard until you use shortcuts.

  • @soveu8237
    @soveu82375 жыл бұрын

    I am a simple man, I see someone using Go, I click upvote

  • @MrPiapple
    @MrPiapple4 жыл бұрын

    Why not just use number instead of relative number, and :number to change the line

  • @valentjedi
    @valentjedi5 жыл бұрын

    Ё

  • @Ololoshaish
    @Ololoshaish5 жыл бұрын

    second

  • @neon8940
    @neon89403 жыл бұрын

    vimrc github.com/LukeSmithxyz/voidrice/blob/master/.vimrc not found (

  • @shahratinmahmud
    @shahratinmahmud3 жыл бұрын

    simon allerdice wannabe?

  • @chopcooey
    @chopcooey5 жыл бұрын

    vim is harmful software though

Келесі