Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

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: Enumerating objects: 1828, done. remote: Total 1828 (delta 0), reused 0 (delta 0), pack-reused 1828Receiving... Receiving objects: 100% (1828/1828), 1.93 MiB | 629.00 KiB/s, done. Resolving deltas: 100% (615/615), done. warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree: 'colors/darkBlue.vim' 'colors/darkblue.vim' PS C:\Users\jason\vimfiles\bundle>



Step 3: Update "C:\Program Files (x86)\Vim\_vimrc"



  " Basic settings
  execute pathogen#infect()
  syntax on
  filetype plugin indent on
 
  set hlsearch " Highlight search results
  set nu " Show line numbers
  set autoindent " Enable automatic indentation
  set scrolloff=2 " Keep at least 2 lines above and below the cursor
  set wildmode=longest,list " Command-line completion mode
  set tabstop=4 " Set tab width to 4 spaces
  set shiftwidth=4 " Set indentation width to 4 spaces
  set expandtab " Use spaces instead of tabs
  set smartindent " Enable smart indentation
  set cindent " Enable C-style indentation
  set smartcase " Case-insensitive search unless uppercase is used
  set incsearch " Show matching results while typing search query
  set backspace=eol,start,indent " Enable backspace in insert mode
  set history=256 " Set command history length
  set laststatus=2 " Always display the status line
  set showmatch " Highlight matching parentheses
 
  " File encoding settings
  set encoding=utf-8
  set fileencoding=utf-8
  set fileencodings=ucs-bom,utf-8,cp949,latin1
 
  " UI settings
  set ruler " Show the cursor position
  set statusline=%<%l:%v\ [%P]%=%a\ %h%m%r\ %F\ " Custom status line
  colorscheme codeschool " Set color scheme
  set guifont=D2Coding:h12 " Set GUI font and size
 
  " Backup and undo settings
  set backup " Enable backup file creation
  set undofile " Save undo history to file
  set backupdir=C:\Temp " Set backup file directory
  set directory=C:\Temp " Set swap file directory
  set undodir=C:\Temp " Set undo file directory
 
  " Enable syntax highlighting
  if has("syntax")
    syntax on
  endif
 
  " Locale settings
  let $LANG = 'ko_KR.UTF-8'
 
  " Windows style key bindings and menu settings
  source $VIMRUNTIME/mswin.vim " Enable Windows-style key bindings
  behave mswin " Enable Windows-style behavior
  source $VIMRUNTIME/delmenu.vim " Delete existing menu items
  source $VIMRUNTIME/menu.vim " Load default menu items
 

Comments

Popular posts from this blog

Resolving Key Exchange Failure When Connecting with SecureCRT to OpenSSH

SecureCRT] How to Back Up and Restore SecureCRT Settings on Windows

How to Set Up Vaultwarden (Bitwarden) on Synology NAS (Best Free Alternative to LastPass)