From 74cebff472e561dc275738833d2a77896e1e7cbc Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 23 Mar 2026 20:16:45 +0800 Subject: move dotfiles into mac/ dir --- .tmux.conf | 11 ----------- .vimrc | 51 --------------------------------------------------- mac/quickstart | 2 ++ mac/tmux.conf | 11 +++++++++++ mac/vimrc | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ quickstart.txt | 2 -- 6 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 .tmux.conf delete mode 100644 .vimrc create mode 100644 mac/quickstart create mode 100644 mac/tmux.conf create mode 100644 mac/vimrc delete mode 100644 quickstart.txt diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index fc4b931..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,11 +0,0 @@ -# Vi mode for copy -setw -g mode-keys vi - -# Mouse selection -set -g mouse on - -# v to start selection, y to yank (like vim) -bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" -bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" -bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" diff --git a/.vimrc b/.vimrc deleted file mode 100644 index c45cfc9..0000000 --- a/.vimrc +++ /dev/null @@ -1,51 +0,0 @@ - -" Enable line wrapping -set wrap - -" Optional: Make wrapped lines easier to read by indenting them -set breakindent -set breakindentopt=shift:1 - -syntax on -set autoindent -set number -set mouse=a -set expandtab -set shiftwidth=4 -set softtabstop=4 -set tabstop=4 - -set autoindent -set smartindent -filetype plugin indent on - -set laststatus=2 " permanent status bar -set statusline=%F " shows full file path - -if (has("termguicolors")) - set termguicolors -endif - -colorscheme zellner -"colorscheme evening - -" Ctrl+A: Move to the beginning of the line in INSERT mode -inoremap - -" Ctrl+E: Move to the end of the line in INSERT mode -inoremap - -" Ctrl+A: Move to the beginning of the line in NORMAL mode -nnoremap 0 - -" Ctrl+E: Move to the end of the line in NORMAL mode -nnoremap $ -set clipboard=unnamed,unnamedplus -setlocal regexpengine=2 -set hlsearch -set foldcolumn=12 " Creates a small left margin of 2 columns -set noswapfile -autocmd InsertLeave * silent! update - - - diff --git a/mac/quickstart b/mac/quickstart new file mode 100644 index 0000000..29b924b --- /dev/null +++ b/mac/quickstart @@ -0,0 +1,2 @@ +SSH_KEY=~/macm4-resident; SSH_HOST=root@p.noml.ch; ssh-agent bash -c "ssh-add $SSH_KEY && git push" +while true; do nc -l -p 5023 | openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:YourPassword | pbcopy; done diff --git a/mac/tmux.conf b/mac/tmux.conf new file mode 100644 index 0000000..fc4b931 --- /dev/null +++ b/mac/tmux.conf @@ -0,0 +1,11 @@ +# Vi mode for copy +setw -g mode-keys vi + +# Mouse selection +set -g mouse on + +# v to start selection, y to yank (like vim) +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-no-clear "pbcopy" +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" diff --git a/mac/vimrc b/mac/vimrc new file mode 100644 index 0000000..c45cfc9 --- /dev/null +++ b/mac/vimrc @@ -0,0 +1,51 @@ + +" Enable line wrapping +set wrap + +" Optional: Make wrapped lines easier to read by indenting them +set breakindent +set breakindentopt=shift:1 + +syntax on +set autoindent +set number +set mouse=a +set expandtab +set shiftwidth=4 +set softtabstop=4 +set tabstop=4 + +set autoindent +set smartindent +filetype plugin indent on + +set laststatus=2 " permanent status bar +set statusline=%F " shows full file path + +if (has("termguicolors")) + set termguicolors +endif + +colorscheme zellner +"colorscheme evening + +" Ctrl+A: Move to the beginning of the line in INSERT mode +inoremap + +" Ctrl+E: Move to the end of the line in INSERT mode +inoremap + +" Ctrl+A: Move to the beginning of the line in NORMAL mode +nnoremap 0 + +" Ctrl+E: Move to the end of the line in NORMAL mode +nnoremap $ +set clipboard=unnamed,unnamedplus +setlocal regexpengine=2 +set hlsearch +set foldcolumn=12 " Creates a small left margin of 2 columns +set noswapfile +autocmd InsertLeave * silent! update + + + diff --git a/quickstart.txt b/quickstart.txt deleted file mode 100644 index 29b924b..0000000 --- a/quickstart.txt +++ /dev/null @@ -1,2 +0,0 @@ -SSH_KEY=~/macm4-resident; SSH_HOST=root@p.noml.ch; ssh-agent bash -c "ssh-add $SSH_KEY && git push" -while true; do nc -l -p 5023 | openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:YourPassword | pbcopy; done -- cgit