No video

Vimrc and Vim Plug-In Overview

  Рет қаралды 111,744

Luke Smith

Luke Smith

Күн бұрын

Пікірлер: 129
@cui3931
@cui3931 5 жыл бұрын
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
@RudyHill 5 жыл бұрын
Luke's Tech Tips TM
@TehKorwinMikke
@TehKorwinMikke 5 жыл бұрын
you can save up to 2/3 keystrokes with `alias e='vim'` in .bashrc
@0.1X-Engineer
@0.1X-Engineer 5 жыл бұрын
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!!!😎
@demian1951
@demian1951 5 жыл бұрын
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
@ClaudioRoncaglio
@ClaudioRoncaglio 5 жыл бұрын
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.
@marcelocortez3312
@marcelocortez3312 4 жыл бұрын
I felt like a pro adding "set number" to mi vimrc and then your video... Damn.
@rochr4
@rochr4 4 жыл бұрын
'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
@cam2291
@cam2291 5 жыл бұрын
dad
@b4ssripper
@b4ssripper 5 жыл бұрын
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)
@AhmedKhaled-sj1zx
@AhmedKhaled-sj1zx 5 жыл бұрын
Sooo clean. I like it. Emacs user here :P
@kendawg_mcawesome
@kendawg_mcawesome 5 жыл бұрын
Jeez, I'm gonna make one of those Emacs videos for you, y'all need to get on that shit.
@douwehuysmans5959
@douwehuysmans5959 5 жыл бұрын
Will you upload a tutorial on ed?
@MA790XT
@MA790XT 5 жыл бұрын
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.
@tomtomtomtom691
@tomtomtomtom691 5 жыл бұрын
Until you write your own compiler, it’s an amateur project. Holy C.
@user-ic7cj8lq9z
@user-ic7cj8lq9z 5 жыл бұрын
I do a lot of html files, good idea to automatically put the html character codes
@astrochelonian
@astrochelonian 5 жыл бұрын
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
@logandungeon3385 5 жыл бұрын
To address the "remove trailing whitespace" option: Doesn't this destroy your markdown files? Or do you not use the double space linebreaks?
@LeonidBraynerMyshkin
@LeonidBraynerMyshkin 5 жыл бұрын
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.
@lolisamurai
@lolisamurai 5 жыл бұрын
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
@larslelove8189
@larslelove8189 5 жыл бұрын
Thank you so much, this is awesome
@jankodedic3130
@jankodedic3130 5 жыл бұрын
Why don't you use fugitive? It's much better than vimagit..
@Slime181
@Slime181 5 жыл бұрын
didn't you use vimtex or vim-latex at one point?
@DrFizzyQuizzler
@DrFizzyQuizzler 4 жыл бұрын
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?
@GfastGao
@GfastGao 5 жыл бұрын
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.
@cunningham.s_law
@cunningham.s_law 5 жыл бұрын
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
@kaize3851
@kaize3851 5 жыл бұрын
What happened with live latex preview plug-in?
@ReneHoffmann194
@ReneHoffmann194 5 жыл бұрын
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.
@shuvojitkarmakar1249
@shuvojitkarmakar1249 3 жыл бұрын
I don't see the snippets anymore in your init.vim file in your GitHub
@BrunusRicieri
@BrunusRicieri 5 жыл бұрын
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
@fantoroVEVO
@fantoroVEVO 5 жыл бұрын
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.
@legorockfan9
@legorockfan9 5 жыл бұрын
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
@frankliuao
@frankliuao 5 жыл бұрын
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.
@InNominePraxis
@InNominePraxis 5 жыл бұрын
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
@lpanebr 3 жыл бұрын
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 kzfaq.info/get/bejne/odlxmdB7y8rZkmQ.html thanks for the great content!
@petewest3122
@petewest3122 5 жыл бұрын
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.
@Gabriel-to8uo
@Gabriel-to8uo 5 жыл бұрын
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
@Eryn321
@Eryn321 5 жыл бұрын
when you coming back! I know they got internet in that small town you moved to!
@christbaumer
@christbaumer 4 жыл бұрын
What are the advantages of Vimling over just XCompose?
@MultiCGU
@MultiCGU 5 жыл бұрын
Why not use NeoVim?
@quebono100
@quebono100 5 жыл бұрын
vim is legend :)
@danplt
@danplt 3 жыл бұрын
How do you edit files which have text in language that needs complex font rendering, like Bengali
@MrHatoi
@MrHatoi 5 жыл бұрын
Why do you use a special character plugin instead of just using a compose key (like right alt)?
@klaskycsupo121
@klaskycsupo121 5 жыл бұрын
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.
@falafelfajt
@falafelfajt 5 жыл бұрын
sam editor when?
@mkd1113
@mkd1113 5 жыл бұрын
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
@cla041054
@cla041054 5 жыл бұрын
I am now using vim8 native plugin manager, it is the easiest one to use and most robust(for me)
@leonardozerino9628
@leonardozerino9628 4 жыл бұрын
how the hell do you use deadkeys in st? or in urxvt. I still couldnt figure how enable dead keys on the simpler terminals
@rolandicus1771
@rolandicus1771 5 жыл бұрын
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
@code8860
@code8860 4 жыл бұрын
Just asking: is not vim-fugitive good enough?
@barneyzephirin-belle554
@barneyzephirin-belle554 5 жыл бұрын
Im trying to setup autocmd snippets similar and its not working... what do i need
@liamattard3899
@liamattard3899 4 жыл бұрын
How does he keep the vim terminal floating without a border?
@rexevan6714
@rexevan6714 5 жыл бұрын
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
@vison360
@vison360 5 жыл бұрын
Still hoping for Kakoune review
@biku1998
@biku1998 5 жыл бұрын
Which Linux distro are you using ?
@ianpan0102
@ianpan0102 5 жыл бұрын
[ 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
@xinruizhong3096
@xinruizhong3096 5 жыл бұрын
maybe you can make videos about code-completion and LSP---language server protocol . Thanks .
@matj12
@matj12 5 жыл бұрын
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.
@dmmeteo
@dmmeteo 5 жыл бұрын
Did u try SpaceVim?
@TheJamesconroy
@TheJamesconroy 5 жыл бұрын
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.
@rexevan6714
@rexevan6714 5 жыл бұрын
*shebang*
@-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!
@Jeremy-su3xy
@Jeremy-su3xy 4 жыл бұрын
I don't know how to configure the rc file.
@feschber
@feschber 3 жыл бұрын
:e $MYVIMRC
@kycurtis
@kycurtis 5 жыл бұрын
well I feel splitbelow and splitright are counterintuitive for me... I like to be splitted above and left.
@mayurravindra9433
@mayurravindra9433 3 жыл бұрын
What is leader?
@exebixel
@exebixel 4 жыл бұрын
what the color scheme?
@Ben7o711X
@Ben7o711X 3 жыл бұрын
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.
@pharmokan
@pharmokan 4 жыл бұрын
system paste register in terminal using vim ftl
@TOn-fx2gr
@TOn-fx2gr 4 жыл бұрын
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"
@margielamadman
@margielamadman 5 жыл бұрын
can i get your vim dotfiles
@princesinha284
@princesinha284 5 жыл бұрын
How to search for plugins?
@theemacsen1518
@theemacsen1518 5 жыл бұрын
vim awesome
@nngogol244
@nngogol244 5 жыл бұрын
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.
@harshtiwari9588
@harshtiwari9588 5 жыл бұрын
what do you think about space-vim?
@theemacsen1518
@theemacsen1518 5 жыл бұрын
trash dont use it lmao
@monadstack
@monadstack 5 жыл бұрын
Hi mr, lemme save ur videos offline for understand more. Lacks of internet data here.
@tristanbellingham6759
@tristanbellingham6759 5 жыл бұрын
I use pathogen because I am not a coward ty
@Andre-bi3gq
@Andre-bi3gq 5 жыл бұрын
5:00 or you could use themouse...
@spagootest2185
@spagootest2185 5 жыл бұрын
You never realize how fast you are with a keyboard until you use shortcuts.
@MrPiapple
@MrPiapple 4 жыл бұрын
Why not just use number instead of relative number, and :number to change the line
@soveu8237
@soveu8237 5 жыл бұрын
I am a simple man, I see someone using Go, I click upvote
@neon8940
@neon8940 3 жыл бұрын
vimrc github.com/LukeSmithxyz/voidrice/blob/master/.vimrc not found (
@valentjedi
@valentjedi 5 жыл бұрын
Ё
@shahratinmahmud
@shahratinmahmud 3 жыл бұрын
simon allerdice wannabe?
@Ololoshaish
@Ololoshaish 5 жыл бұрын
second
@chopcooey
@chopcooey 5 жыл бұрын
vim is harmful software though
A Vid in which Vim Saves Me Hours & Hundreds of Clicks
10:23
Luke Smith
Рет қаралды 275 М.
Why Vim Doesn't Need the Mouse
11:34
Luke Smith
Рет қаралды 85 М.
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,1 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 49 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 27 МЛН
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН
Some bashrc recommendations and what I use
19:17
Luke Smith
Рет қаралды 114 М.
Linux Terminal: Get Memory, Temp, CPU & Make Them Useful!
16:59
Luke Smith
Рет қаралды 93 М.
Vim Tips You Probably Never Heard of
12:11
Luke Smith
Рет қаралды 117 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 412 М.
Why use Vim plugins, Write it yourself
27:30
Jake@Linux
Рет қаралды 4,8 М.
SC-IM: Vim-based Terminal Spreadsheet Editor!
13:00
Luke Smith
Рет қаралды 98 М.
NeoVim Plugins You Don't Want To Miss
22:16
NeuralNine
Рет қаралды 88 М.
zathura: A vim-based minimalist PDF/djvu/ps/epub/comic book reader
14:40
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,1 МЛН