Installation and configuration of oh my bash and Vim editor.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.1 KiB

1 year ago
  1. # Oh My Bash and `.bashrc file`
  2. Next, to make easier work with the bash system let us install the oh-my-bash tool:
  3. ```
  4. $ bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
  5. ```
  6. - make an alias
  7. - export `export PATH="/home/username/anaconda/bin:$PATH"` or `PATH="/home/username/anaconda/bin:$PATH"`
  8. - `ln -s``
  9. # Install Vim Plugin manager
  10. First we need to install the Vim plugin manager to easily add and remove packages into vim editor. Thus, let us add the `plugin.vim`:
  11. ```
  12. curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  13. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  14. ```
  15. ## Usage
  16. Add a vim-plug section to your `~/.vimrc` file:
  17. 1. Begin the section with call plug#begin([PLUGIN_DIR])
  18. 2. List the plugins with `Plug` commands
  19. 3. call `plug#end()` to update `&runtimepath` and initialize plugin system
  20. * Automatically executes `filetype plugin indent on and syntax enable`. You can revert the settings after the call. e.g. `filetype indent off`, `syntax off`, etc.
  21. ## Example
  22. ```
  23. call plug#begin()
  24. " The default plugin directory will be as follows:
  25. " - Vim (Linux/macOS): '~/.vim/plugged'
  26. " - Vim (Windows): '~/vimfiles/plugged'
  27. " - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged'
  28. " You can specify a custom plugin directory by passing it as the argument
  29. " - e.g. `call plug#begin('~/.vim/plugged')`
  30. " - Avoid using standard Vim directory names like 'plugin'
  31. " Make sure you use single quotes
  32. " Any valid git URL is allowed
  33. Plug 'https://github.com/junegunn/vim-github-dashboard.git'
  34. " On-demand loading
  35. Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
  36. " Initialize plugin system
  37. call plug#end()
  38. ```
  39. For a better understanding on how to use the Vim Plugin manager visit the [git webpage](https://github.com/junegunn/vim-plug).
  40. # The `.vimrc` file
  41. Next you will see the contents of the `vimrc` file in this repository:
  42. ```
  43. ```
  44. after copy and paste, or added the require code call the plug installer by entering on command mode in Vim (pressing `Esc` key), then, call `:PlugInstall` to update and install the new Plugins.