Personal configuration files
First, install gvim. The default vim package that Arch Linux comes with is really lightweight, and doesn't come with a graphical version, Python support (needed for Gundo), X server options (no copy/paste from the clipboard), or the like.
Vim checks for your user's config file first in ~/.vimrc, then checks for a
global one in /etc/vimrc. In order to keep things clean and under version
control, let's use a symbolic link.
ln -s ~/dotfiles/vimrc ~/.vimrc
- Vundle (takes care of all the rest of your plugins for you)
- Install vundle (as described in the README in the git repo)
- in Vim, run :BundleInstall, and then Vim and your .vimrc will take care of everything else for you!
- Install vim-spell-en (installed by default on Arch)
- The rest is handled by my .vimrc
- my vimrc should take care of the theme thanks to Vundle. However, when I'm running Vim from a terminal (which I usually do), I need to worry about my .Xresources not messing things up.
- copy the colours here into your ~/.Xresources file: https://github.com/altercation/solarized/blob/master/xresources-colors-solarized/Xresources
- My .vimrc takes care of most of this, but you need to make the undo directory
yourself, as Vim will not do it for you.
$ mkdir ~/.vim/undo
Using user environment with sudo
- One potential problem with a quite customized setup with plugins is that your editor is quite dependant on your user's environment
- This can be worked around with sudoedit
# visudo, add or edit your sudoers file to include something like
username ALL=(ALL) ALL,sudoedit
- Ensure that your .xinitrc has
- Then, you can edit files with sudo privileges and your own user's
$ sudoedit filename. This uses a tmp file, which it then writes when you're done.
herbstluftwm is the tiling
window manager I've become partial to on my netbook. It looks for your config
files in (I think)
$XDG_HOME/herbstluftwm/. So in order to keep all my
editable config files here in this git repo, I use a symlink to point
herbstluftwm in the right direction. This dir includes conky configuration.
$ yaourt -S herbstluftwm-git conky $ ln -s ~/dotfiles/herbstluftwm/ ~/.config/herbstluftwm
Note that my conky config relies upon my scripts being installed in ~/scripts.
Start by installing xbindkeys from the official repos:
$ yaourt -S xbindkeys
Then, create a symlink to the config file:
$ ln -s ~/dotfiles/xbindkeysrc-netbook ~/.xbindkeysrc
You'll probably want xbindkeys to start automatically. Ensure that in your
~/.xinitrc, you have
My netbook xbindkeys config relies on
Light and setpci, both of which
require sudo to run. To allow them to run without requiring a password for
users in the group wheel, use
# visudo and add the line:
%wheel ALL = NOPASSWD: /usr/bin/light, /usr/sbin/setpci
I've made a personal keymap, us-personal, that's a slightly modified version of the standard us keyboard layout. In it, I've remapped <Caps_Lock> to function as an additional Control key, while <Shift-Caps_Lock> still functions as Caps Lock.
Copy the gziped file,
/usr/share/kbd/keymaps/i386/qwerty/ Test it out with
then add it to your
Note: In the future, I believe the place the keyboard map is now set
system-wide in Arch Linux is
Note: Works fine in console with
# loadkeys, but won't work in X. Not sure