text stringlengths 0 2.02k |
|---|
[861.42 --> 865.64] whatever was selected in visual mode would go into that as an argument that's pretty sweet yeah and |
[865.64 --> 870.38] that's the joy of vim right is that like all of us use it like you don't you all find out stuff you |
[870.38 --> 876.66] didn't know another joy of vim is that it's extremely customizable and has inspired a rich |
[876.66 --> 882.76] plugin community some people really get into plugins i install a lot of plugins i'm not gonna lie |
[882.76 --> 889.94] how many oh i don't know 40 or 50 i think probably probably more surely there you can whittle down |
[889.94 --> 893.78] and give me some of your must-haves like what are your favorite plugins what should people be checking |
[893.78 --> 900.70] out well probably on everyone's list i think is surround.vim by tim pope that feels so it feels so |
[900.70 --> 905.80] vim-ish that i kind of can't believe that it's not the default like core vim feels like that fits |
[905.80 --> 910.58] very nicely with the whole vim grammar and adds a very useful useful set of operations for you know |
[910.58 --> 914.74] deleting surrounding things adding surrounding things changing surrounding things it all feels |
[914.74 --> 921.48] very vim-ish another one by tim pope that i use a lot is fugitive which adds like git functionality |
[921.48 --> 927.26] and i love the way that that just gets out of your way it's it's there when you need it like if i want |
[927.26 --> 934.24] to do a git blame i can pull up git blame uh i don't want to have like git blame being sort of echoed on |
[934.24 --> 939.50] the line that my cursor is on all the time i find that really distracting and annoying yeah i like i like |
[939.50 --> 944.52] knowing that i can get to the information and git really easily and fugitive lets me do that here's |
[944.52 --> 951.04] a really tiny one that i i really enjoy using it's called exchange you can kind of take take two pieces |
[951.04 --> 955.72] of code and just swap them i find that really really useful it's something i i really miss when i don't |
[955.72 --> 962.00] have it i really like sort of adding new vocabulary to vim's grammar so uh my favorite way of doing that |
[962.00 --> 969.62] is by adding like custom text objects and there's a plugin by kana natsuno called vim textobj user and |
[969.62 --> 975.00] that's a kind of a meta plugin it's like a framework for adding more text objects so if you go to that |
[975.00 --> 979.92] the github page for that there's a page on the wiki where he links to lots of other custom text objects |
[979.92 --> 986.32] that people have have added and also in the space of like adding vocabulary that fits into the grammar |
[986.32 --> 992.90] i really miss having an operator for toggling comments uh that's again that's something that's |
[992.90 --> 997.58] not really built into vim i've tended to use commentary which is again by tim pope but there |
[997.58 --> 1001.16] are others out there i'm not sure if that's the best one to use at the moment but again that lets |
[1001.16 --> 1007.12] you do sort of an operator and then specify like a paragraph or a line or a function or whatever and |
[1007.12 --> 1013.32] it will comment it or uncomment it i find that really really useful but others like to keep it a |
[1013.32 --> 1019.32] little bit more out of the box i'm actually not a huge plugin user and people do still get kind of |
[1019.32 --> 1024.18] pushy with me i made the mistake of sharing my vim rc once on on github and somebody pre-requested me |
[1024.18 --> 1032.78] adding a new plugin and i was like that's just so out of context really weird and very just jarring |
[1032.78 --> 1036.74] trying to think of a world equivalent of that it's almost like you're at a restaurant and someone just |
[1036.74 --> 1041.00] walks up and puts some food on your plate or something yeah it's like you'd like this you should you |
[1041.00 --> 1046.02] should try i really like it exactly have the croissants here put this croissant on your plate |
[1046.02 --> 1052.70] eat that's fantastic fantastic analogy i love that such a weird thing to do yeah and so i think people |
[1052.70 --> 1056.64] are like disappointed that you know i don't use a lot of plugins and they're trying to help so i do |
[1056.64 --> 1062.08] use some basic plugins and my plugins in my personal time vary greatly from the plugins i use for work |
[1062.08 --> 1066.94] which is actually a really interesting distinction you know at home i have some basic plugins which are |
[1066.94 --> 1072.74] nerd tree so that i have a file browser and that's pretty ubiquitously used in the the vim community |
[1072.74 --> 1078.14] um and i have some code syntax highlighters which you know you sort of take for granted that you get |
[1078.14 --> 1082.40] them out of the box with things like sublime text and stuff like that but you know if you want something |
[1082.40 --> 1087.64] specific like jsx for example like vims not going to know what jsx was vim was written a long time ago |
[1087.64 --> 1092.48] um and so you do have to sometimes install custom things for react and view and like it's a it's |
[1092.48 --> 1097.38] definitely like a front-end problem right um and i'm assuming rust has the same thing um and then |
[1097.38 --> 1103.24] what else do i have very small list vim airline and that's mostly just trying to give nice aesthetics |
[1103.24 --> 1109.10] to my code editor so i'm excited to use it uh and it is it's it's pretty uh functional as well just |
[1109.10 --> 1113.82] gives you a nice looking status bar um i use git gutter and git gutter essentially it does what it |
[1113.82 --> 1119.00] says on the tin it gives you sort of get hints and things in the gutter next to your line numbers |
[1119.00 --> 1123.30] like which lines you've added which ones you've modified which ones are staged stuff like that |
[1123.30 --> 1129.04] cool so i want something really really minimal um a lot of people really love vim fugitive which is |
[1129.04 --> 1133.64] this kind of kitchen sink git plugin right it's like never leave vim and do all the git things |
[1133.64 --> 1138.26] inside yeah it's amazing and a lot of people really love that paradigm of never leave vim and i get it |
[1138.26 --> 1141.84] because if you hand it on the keyboard the whole time and you're not switching context it is actually |
[1141.84 --> 1147.18] a really nice feeling but it's just too heavy and i just i can't justify it you know i still like to have |
[1147.18 --> 1152.50] a separate terminal pain next to me via tmux to like do stuff in there and mess around same so i |
[1152.50 --> 1156.54] just use git gutter because it's minimal and it gives me exactly the information that i want to |
[1156.54 --> 1162.78] know on the fly which is very very helpful to me and i use ctrl p as my fuzzy search which uh |
[1162.78 --> 1166.60] admittedly is not super performant in really large code bases but it works perfectly fine for me |
[1166.60 --> 1173.00] personally and then at work i basically run ale which is like hooks into language engines and allows |
[1173.00 --> 1177.54] you to do things like you know linting within vim and highlighting certain lines that are wrong and |
[1177.54 --> 1183.08] having explanations as to why um and like auto formatting and that kind of thing so vim ale is |
[1183.08 --> 1187.68] fantastic because it supports different languages and it's particularly good with typescript so a lot |
[1187.68 --> 1193.90] of people at my job we have like a special internal documentation page on getting vim working with all of |
[1193.90 --> 1199.98] our stuff because vs code is kind of like the unofficially you know embraced uh editor and they always |
[1199.98 --> 1206.96] recommend installing ale for that reason so i do tend to run a heavier set of plugins at work just |
[1206.96 --> 1213.16] because it's just there's more complexity that i deal with in my day-to-day if suze's non-work setup |
[1213.16 --> 1220.12] sounds minimal to you you might describe gary's as bare bones i do use a few plugins but i'm also |
[1220.12 --> 1227.08] firmly on the side of avoiding them as much as you can especially as a beginner what you don't want to do |
[1227.08 --> 1231.68] is start with 50 vim plugins because then you're not learning vim you're learning this mess of |
[1231.68 --> 1237.86] plugins it doesn't match you know any other given vim user so today i use exactly eight plugins six of |
[1237.86 --> 1243.22] those are for language support so very basic stuff like syntax highlighting showing type errors and |
[1243.22 --> 1248.28] typescript that kind of stuff one of them is my color scheme so pretty boring and then the eighth one |
[1248.28 --> 1253.58] is like my one indulgence which is a plugin that slightly tweaks the way that search highlighting works |
[1253.58 --> 1260.66] but that's it so with the exception of language support i'm basically using bog standard vim with |
[1260.66 --> 1266.76] the exception of my vim rc which adds a few things the one plugin that i would recommend even a brand |
[1266.76 --> 1274.18] new vim user use is some kind of fuzzy file finder fzf is a very popular one very widely supported a lot |
[1274.18 --> 1278.66] it'll be easy to get support i use one called selecta that i wrote myself you can try that if you |
[1278.66 --> 1283.04] want i like its matching but of course it doesn't have all the support of something like fzf but you do |
[1283.04 --> 1286.28] want something like that if you if you're coming from another editor or otherwise you will be |
[1286.28 --> 1292.46] frustrated gary mentioned his vim rc if you're not familiar that's vim's configuration file which |
[1292.46 --> 1297.88] people also tweak to the hilt and often share online for others to take as inspiration or sometimes |
[1297.88 --> 1305.08] copy whole cloth my vim rc has a section titled basic editing configuration and if you're just |
[1305.08 --> 1310.50] starting and you want a slightly more sort of modern take on vim config you could copy just that section |
[1310.50 --> 1313.80] not my whole vim rc you don't want the whole thing but just the basic editing configuration |
[1313.80 --> 1321.28] and that will change some of the defaults that are honestly old and not desirable nowadays but it's |
[1321.28 --> 1325.78] still pretty small it's under 100 lines including comments i don't actually know what setting in my |
[1325.78 --> 1330.56] vim rc does this but i know that when i open a file it goes to where i was the last time i was in |
[1330.56 --> 1336.02] that file like it jumps to my last position and i really love that even like the column in the line |
[1336.02 --> 1340.76] i think the column definitely the line yeah and maybe the column i'm not so bothered honestly |
[1340.76 --> 1345.56] sure even if it's not but yeah definitely at least the line and i just love that feeling of like |
[1345.56 --> 1351.58] if i accidentally close a file and i open it i can just like undo you know even if i already close the |
[1351.58 --> 1357.30] editor is your vim rc out there so we could link it it's it's out there yeah it's really extremely |
[1357.30 --> 1362.04] based on this thing called basic.vim which i would probably recommend using over my vim rc because |
[1362.04 --> 1368.62] mine mostly has extra garbage in it in addition to what's in there like i think basic.vim is good |
[1368.62 --> 1372.70] and my stuff just has some nonsense that i added in there |
[1372.70 --> 1381.64] many vim users will lug their must-have plugins and their personalized config with them to every |
[1381.64 --> 1386.94] machine they use but that desire to have your vim set up with you wherever you go extends even |
[1386.94 --> 1394.36] further vim mode is a thing this is where other editors productivity programs and web apps mirror |
[1394.36 --> 1399.58] vim's command mode in an attempt to make the vim faithful feel more comfortable in a different |
[1399.58 --> 1406.16] environment you'll find vim mode in sublime text vs code and even emacs then there's vimium a google |
[1406.16 --> 1410.78] chrome extension which lets you browse the web like it's vim and of course web apps like gmail |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.