Last active
March 10, 2021 14:28
-
-
Save ThisIsntMyId/1cf5ea551d36ec59ee7934fd6e93d2b7 to your computer and use it in GitHub Desktop.
RCS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind v split-window -h | |
bind s split-window -v | |
unbind '"' | |
unbind % | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# switch panes using Alt-arrow without prefix | |
bind -n M-h select-pane -L | |
bind -n M-l select-pane -R | |
bind -n M-k select-pane -U | |
bind -n M-j select-pane -D | |
# Enable mouse mode (tmux 2.1 and above) | |
set -g mouse on | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
#### COLOUR (Solarized dark) | |
# default statusbar colors | |
set-option -g status-style fg=yellow,bg=black #yellow and base02 | |
# default window title colors | |
set-window-option -g window-status-style fg=brightred,bg=default #base0 and default | |
#set-window-option -g window-status-style dim | |
# active window title colors | |
set-window-option -g window-status-current-style fg=brightblue,bg=default #orange and default | |
#set-window-option -g window-status-current-style bright | |
# pane border | |
set-option -g pane-border-style fg=black #base02 | |
set-option -g pane-active-border-style fg=brightgreen #base01 | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# message text | |
set-option -g message-style fg=brightred,bg=black #orange and base01 | |
# pane number display | |
set-option -g display-panes-active-colour blue #blue | |
set-option -g display-panes-colour brightred #orange | |
# clock | |
set-window-option -g clock-mode-colour green #green | |
# bell | |
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smartindent | |
set number | |
set relativenumber | |
set hidden | |
set incsearch | |
set signcolumn=yes | |
set colorcolumn=80 | |
set scrolloff=20 | |
set wildmode=longest,list,full | |
set splitbelow splitright | |
set encoding=UTF-8 | |
set laststatus=2 | |
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'preservim/nerdtree' | |
Plug 'airblade/vim-rooter' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'itchyny/lightline.vim' | |
Plug 'mhinz/vim-startify' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'ryanoasis/vim-devicons' | |
" curl -sS https://webinstall.dev/nerdfont | bash | |
call plug#end() | |
for i in range(97,122) | |
let c = nr2char(i) | |
exec "map \e".c." <M-".c.">" | |
exec "map! \e".c." <M-".c.">" | |
endfor | |
let mapleader = " " | |
" move b/w splits | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
" move lines or blocks | |
nnoremap <A-j> :m .+1<CR>== | |
nnoremap <A-k> :m .-2<CR>== | |
inoremap <A-j> <Esc>:m .+1<CR>==gi | |
inoremap <A-k> <Esc>:m .-2<CR>==gi | |
vnoremap <A-j> :m '>+1<CR>gv=gv | |
vnoremap <A-k> :m '<-2<CR>gv=gv | |
" fzf | |
nnoremap <silent> <C-p> :GFiles<CR> | |
nnoremap <silent> <A-p> :Files<CR> | |
nnoremap <silent> <Leader>f :Rg<CR> | |
"nerdtree | |
nnoremap <leader>n :NERDTreeFocus<CR> | |
nnoremap <C-n> :NERDTree<CR> | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
nnoremap <C-f> :NERDTreeFind<CR> | |
" cocvim | |
" Use tab for trigger completion with characters ahead and navigate. | |
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by | |
" other plugin before putting this into your config. | |
inoremap <silent><expr> <TAB> | |
\ pumvisible() ? "\<C-n>" : | |
\ <SID>check_back_space() ? "\<TAB>" : | |
\ coc#refresh() | |
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" | |
function! s:check_back_space() abort | |
let col = col('.') - 1 | |
return !col || getline('.')[col - 1] =~# '\s' | |
endfunction | |
" Use <c-space> to trigger completion. | |
if has('nvim') | |
inoremap <silent><expr> <c-space> coc#refresh() | |
else | |
inoremap <silent><expr> <c-@> coc#refresh() | |
endif | |
" Make <CR> auto-select the first completion item and notify coc.nvim to | |
" format on enter, <cr> could be remapped by other vim plugin | |
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() | |
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>" | |
" GoTo code navigation. | |
nmap <silent> gd <Plug>(coc-definition) | |
nmap <silent> gy <Plug>(coc-type-definition) | |
nmap <silent> gi <Plug>(coc-implementation) | |
nmap <silent> gr <Plug>(coc-references) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias pa="php artisan" | |
alias pas="php artisan serve" | |
alias pam="php artisan make:" | |
alias ga="git add ." | |
alias gcam="git add . && git commit -m" | |
alias gp="git push" | |
alias gs="git status" | |
alias gll="git log --oneline" | |
alias gi="git init && git add . && git commit -m 'initial commit'" | |
alias gr="git remote -v" | |
alias nir="npm install && npm run" | |
alias nr="npm run" | |
alias nird="npm install && npm run dev" | |
alias nrd="npm run dev" | |
alias ni="npm install" | |
alias parl="php artisan route:list > rl" | |
alias pami="php artisan migrate" | |
alias palm="php artisan livewire:make" | |
alias pamc="php artisan make:component" | |
alias pamif="php artisan migrate:fresh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment