mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-30 02:50:29 +08:00
.vimrc2; tmux disable mouse default
This commit is contained in:
parent
ada575bb9b
commit
b42f51dd9b
@ -1,5 +1,7 @@
|
|||||||
set -g prefix ^a
|
set -g prefix ^a
|
||||||
|
set -g mouse off
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
||||||
|
set -g history-limit 10000
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
set -g @plugin 'https://hub.fastgit.xyz/thewtex/tmux-mem-cpu-load'
|
set -g @plugin 'https://hub.fastgit.xyz/thewtex/tmux-mem-cpu-load'
|
||||||
@ -45,4 +47,4 @@ set -g window-status-bell-style fg=colour237,bg=colour214
|
|||||||
# panes and windows
|
# panes and windows
|
||||||
set -g pane-active-border-style fg=brightblue
|
set -g pane-active-border-style fg=brightblue
|
||||||
set -g window-style fg=colour248
|
set -g window-style fg=colour248
|
||||||
set -g window-active-style fg=white
|
set -g window-active-style fg=white
|
||||||
|
22
.vimrc2
Normal file
22
.vimrc2
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
set cursorline
|
||||||
|
set nocompatible
|
||||||
|
set syntax=on
|
||||||
|
set autoindent
|
||||||
|
set smartindent
|
||||||
|
set tabstop=4
|
||||||
|
set expandtab "spaces instead of tabs
|
||||||
|
set number "line numbers
|
||||||
|
set history=1000
|
||||||
|
set ignorecase "when searching
|
||||||
|
set smartcase "but not when containing upper case chars
|
||||||
|
set linebreak
|
||||||
|
"set termguicolors "true color
|
||||||
|
set completeopt=preview,menu "auto complete
|
||||||
|
set laststatus=2 "always show statusline
|
||||||
|
hi User1 ctermfg=21 ctermbg=15
|
||||||
|
hi User2 ctermfg=237 ctermbg=214
|
||||||
|
hi User3 ctermfg=15 ctermbg=2
|
||||||
|
au InsertEnter * hi User3 ctermfg=15 ctermbg=5
|
||||||
|
au InsertLeave * hi User3 ctermfg=15 ctermbg=2
|
||||||
|
set statusline=%3*\ %{mode()}\ %*[%F](%{\"\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\"+\":\"\").\"\"},%{&ff},%Y)%2*%r%1*%m%*%<%=\'0x%B\'\ [Line:%l/%L,Col:%c][%p%%]
|
||||||
|
filetype on
|
@ -188,6 +188,7 @@ install(){
|
|||||||
install_crontab
|
install_crontab
|
||||||
insert_if_not_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
insert_if_not_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
||||||
insert_if_not_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
insert_if_not_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
||||||
|
insert_if_not_exist "${HOME}/.vimrc" "source ${dotfile_home_path}/.vimrc2"
|
||||||
create_symlink "${dotfile_path}/.ssh/authorized_keys2" "${HOME}/.ssh/authorized_keys2"
|
create_symlink "${dotfile_path}/.ssh/authorized_keys2" "${HOME}/.ssh/authorized_keys2"
|
||||||
fmt_note "done installing!"
|
fmt_note "done installing!"
|
||||||
}
|
}
|
||||||
@ -198,6 +199,7 @@ uninstall(){
|
|||||||
uninstall_crontab
|
uninstall_crontab
|
||||||
delete_if_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
delete_if_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
||||||
delete_if_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
delete_if_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
||||||
|
delete_if_exist "${HOME}/.vimrc" "source ${dotfile_home_path}/.vimrc2"
|
||||||
delete_link_if_match "${dotfile_path}/.ssh/authorized_keys2" "${HOME}/.ssh/authorized_keys2"
|
delete_link_if_match "${dotfile_path}/.ssh/authorized_keys2" "${HOME}/.ssh/authorized_keys2"
|
||||||
fmt_note "done uninstalling!"
|
fmt_note "done uninstalling!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user