commit adf4258b2b1a7ecceef2e2c681d9cd5ae8acd934 Author: Juan Shotyou Date: Sun Aug 25 11:10:35 2024 +0100 Initial commit diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..6486255 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,37 @@ +unbind C-b +set -g prefix C-Space + +unbind r +bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" + +# v and h are not bound by default, but we never know in the next versions... +unbind v +unbind h + +unbind % # Split vertically +unbind '"' # Split horizontally + +bind v split-window -h -c "#{pane_current_path}" +bind h split-window -v -c "#{pane_current_path}" + +# change pane navigation to Vim-believer mode +bind -n C-h select-pane -L +bind -n C-j select-pane -D +bind -n C-k select-pane -U +bind -n C-l select-pane -R + +set -g history-limit 100000 + +unbind n #DEFAULT KEY: Move to next window +unbind w #DEFAULT KEY: change current window interactively + +bind n command-prompt "rename-window '%%'" +bind w new-window -c "#{pane_current_path}" + +# Make window and pane numbers start from 1 instead of 0 +set -g base-index 1 +set-window-option -g pane-base-index 1 + +# Move to next/previous window with Alt+k/Alt+j +bind -n M-j previous-window +bind -n M-k next-window diff --git a/.vim/vimrc b/.vim/vimrc new file mode 100644 index 0000000..a83188b --- /dev/null +++ b/.vim/vimrc @@ -0,0 +1,114 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ +" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ +" ██║ ██║██║██╔████╔██║██████╔╝██║ +" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ +" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ +" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Disable compatibility with vi which can cause unexpected issues. +set nocompatible + +" Enable type file detection. Vim will be able to try to detect the type of file in use. +filetype on + +" Enable plugins and load plugin for the detected file type. +filetype plugin on + +" Load an indent file for the detected file type. +filetype indent on + +" Turn syntax highlighting on. +syntax on + +" Add numbers to each line on the left-hand side. +set number + +" Highlight cursor line underneath the cursor horizontally. +"set cursorline +" Not a fan of this edit +" Highlight cursor line underneath the cursor vertically. +"set cursorcolumn +" Not a fan of this edit + +" Set shift width to 4 spaces. +set shiftwidth=5 + +" Set tab width to 4 columns. +set tabstop=4 + +" Do not save backup files. +set nobackup + +" Do not let cursor scroll below or above N number of lines when scrolling. +set scrolloff=10 + +" While searching though a file incrementally highlight matching characters as +" you type. +set incsearch + +" Ignore capital letters during search. +set ignorecase + +" Show partial command you type in the last line of the screen. +set showcmd + +" Show the mode you are on the last line. +set showmode + +" Show matching words during a search. +set showmatch + +" Use highlighting when doing a search. +set hlsearch + +" Set the commands to save in history default number is 20. +set history=1000 + +" Enable auto completion menu after pressing TAB. +set wildmenu + +" Make wildmenu behave like similar to Bash completion. +set wildmode=list:longest + +" There are certain files that we would never want to edit with Vim. +" Wildmenu will ignore files with these extensions. +set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx + +" PLUGINS ---------------------------------------------------------------- {{{ + +" " Plugin code goes here. + +" " }}} + + +" MAPPINGS --------------------------------------------------------------- +" {{{ + +" Mappings code goes here. + +" }}} + + +" VIMSCRIPT -------------------------------------------------------------- +" {{{ + +" This will enable code folding. +" Use the marker method of folding. +augroup filetype_vim + autocmd! + autocmd FileType vim setlocal foldmethod=marker +augroup END + +" More Vimscripts code goes here. + +" }}} + + +" STATUS LINE +"------------------------------------------------------------ {{{ + +" Status bar code goes here. + +" }}} diff --git a/.vim/vimrc_developer b/.vim/vimrc_developer new file mode 100644 index 0000000..a83188b --- /dev/null +++ b/.vim/vimrc_developer @@ -0,0 +1,114 @@ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ +" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ +" ██║ ██║██║██╔████╔██║██████╔╝██║ +" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ +" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ +" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +" Disable compatibility with vi which can cause unexpected issues. +set nocompatible + +" Enable type file detection. Vim will be able to try to detect the type of file in use. +filetype on + +" Enable plugins and load plugin for the detected file type. +filetype plugin on + +" Load an indent file for the detected file type. +filetype indent on + +" Turn syntax highlighting on. +syntax on + +" Add numbers to each line on the left-hand side. +set number + +" Highlight cursor line underneath the cursor horizontally. +"set cursorline +" Not a fan of this edit +" Highlight cursor line underneath the cursor vertically. +"set cursorcolumn +" Not a fan of this edit + +" Set shift width to 4 spaces. +set shiftwidth=5 + +" Set tab width to 4 columns. +set tabstop=4 + +" Do not save backup files. +set nobackup + +" Do not let cursor scroll below or above N number of lines when scrolling. +set scrolloff=10 + +" While searching though a file incrementally highlight matching characters as +" you type. +set incsearch + +" Ignore capital letters during search. +set ignorecase + +" Show partial command you type in the last line of the screen. +set showcmd + +" Show the mode you are on the last line. +set showmode + +" Show matching words during a search. +set showmatch + +" Use highlighting when doing a search. +set hlsearch + +" Set the commands to save in history default number is 20. +set history=1000 + +" Enable auto completion menu after pressing TAB. +set wildmenu + +" Make wildmenu behave like similar to Bash completion. +set wildmode=list:longest + +" There are certain files that we would never want to edit with Vim. +" Wildmenu will ignore files with these extensions. +set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx + +" PLUGINS ---------------------------------------------------------------- {{{ + +" " Plugin code goes here. + +" " }}} + + +" MAPPINGS --------------------------------------------------------------- +" {{{ + +" Mappings code goes here. + +" }}} + + +" VIMSCRIPT -------------------------------------------------------------- +" {{{ + +" This will enable code folding. +" Use the marker method of folding. +augroup filetype_vim + autocmd! + autocmd FileType vim setlocal foldmethod=marker +augroup END + +" More Vimscripts code goes here. + +" }}} + + +" STATUS LINE +"------------------------------------------------------------ {{{ + +" Status bar code goes here. + +" }}}