Re: Please help validate my ~/.vimrc configuration for Python
David via Tutor <[email protected]> Thu, 28 Aug 2025 04:20:25 +0000
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <CAMPXz=q=Bpf9bj5T=evy48U=X3S=p8AXS5V0LciAmJcVu-PrpA@mail.gmail.com> |
(offtopic, this is about Vim, not Python) On Tue, 19 Aug 2025 at 15:10, Alex Kleider <[email protected]> wrote: > The cut and paste between vim and other applications is very important > to me so I'd not be willing to sacrifice it. Ok. > That functionality on my system (I believe) depends on Vundle, not on > a GUI compatible version of vim. That sounds wrong to me. Because Vundle is just a bunch of scripts in Vim's built-in language, that are merely instructions to Vim. > I've attached a copy of my .vimrc in case it's of any help to you. Just a few thoughts after I had a quick look at your vimrc file... Regarding the comment and vimscript at the bottom of your vimrc file (only relevant if you wrote that comment yourself): ---------- " Don't know where the following came from or what it does: if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif ---------- If you want an explanation of where it came from and what it does, the built-in help of Vim does contain that, you can read that using this Vim command: :help last-position-jump And that explanation is part of a bigger explanation of the default vimrc file that is instalaled by Vim, which you can read using this Vim command: :help defaults.vim-explained That code is also present in Debian's /etc/vim/vimrc (which is worth reading) where it does have a comment that explains what it does. If you do want to make any of the changes mentioned in the /etc/vim/vimrc file, do not edit that file. Instead, you should copy the relevant lines into your personal .vimrc file. The lines in your file between "!!! VUNDLE !!!" and "!!! VundleEnd !!!" are part of Vundle, dont change any of those. Speaking of Vundle, note that while the content on realpython.com is very good, the article linked by Mats is from 2018, so a little out of date. In particular, the web is full of discussion of various plugin managers for Vim (eg Vundle,pathogen,vim-plug) that apparently everyone used to use, but those aren't needed now, after Vim grew better facilities for doing that itself. Here's some more recent discussion on that topic: https://www.reddit.com/r/vim/comments/10ixo0n/i_need_recommendations_on_plugin_managers/ In general, that forum: https://www.reddit.com/r/vim seems like a good place to learn about and get help on Vim as it is today. _______________________________________________ Tutor maillist - To unsubscribe send an email to [email protected] To unsubscribe or change subscription options: %(web_page_url)slistinfo/%(_internal_name)s