-
Notifications
You must be signed in to change notification settings - Fork 0
What's cool in here
Let me give you a small check list with the main cool stuff so you can have a #cool quickstart:
-
About
Tmuxstuff -
We can enter Tmux commands by two ways:
-
using the
Prefix+ command you want in this context, what I have set is thePrefix = Ctrl + "a" -
or entering
Prefix + ":"where a command line appears so you can type tmux commands -
These the ones that I use most:
-
Prefix + ":"to open a command line -
For example, to start a new session you can type:
new -s <session_name> -
To kill a session type
kill-session -t <session_name> -
And to rename a session do
Prefix + "$", typing next the session name -
To split the window in multiple panes you can do
Perfix +: -
|to split verticaly -
-to split horizontaly -
Prefix + "x"will remove a pane or a window where you are -
To resize the panes use
Prefix +: -
ito expand up -
kto expand down -
jto expand to the right -
lto expand to the left -
Because we can change/update the
tmux.conffile we need to reload it on tmux so doPrefix + "R" -
And because we can update our dots files and sometimes we need to restart the terminal, instead of closing it you can do
Prefix + "X" -
A great feautre having tmux with the plugin ressurect and continum is that we can have the terminal closed and when restarted all your sessions are saved to be reloaeded so you can continue where you were. To use this do:
-
Prefix + ( Ctrl + s )save all sessions -
Prefix + ( Ctrl + r )restore all sessions -
Another cool feature of tmux is the copy-mode. This one is like having the copy and paste for your terminal text and sometimes can be handy.To Enter this mode do
Prefix + ( Alt + "[" )and to exitPrefix + ( Alt + "]" ) -
On this copy-mode you can press the key
vto start selecting what you want and then you can use `Prefix + ( Alt + "]" ) to paste what you have selected. -
About
Vimstuff -
The main stuff around vim are the plugin. Having installed these you will have a nice vim to work
-
Good coloring on the code and even nice coloring about parentheses. This can be handy with languages like Clojure
-
There is the
PluginInstallcommand so you install all of them, use:qto close it -
You can have a file system tree entering the command
:NERDTree(or useCtrl+n), use:qto close it -
There's too one plugin to check your code sintax and one for completition
-
Vim has two modes, pressing
iand its theinsert modeand pressvsetting you on thevisualmode -
to exit from both modes use the
esqkey -
Use the
insertmode to type your text, code -
And use the
visualmode to use the ( copy or cut ) and paste feature -
To use this cut/copy and paste feature first enter the
visualmode. Then pressvand select what you want. Next pressyto copy orcto cut. Next put the cursor where you want to past and on the same mode pressp -
You can use
Ctrl +the keys:h,j,k,lto move around vim and tmux windows -
For search for files on vim using
Ctrl + pand entering the file name, or search for some keyword using the command:Ag <keyword>. Both of these commands are very usefull. -
About
Gitstuff -
On the
.gitconfigfile there is setup what's the external tool to use whendifformergeand some others configs for git but for me the main cool stuff is about settingaliasfor git commands. So, instead of writting: -
git, just type "g" -
git clone, just type "g c" -
git status, just type "g s" -
git checkout (having or not -b) <branch_name>, jut typeg go <branch_name -
And so on... you can check them all on the
.gitconfigfile. -
On
Dotsfiles -
TO DO