-
Notifications
You must be signed in to change notification settings - Fork 0
Dev #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Roberamelaek
wants to merge
15
commits into
main
Choose a base branch
from
Dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #17
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4e131dc
the readme file
Roberamelaek ffb9011
costomizing tmux and the config.sh file
Roberamelaek d78a5d5
config the .prompt file to change color
Roberamelaek 3e2a942
#fix 11 #fix11
Roberamelaek aae68d5
Fixes #11
Roberamelaek 9a117a9
MAKE GIT CONFIG .SH AND INSTALL.SH
Roberamelaek 31be9cc
deleting the config.sh file
Roberamelaek eaff4a7
DIY
Roberamelaek d9288d6
resetting the last commit and deleting the bin files
Roberamelaek 5cd7b5d
updating the read me file to suit the recent commits
Roberamelaek 2421569
this is the left over change
Roberamelaek 0c89062
the finnal moving commit
Roberamelaek c2902ab
Merge branch 'main' into Dev
Roberamelaek 41f0162
this is the other type of installation with neovim add
Roberamelaek 6dac21c
this is the nvi
Roberamelaek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,4 @@ | ||
| alias g="git" | ||
| alias nv="nvim" | ||
| alias v="vim" | ||
| alias dc="docker-compose" |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| :set number | ||
| :set relativenumber | ||
| :set autoindent | ||
| :set tabstop=4 | ||
| :set shiftwidth=4 | ||
| :set smarttab | ||
| :set softtabstop=4 | ||
| :set mouse=a | ||
|
|
||
| call plug#begin() | ||
|
|
||
| Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) | ||
| Plug 'https://github.com/preservim/nerdtree' " NerdTree | ||
| Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc | ||
| Plug 'https://github.com/vim-airline/vim-airline' " Status bar | ||
| Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim | ||
| Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview | ||
| Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme | ||
| Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion | ||
| Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons | ||
| Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal | ||
| Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation | ||
| Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors | ||
|
|
||
| set encoding=UTF-8 | ||
|
|
||
| call plug#end() | ||
|
|
||
| nnoremap <C-f> :NERDTreeFocus<CR> | ||
| nnoremap <C-n> :NERDTree<CR> | ||
| nnoremap <C-t> :NERDTreeToggle<CR> | ||
| nnoremap <C-l> :call CocActionAsync('jumpDefinition')<CR> | ||
|
|
||
| nmap <F8> :TagbarToggle<CR> | ||
|
|
||
| :set completeopt-=preview " For No Previews | ||
|
|
||
| :colorscheme jellybeans | ||
|
|
||
| let g:NERDTreeDirArrowExpandable="+" | ||
| let g:NERDTreeDirArrowCollapsible="~" | ||
|
|
||
| " --- Just Some Notes --- | ||
| " :PlugClean :PlugInstall :UpdateRemotePlugins | ||
| " | ||
| " :CocInstall coc-python | ||
| " :CocInstall coc-clangd | ||
| " :CocInstall coc-snippets | ||
| " :CocCommand snippets.edit... FOR EACH FILE TYPE | ||
|
|
||
| " air-line | ||
| let g:airline_powerline_fonts = 1 | ||
|
|
||
| if !exists('g:airline_symbols') | ||
| let g:airline_symbols = {} | ||
| endif | ||
|
|
||
| " airline symbols | ||
| let g:airline_left_sep = '' | ||
| let g:airline_left_alt_sep = '' | ||
| let g:airline_right_sep = '' | ||
| let g:airline_right_alt_sep = '' | ||
| let g:airline_symbols.branch = '' | ||
| let g:airline_symbols.readonly = '' | ||
| let g:airline_symbols.linenr = '' | ||
|
|
||
| inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>" | ||
| " Enable folding based on Markdown headings | ||
|
|
||
| autocmd FileType markdown setlocal foldmethod=marker | ||
| autocmd FileType markdown setlocal foldmarker=##,## | ||
|
|
||
| command! InsertDate execute 'normal! O<C-R>=strftime("%b %d, %y")<CR>' | ||
|
|
||
| nnoremap <C-C><C-C> :InsertDate<CR> | ||
|
|
||
| set foldmethod=manual | ||
|
|
||
|
|
||
|
|
||
| syntax enable | ||
|
|
||
|
|
||
| " Custom fold expression for Markdown | ||
| function! MarkdownFoldExpr() | ||
| " Get the current line | ||
| let thisline = getline(v:lnum) | ||
| " Get the next line | ||
| let nextline = getline(v:lnum + 1) | ||
| " Check if the next line contains '##' to determine fold level | ||
| if nextline =~ '^##' | ||
| return '>1' | ||
| else | ||
| return '=' | ||
| endif | ||
| endfunction | ||
|
|
||
| " Set foldmethod to 'expr' and foldexpr to the custom function for Markdown files | ||
| autocmd FileType markdown setlocal foldmethod=expr foldexpr=MarkdownFoldExpr() | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,41 +1,58 @@ | ||
| # Dotfiles: Configuration Files for Vim, Tmux, and Git | ||
|
|
||
| This repository is my personal Configurations file and also comes with an .sh installer. Feel free to configure and personalize the file to suit your preference. | ||
| Welcome to my dotfiles repository! This repository contains my personal configuration files for Vim, Tmux, Git, and Neovim, along with installation scripts. Feel free to use these configurations as a starting point and customize them to suit your preferences. | ||
|
|
||
| This is the basic sample that you can copy and use. Tips to improve and make it more personalized will be appreciated. | ||
| ## Contents | ||
|
|
||
| Instructions on how to install, use, and personalize will be provided below. | ||
| 1. `vimrc`: Configuration file for Vim. | ||
| 2. `tmuxrc`: Configuration file for Tmux. | ||
| 3. `gitconfig/`: Git configuration files. | ||
| - `gitinstall.sh`: Git installation script. | ||
| 4. `scripts/`: Installation script. | ||
| - `install.sh`: Installation script for basic setup. | ||
| - `install_enhanced.sh`: Enhanced installation script for additional configurations. | ||
| 5. `.config/nvim/init.vim`: Configuration file for Neovim. | ||
|
|
||
| ## Contents | ||
| ## Installation | ||
|
|
||
| Follow these steps to install and use the configurations provided in this repository: | ||
|
|
||
| ### Step 1: Clone the Repository | ||
|
|
||
| Clone the repository to your local machine: | ||
|
|
||
| ```bash | ||
| git clone https://github.com/Roberamelaek/dotfile.git .dotfiles | ||
| ``` | ||
|
|
||
| ### Step 2: Change into the Repository Directory | ||
|
|
||
| Change into the repository directory: | ||
|
|
||
| ```bash | ||
| cd .dotfiles | ||
| ``` | ||
|
|
||
| ### Step 3: Run the Basic Installation Script | ||
|
|
||
| Run the basic installation script to set up the configurations: | ||
|
|
||
| ```bash | ||
| sh scripts/install.sh | ||
| ``` | ||
|
|
||
| This script installs Vim, Neovim, Tmux, and Git if they are not already installed, and copies the configuration files to your home directory (~/). | ||
|
|
||
| ### Step 4: Run the Enhanced Installation (Optional) | ||
|
|
||
| If you want additional configurations, you can run the enhanced installation script: | ||
|
|
||
| ```bash | ||
| sh scripts/install_enhanced.sh | ||
| ``` | ||
|
|
||
| This script includes additional configurations beyond the basic setup. Feel free to run it for more customization options. | ||
|
|
||
| 1. vimrc | ||
| 2. Tmuxrc | ||
| 3. gitconfig.sh | ||
| 4. install.sh | ||
|
|
||
| ### Installation | ||
|
|
||
| To install and use the configuration provided in this repository, follow these steps: | ||
|
|
||
| 1. Clone the repository to your local machine using the following command: | ||
|
|
||
| ```bash | ||
| git clone https://github.com/Roberamelaek/dotfile.git | ||
|
|
||
| 2. Rename the dotfile to .dotfile: | ||
|
|
||
| ```bash | ||
| mv dotfile .dotfiles | ||
|
|
||
| 3. Change into the repository directory: | ||
|
|
||
| ```bash | ||
| cd .dotfiles | ||
| 4. Run the configuration script to install the Vim settings: | ||
| ```bash | ||
| sh install.sh | ||
|
|
||
| - The files will be copied to your home directory (`~/`) and Vim will be configured accordingly. | ||
| - Now you're all set to use the customized Vim configuration! | ||
| - Feel free to customize the files before you run <code>sh install.sh</code> have fun with the project and leave feadback for more if you have any questions or helpful and fun ideas!! | ||
| ### Step 5: Verify Installation | ||
|
|
||
| After running the installation script(s), verify that everything is set up correctly by opening Vim, Tmux, or Neovim. If you encounter any issues or have questions, please don't hesitate to report them by opening an issue. |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,13 @@ export NB_INDICATOR_PINNED="💖" | |
| # https://github.com/xwmx/nb | ||
| ############################################################################### | ||
| export NB_ACE_ENABLED=1 | ||
| export EDITOR="vim" # Set by `nb` • Tue Jul 4 08:19:36 PM EDT 2023 | ||
| export EDITOR="nvim" # Set by `nb` • Tue Jul 4 08:19:36 PM EDT 2023 | ||
|
|
||
| NB_IMAGE_TOOL=imgcat | ||
|
|
||
| export NB_COLOR_THEME="${NB_COLOR_THEME:-forest}" # Set by `nb` • Thu Jul 6 10:00:16 PM EDT 2023 | ||
| export NB_INDICATOR_EBOOK="📖" | ||
| export NB_INDICATOR_NOTEBOOK="📖" | ||
|
|
||
| NB_MARKDOWN_TOOL=glow | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏼 |
||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
|
|
||
|
|
||
| SOURCE="$HOME/.dotfiles/.config/nvim/init.vim" | ||
| DESTINATION="$HOME/.config/nvim/init.vim" | ||
|
|
||
| if [ -f "$SOURCE" ]; then | ||
|
|
||
| if [ -f "$DESTINATION" ]; then | ||
|
|
||
| rm "$DESTINATION" | ||
|
|
||
| echo "Existing init.vim deleted." | ||
|
|
||
| fi | ||
|
|
||
| cp "$SOURCE" "$DESTINATION" | ||
| echo "init.vim copied successfully." | ||
| else | ||
| echo "SOURCE init.vim file not found in ~ |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you have a conflicting shortcut between your
NERDTreeandMultiple cursors