- Go to tpm which stands for tmux plugin manager and install it using instruction.
- Copy tmux configuration into user directory. Alternative configuration with another status bar, which also looks nice: bash bunni conf, oh my tmux which is overkill in my point of view.
- Make sure your previous tmux is stopped with
tmux kill-server
command. After this you can open new tmux session withtmux new
and then runnvim .tmux.conf
. - Prefix+I, which should be `I. This should install plugins using tpm.
- Exit nvim with
ZZ
and runtmux source ~/.tmux.conf
which should apply installed plugins.
prefix ,
- rename windowprefix c
- create new windowprefix x
- close windowprefix d
- detachprefix f
- search by window or session names. Make sure you have ripgrep installed because it's used for this.prefix n
- open next windowprefix p
- open previous window
:messages
can be useful to debug when ever your config failes
- how to use lsp to rename all instances of this function name?
- Treesitter = it creates a specific tree, that then uses to highlight your code based on that, not using regex's. That's why it is faster at that PLUS existence of this tree allows to do more complex stuff, for example, selecting the code and doing something with it.
- Lsp =
fg
will jump you to the file, if your cursor is on top of the path to it =======
- normal mode:
guu
/gUU
to downcase/upcase the hole line orgu<motion>
. for examplegUiw
will make uppercase all the letters inside current word - insert mode:
<c-o><move>
will do a kipping you in insert mode. This is incredibly useful, for example, you are writing arguments for function and you simply need to go 1 charachter to the right to have cursor after the)
, you can simply do<c-o>l
. HOW COOL IS THIS?
- learn harpoon, quick fix list
<c-q>
send to the quick fix list. What is this? How to walk it?==
to auto indent current line or=<motion>
to auto indent<c-a>
to inc number
mnemonics:
<leader>md
-> MardDown preview<leader>mm
-> MaxiMizer toggle
<leader>ff
-> Find Files<leader>ft
-> Find Telescope grep(you can change this tofg
it would be more logical with Find Grep, but on my current keybord layoutg
isn't close that's why i did it)<leader>fb
-> Find Buffers
:nmap
will show you all of the mapping that you have for normal mode, this works exactly the same for:imap
,:vmap
. If your list is pretty long you can use jk keys to move around.- very similar command to previous but slightly different:
:nmap <leader>
will show what leader maps you are using. This works with:imap
and:vmap
correspondingly. - analog to previous commands is
:Telescope keymaps
gd
– go to definition,gr
– go to references,- this requires the lsp to be setup- you can scroll through the old commands using
:
and arrow keys