Posts

Showing posts from May, 2024

How to Push to a GitHub Repository in IntelliJ

Image
1. Initialize and Connect the Git Repository # Run in the terminal from the project root git init git remote add origin https://github.com/[user]/[repository].git 2. Configure Git in IntelliJ Select VCS → Enable Version Control Integration . Choose Git and click OK . 3. Connect Your GitHub Account Go to File → Settings (on Windows) or IntelliJ IDEA → Preferences (on macOS). Navigate to Version Control → GitHub . Click Add Account ( + ). Select Log In with Token... and enter your GitHub Personal Access Token. 4. Add and Commit Files Go to VCS → Git → Add (or use the shortcut Ctrl+Alt+A ). Select the files you want to commit. Go to VCS → Commit (or use the shortcut Ctrl+K ). Write a commit message and click Commit . 5. Push Go to VCS → Git → Push (or use the shortcut Ctrl+Shift+K ). Click the Push button. Simpler Method (Using IntelliJ's Built-in Feature) Go to VCS → Share Project on GitHub . Set the repository name to vita-user-...

Setting Up Vim with vim-plug on Ubuntu

This walkthrough will guide you through setting up Vim with vim-plug, a minimalist Vim plugin manager, on your Ubuntu system. This setup will enhance your Vim experience with useful plugins and configurations. Step 1:  Create Necessary Directories First, we'll create the necessary directories for backups, swap files, and undo history.   $ mkdir -p ~/.vim/backup ~/.vim/swap ~/.vim/undo Step 2: Install vim-plug download the plug.vim script from the vim-plug GitHub repository and save it to the ~/.vim/autoload/ directory.   $ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \     https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim Step 3: Configure .vimrc Copy the following settings into the ~/.vimrc file in your Linux (Ubuntu) user account   " Basic settings     set hlsearch " Highlight search results   set nu " Show line numbers   set autoindent " Enable automatic indentation   set scrolloff = 2   set ...

Setting Up gVim (_vimrc) on Windows

Step 1: Install Vim First, make sure you have Vim installed on your Windows machine. Step 2: Install Pathogen Pathogen is a Vim plugin manager that simplifies the process of installing and managing plugins. To install Pathogen on Windows, follow these steps: PowerShell 7.4.2 PS C:\Users\jason> New-Item -ItemType Directory -Force -Path $HOME\vimfiles\autoload, $HOME\vimfiles\bundle Directory: C:\Users\jason\vimfiles Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 2024-06-02 9:47 PM autoload d---- 2024-06-02 9:47 PM bundle PS C:\Users\jason> Invoke-WebRequest -Uri https://tpo.pe/pathogen.vim -OutFile $HOME\vimfiles\autoload\pathogen.vim PS C:\Users\jason> cd $HOME\vimfiles\bundle PS C:\Users\jason\vimfiles\bundle> git clone https://github.com/flazz/vim-colorschemes.git Cloning into 'vim-colorschemes'... remote:...