LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-19-2016, 07:29 AM   #1
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Rep: Reputation: 22
Vim syntax highlighting/indent/etc changes after every pacman -Syu


... and it's driving me nuts. I thought I was going crazy, but it's vim.

What is the best way to blacklist this (trivial) package from upgrades?

Can I put dummy packages

vim-9.9.9999-9-i686.pkg.tar.xz
vim-runtime-9.9.9999-9-i686.pkg.tar.xz

in /var/cache/pacman/pkg/? Or something similar? I see blackpac, but is that the best way?
 
Old 01-20-2016, 12:06 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
I do not use anything with pacman so cannot help with blacklisting the package.

But I would suggest that a better way might be to simply configure vim for your preferences using ~/.vimrc, and by creating your own custom option files that will not be clobbered by a package update (ex: /usr/share/vim/.../colors/my-own-colors.vim).

I maintain my own which I have tweaked over several years and always install them on any new system or server, and I always have the same familiar vim!

Last edited by astrogeek; 01-20-2016 at 12:06 AM. Reason: typos
 
Old 01-21-2016, 10:56 AM   #3
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by astrogeek View Post
I do not use anything with pacman so cannot help with blacklisting the package.

But I would suggest that a better way might be to simply configure vim for your preferences using ~/.vimrc, and by creating your own custom option files that will not be clobbered by a package update (ex: /usr/share/vim/.../colors/my-own-colors.vim).

I maintain my own which I have tweaked over several years and always install them on any new system or server, and I always have the same familiar vim!
Indeed. That's what I had for the past 10 years on my last trusty steed.

As update, the best and easiest solution is to get my own vim source code, compile it with --prefix=$HOME, and dump it in ~/bin, which is first in my path from .bashrc.

I guess I'm pretty picky about my editor. Default vim settings from factory make it look like Christmas in Times Square when the cursor moves. I can't get any work done.

Anyone have a good matchparens.vim? I can't find my old one. I think it was about 6 lines long, not a petition to Ministry of HTML and Parentheses.
 
Old 01-29-2016, 08:21 PM   #4
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Original Poster
Rep: Reputation: 22
As an update, I thought "While I got the source code sitting right here, why not hack some annoyance out of it."

So I got rid of that bloody infuriating way the cursor moves back and forth when you go in and out of insert mode. LOL. Finally got around to it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] VIM syntax highlighting: Use of AWK syntax inside shell scripts kaiserkarl13 Programming 1 03-03-2021 09:59 AM
Vim syntax highlighting Gortex Programming 1 08-18-2008 05:43 PM
VIM Syntax Highlighting JMJ_coder Programming 3 03-05-2008 04:37 PM
[SOLVED] vim without syntax highlighting lord_didger Debian 5 11-18-2006 01:29 PM
vim syntax highlighting MiniMe001 Linux - General 2 06-19-2005 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration