Тёмный
No video :(

Vim's Built In Completion Awesome, And You Can Make It Better! 

Gavin Freeborn
Подписаться 12 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

12 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@victornaut
@victornaut 3 года назад
I've been using Vim for a good 3 years on Windows now and this is the only thing that actually works for me. None of that deoplete, YouCompleteMe, WeCompleteEachOther stuff requiring 12 versions of Python, Lua and when you get everything you find out you needed NTS PHP 7.3 to make the legacy language server work but it actually doesn't, because the extension needed to make it work only works on Linux. I don't know if you created this, but jeez I hope to donate soon!
@GavinFreeborn
@GavinFreeborn 3 года назад
If you are referring to creating mucomplete no I didn't. It's just one of those great projects that deserves more love.
@JustSomeAussie1
@JustSomeAussie1 3 года назад
I use vim on windows (under WSL) and coc works perfectly fine. Took like 10 minutes to set up
@pcache
@pcache 3 года назад
I've been sitting on my suckless arch setup for almost a year now, but every now and then there comes a time where you discover a whole new realm of possibilities and customizations to be made. I found your channel just today because of groff tutorials, but oh boy, you have some eye-opening content here and I can already tell I'll be going down the joyful spiral of reconfiguring my workflow once again. For that I thank you very much, and you've earned an honorable spot on my RSS subscription list. Cheers!
@GavinFreeborn
@GavinFreeborn 3 года назад
Thanks for the kind words. Happy you like the content there is plenty more where that came from.
@PestisNonSapien_GMO_exHuman
@PestisNonSapien_GMO_exHuman 3 года назад
One of the best vim videos I've seen in awhile. Subscribed.
@theena
@theena 2 года назад
Haven't finished watching, but I want to say thank you already.
@ajay--yadav
@ajay--yadav 3 года назад
This video was so cool and informative that I was forced to subscribe your channel. The channel has also some pretty awesome stuffs about vim, groff, shell etc. I hope you will upload more such videos in the future. Thanks a lot in the end.
@GavinFreeborn
@GavinFreeborn 3 года назад
I wil soon awaken from my slumber.
@FirstLast-kv1iq
@FirstLast-kv1iq 3 года назад
This was a fantastic video!
@hamwenhong
@hamwenhong 3 года назад
Quite informative, thanks for sharing!!
@victornaut
@victornaut 3 года назад
using a reddit pfp in youtube... this is brilliant bro imma try that!
@davidgustavsson4000
@davidgustavsson4000 3 года назад
I think your sense for what *noremap does is wrong. It's not about whether we can overwrite the expression in the LHS, but whether the stuff in the RHS can be interpreted as mappings. map x y map z xy " Pressing z now does yy noremap z xy " Pressing z now does xy, ignoring the x mapping
@GavinFreeborn
@GavinFreeborn 3 года назад
Nice good to know. I've definitely had the wrong idea
@Linux.Learner
@Linux.Learner 2 месяца назад
THANK YOU SIRE!
@serenhampshire5988
@serenhampshire5988 3 года назад
I’d be interested in seeing a cookie decorating tutorial if possible.
@CodingNuggets
@CodingNuggets 3 года назад
Good video. VIM is so essential. I prefer to use keybindings in VS Code now, but I still use it everyday when editing files on servers. See your soon!
@GavinFreeborn
@GavinFreeborn 3 года назад
Totally get it the completion I get with vim is one can make you feel like a superhero.
@sarnobat2000
@sarnobat2000 7 месяцев назад
Wow this video is so well organized and thought out. I'm learning a lot and am only half way through it.
@sarnobat2000
@sarnobat2000 7 месяцев назад
And you look so young so I'm feeling a bit inadequate for how long I've used vim
@GavinFreeborn
@GavinFreeborn 7 месяцев назад
Thanks, this video has always had a special place in my heart. It's probably the most vimscript (a guilty pleasure of mine) in one video and still gained a decent amount of attention in spite of the poor video quality. As far as looking young I just look younger than I really am.
@drac8854
@drac8854 3 года назад
I'll probably need to watch this twice or thrice
@BryanJenks
@BryanJenks 3 года назад
heh. COC. nice new intro!
@GavinFreeborn
@GavinFreeborn 3 года назад
Lol. Thanks man
@oj0024
@oj0024 3 года назад
I think that my preferred completion method would be some sort of global ctags. I had a setup running a while back, but I didn't like it, I don't really need autocomplete for c anyways.
@BicospaceTech
@BicospaceTech Год назад
dude you are a GOD
@benjaminbras7475
@benjaminbras7475 3 года назад
How did you wrap the word in quotes. I can't really figure it out from the screenkey. or did you make a special binding for it?
@GavinFreeborn
@GavinFreeborn 3 года назад
just using the plugin vim-surround
@nghiaphantrong1024
@nghiaphantrong1024 3 года назад
Can you explain more what vim-lsp actually does ? I'm using ALE with Typescript project, and when I open a ts file, it will try to find tsserver, auto start tsserver server and use that LSP. If I use vim-lsp, it will stand between ALE and tsserver ..? seems vim-lsp is also a lsp-client as ALE, is there any way to combine two of them. Hope to see your reply. Nice work, guy!
@GavinFreeborn
@GavinFreeborn 3 года назад
I would recommend going with just one of the 2. If I was to pick I would use vim-lsp since it does a better job at handling language server integration (IMO) than ALE and you can replace most of ALE's functionality with github.com/mattn/efm-langserver.
@numairdubas2688
@numairdubas2688 3 года назад
I'm having a little trouble using omnicompletion on c files. I have tried both set omnifunc=ccomplete#Complete and also set omnifunc=syntaxcomplete#Complete. It seems to work on js files like in the video, but I haven't had any luck with c or cpp. Any help would be appreciated!
@JMIK1991
@JMIK1991 Год назад
I know it's old comment but I has some trouble with it too... I wanted a simple way to do it aswell, may not seem so simple but works for me. I tried to do tags in vim but didn't want to have my project tags file in separate direction... Generate ctags file with "ctags-universal --c++-kinds=+pf --extras=+q -R ./include/ ./src/" Then see if you have "set tags=./tags;/" on vimrc and you should have i_CTRL+N auto completion for namespaces, structs, enums and classes etc. ( i_ in front is just to tell it's insert mode key mapping) To go through tags list you use i_CTRL-X CTRL-] to get full list in Vim and then CTRL-N or CTRL-P I generate ctags under .vim/ folder in project tree, but snipped it off from these scripts... About "set tags=./.vim/tags;/"... it starts from current location, and leaves directories and check between each if it finds .vim folder and tags in them, until it ends up in root /. I presume it works quite well in projects with large directories.
@sivaKumar-hd4xe
@sivaKumar-hd4xe 3 года назад
im using nvim-lspconfig and completion.nvim.
@Awwe12675
@Awwe12675 2 года назад
I need to understand how can I programmer gui with vim ?
@azizkavas6993
@azizkavas6993 Год назад
Is there any completion framework similar to that in Emacs? Or is there any video which explains emacs completion system in such a way?
@GavinFreeborn
@GavinFreeborn Год назад
Kinda, but it's a little different. Completion-at-point (built in) is similar to omnicomplete but it takes a list of functions to apply similar to how mucomplete worked. When it comes to individual functions for each action there is a emacs package called cape (3rd party) which is basically a collection of extra completion functions you may want. The default interface is pretty different but you can use either the company package or Corfu (both 3rd party)
@notvoidz
@notvoidz 3 года назад
which os do u use and which terminal are u using ?
@GavinFreeborn
@GavinFreeborn 3 года назад
Arch Linux and st. I'm pretty basic haha
@joshuamarcano350
@joshuamarcano350 2 года назад
Cool video. For me it's just too much work for the reward. I'd rather use coc as I'm new to neovim and still want to get code written right away without investing so much time in settings. Maybe one day I can see the benefit in this but as of now it seems extreme for my case. I love vim and I hate the setup process lol. I guess I'm still in a state culture shock. This was great information nonetheless and perhaps my perspective will change soon.
@tuerda
@tuerda 3 года назад
In answer to your question, I use the built in manual completion. I find autocompletion intolerable, because it spits all sorts of visual noise on my screen and often covers up important parts of the text.
@GavinFreeborn
@GavinFreeborn 3 года назад
Totally get where you are coming from. Sometimes I just want as much context as possible. Having a pop-up window I didn't ask for just disctupts my workflow.
@tuerda
@tuerda 3 года назад
@@GavinFreeborn It was a pretty nice video though; completion is one of the dark corners of vim I had never looked into very deeply. This made it seem a lot less dark.
@serenhampshire5988
@serenhampshire5988 3 года назад
Hey! 🤗
@ingmarfalk3306
@ingmarfalk3306 2 года назад
If that is not worth a sub I dont know what is
Далее
How To Manage Your Dotfiles With Make
16:36
Просмотров 6 тыс.
Compile Code The Way Vim Intended.
18:53
Просмотров 15 тыс.
10 Advanced Vim Features (You Probably Didn't Know)
21:47
Let Vim Do the Typing
32:07
Просмотров 212 тыс.
Code Completion In Emacs - Everything You Need To Know
16:57
Advanced Vim Workflows
10:41
Просмотров 82 тыс.
My Favorite Vim Tricks
14:39
Просмотров 181 тыс.
Handling Multiple Files in vim
8:58
Просмотров 71 тыс.
FZF will change your workflow completely
13:29
Просмотров 115 тыс.
Vim Tips You Probably Never Heard of
12:11
Просмотров 116 тыс.
Learning Vim in a Week
23:51
Просмотров 463 тыс.