note: Continuous updating!
DaiDai's dotfiles
is a configuration file that creates a (C++ / C, Python, AI)development environment with just one line of command.
vim plug-in manager tool is Vundle. include bashic tool zsh, tmux, vim, ssh, sshfs, tree, autojump
cd ~; git clone -b master https://github.com/daidai21/dotfiles && sudo ./dotfiles/install.sh
folder/
: not in ~/folder/
, this is a temp folder.
hosts
: in/etc/
, config realm name and IPapt.conf
in/etc/apt/
, config global proxysources.list
in/etc/apt/
, config apt source.kaggle/kaggle.json
, kaggle shell tool used download dataset.Dockerfile
, build basic ubuntu images- editorconfig
Preferences.sublime-settings
is simple config file in sublime text2, no usage plugin.
git config core.fileMode false
git config --global core.fileMode false
zsh # using oh-my-zsh
- prefix key:
Ctrl + x
- command
tmux (new -s session_name -n window_name)
create a new sessiontmux ^x d
sign out and savetmux a -t session_name)
get into named tmp sessiontmux ls
show all session_nametmux kill-session -t session_name
kill tmp session
- window
prefix n
next windowprefix p
previous windowprefix c
create a new windowprefix ,
rename current window
- window pane
prefix %
vertical splitprefix "
horizontal splitprefix z
maximize pane / recoveryprefix(hold) + direction key
adjust window pane size
shift mouse-right
+click copy
copy
-
F9
open / close small map -
F2
open / close catalog -
switch windows
ctrl w direction
switch widnows
-
:sp file_name
upper and lower segmentation windows -
:vs file_name
horizontal segmentation -
switch file
buf
:bn
next file:bp
previous windows:bn
switch to then
th filesctrl 6
switch file
-
switch window
tab
gt
previous windowgT
next window:tabe file_name
open a new window:tabc
close windows
-
shift z z
save file and fast quit -
just font size
ctrl -
size small,ctrl shift +
size big
-
adjust windows size
- vs windows
F5
small,F6
big
- sp windows
F7
small,F8
big
- vs windows
-
fast copy paste
yy
fast copy one linep
fast paste one line
-
auto complete
ctrl p
open auto complete
-
ctrl s
stop screen output -
ctrl q
recovery screen output -
:set fileformat=unix
or:set ff=unix
change windows file format to linux/mac file format. -
:start_lines,end_lines>
indet -
:start_lines,end_lines<
retractCtrl + d
-
:terminal
-
Command mode
G
go file endgg
go file headdd
delete current linendd
delete from current line to n next lineyy
copy current linenyy
copy from current line to n next linep
paste in next lineP
paste in previous lineu
return previous stepctrl r
return next step.
repeat previous operator
-
Last line mode
:n1,n2s/word1/word2/g
from n1 to n2 change word1 to word2:%s/word1/word2/g
change word1 to word2 in all file
-
block selection mode
ctrl + v
shift + i
, input insert content, thenEsc Esc
d
, thenEsc Esc
auto jump
fast to appoint name filejc filename
tree
see file treetree filename
- avoid error rm -rf
trash
- (moss userid=662266874) check code repeat
- man manual
man
- cman manual chinese language
cman
- pip source settings
pip install xxx -i source_url
阿里云 https://mirrors.aliyun.com/pypi/simple/ **科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ **科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
- git extension
- wget usage proxy
wget -e "http_proxy=http://127.0.0.1:8080" url
- process manager tool
supervisor
- conky
sudo apt-get install conky
killall conky
For learning or personal user use only, all remaining rights reserved by individuals.Github@daidai21