![image](https://private-user-images.githubusercontent.com/11861080/246662812-86512709-8141-464a-874e-c138849c11c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzMjY1OTYsIm5iZiI6MTcyNDMyNjI5NiwicGF0aCI6Ii8xMTg2MTA4MC8yNDY2NjI4MTItODY1MTI3MDktODE0MS00NjRhLTg3NGUtYzEzODg0OWMxMWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIyVDExMzEzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmODk4NjVkOTExYjY3ODZlNjY1NGZhZmNiNWU0MGQxYjQwYTc3Y2IxM2ZjNTE1MTRkMTJkM2FjMGNhNzhjNTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.75LkgrEky3iQG7SabLU3YbKtMjez2MUGWnktAmSXiss)
This is my personal dotfiles repository. It contains all the configuration files for my system.
I'm using the Colemak layout, so I have to change some keybindings in some programs like tmux
, vim
, vscode
, etc.
Everything is based on vim navigation. Usually, you can navigate through the files with hjkl
keys, but I've changed it for hnei
keys. This because the Colemak layout has the h
key in the same position, the j
key is in the n
position, the k
key is in the e
position and the l
key is in the i
position.
Note: All the keys were mapped to the Colemak layout, this means that the
f
key (find char) is in thet
position, thed
key (delete char) is in thes
position, etc.
Yep, it's a little bit confusing 🤯, but it's very useful when you're using the Colemak layout and/or you want easily switch to the qwerty
layout.
The vim
configuration is really basic. It contains just the basic Colemak keybindings and some general configurations.
$ git clone https://github.com/mateonunez/dotfiles ~/.somewhere
$ ln -s ~/.somewhere/.vimrc ~/.vimrc
Please backup your
~/.vimrc
file before running the previous command.
Create the swap
and undo
directories
$ mkdir ~/.vim/swap
$ mkdir ~/.vim/undo
I really love tmux, it's a great tool for managing your terminal sessions. I've created a basic configuration file for it, based on oh-my-tmux and of course, with the Colemak keybindings (it uses the vi navigation
to walk on the file).
Prefix key:
Ctrl + a
The panel navigation follows my default Colemak keybindings, so you can navigate through the panels with hnei
keys.
- Focus right panel:
Ctrl + a + i
- Focus left panel:
Ctrl + a + h
- Focus top panel:
Ctrl + a + n
- Focus bottom panel:
Ctrl + a + e
Also, you can resize the panels with HNEI
keys.
- Resize to the right:
Ctrl + a + Shift + i (or I)
- Resize to the left:
Ctrl + a + Shift + h (or H)
- Resize to the top:
Ctrl + a + Shift + n (or N)
- Resize to the bottom:
Ctrl + a + Shift + e (or E)
The copy mode is based on the vi navigation
, so you can navigate through the text with hnei
keys.
Requirements:
- On Linux:
xclip
package andreattach-to-user-namespace
. - On macOS:
pbcopy
package. - On Windows: Who knows.
For Linux and macOS, you can install the
reattach-to-user-namespace
package withbrew install reattach-to-user-namespace
orsudo apt install reattach-to-user-namespace
and switch to the right program in the configuration file.
To trigger the copy mode, you have to press Ctrl + a + [
. Then, you can navigate through the text with hnei
keys and select the text with v
key. Once you've selected the text, you can copy it with:
- j (y in qwerty): copy to the clipboard.
- Ctrl + c: copy to the clipboard and exit the copy mode.
$ git clone https://github.com/mateonunez/dotfiles ~/.somewhere
$ ln -s ~/.somewhere/.tmux.conf ~/.tmux.conf
$ ln -s ~/.somewhere/.tmux.conf.local ~/.tmux.conf.local
Please backup your
~/.tmux.conf
and~/.tmux.conf.local
files before running the previous commands.
The nvim
configuration is based on: NvChad.
The most important thing is that the /config/nvim/init.lua
file loads, at the end of the file, the keymaps.vim
configuration. It's basically the same file of .vimrc
config but without the vim
configuration.
vim.cmd [[source ~/.config/nvim/lua/custom/keybindings.vim]]
This is still a work in progress.
The vscode
configuration contains just the generics settings and some keybindings to improve UX.
Generic zsh
configuration that contains some aliases, the theme and the plugins.
MIT.