Thursday, January 23, 2020

HS-PCUTILITY

【Move to another page】
Quote
https://ift.tt/38zE5aK
HS-PCUTILITY

Atomdraco: ←Created page with '=<span style="color:#006400">Utility Tools Setup</span>= == <span style="color:#FF6A6A">VIM</span> == * Run ''echo $HOME'' in VIM to see where is it. To set HOME...'


=<span style="color:#006400">Utility Tools Setup</span>=
== <span style="color:#FF6A6A">VIM</span> ==
* Run ''echo $HOME'' in VIM to see where is it. To set HOME path correctly, go to Window's '''Environment Variables'''. Add a new variable under the user:
: '''''Variable name''''':HOME
: '''''Variable value''''': C:\Users\<user name>
* Place your '''_vimrc''' & '''_gvimrc''' under the ''$HOME'' directory
* VIM color scheme links:
:+ [https://ift.tt/2t4DSKc 8 favorite schemes] (Some schemes required to install '''''autoload/xxx.vim''''' first, such as ''palenight.vim'')
* Some good vimrc examples:
:+ [https://ift.tt/2cHVNQ7 A Good vimrc]
:+ [https://ift.tt/2Bj19xD The cleanest vimrc you'll ever see]
:+ [https://ift.tt/1BWN2Jo A clean vimrc]
:+ My .gvimrc example

" Reference:
" ========================================================
" 1. https://ift.tt/2cHVNQ7
" 2. https://ift.tt/1BWN2Jo
" ========================================================

" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" ================ Color scheme ======================
syntax on
colorscheme palenight

" ================ General Config ====================
set lines=55 columns=100 " Window size
set number
set backspace=indent,eol,start "Allow backspace in insert mode
set history=1000
set showcmd
"set gcr=a:blinkon0 "Disable cursor blink
set cursorline
set lazyredraw
set showmatch

" ================ Indentation ======================
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab " tabs are spaces

" Display tabs and trailing spaces visually
"set list listchars=tab:\ \ ,trail:ยท

" ================ Search ===========================
set incsearch " Find the next match as we type the search
set hlsearch " Highlight searches by default
set ignorecase " Ignore case when searching...
set smartcase " ...unless we type a capital

nnoremap <CR> :nohlsearch<CR><CR> " turn off search hilighting with <CR>

" ================ Folds ============================
set foldenable
set foldlevelstart=10
set foldnestmax=10
nnoremap <space> za
set foldmethod=indent " fold based on indent level

" =============== Movement ==========================
" move vertically by visual line
nnoremap j gj
nnoremap k gk

" highlight last inserted text
nnoremap gV `[v`]

" ================ Turn Off Swap Files ==============
set noswapfile
set nobackup
set nowb

" ================ Persistent Undo ==================
" Keep undo history across sessions, by storing in file.
" Only works all the time.
if has('persistent_undo') && isdirectory(expand('~').'/.vim/backups')
silent !mkdir ~/.vim/backups > /dev/null 2>&1
set undodir=~/.vim/backups
set undofile
endif

" ================ Scrolling ========================
set scrolloff=8 "Start scrolling when we're 8 lines away from margins
set sidescrolloff=15
set sidescroll=1

" ================ Custom Settings ========================
"so ~/.yadr/vim/settings.vim
"put an alias file here

&nbsp;
== <span style="color:#FF6A6A">Git</span> ==
* Create '''''.bashrc''''' and place it in '''~''' (HOME) directory
* Some links for customization:
:+ [https://ift.tt/36e0Cbu Customize Git shell prompt]
:+ [https://ift.tt/2unUz6W Styling Git Bash with Hyper term]
:+ [https://ift.tt/1ORj2lI Git prompt - bash]
:+ [https://ift.tt/2RPjb0C A guide to building a great .bashrc
(Some git alias)]
* [https://ift.tt/1b7NdW2 git-config]
* [https://ift.tt/2fGrI3x 13 Git Aliases]
* [https://ift.tt/30OgkZV Git Wiki - Aliases]
&nbsp;
== <span style="color:#FF6A6A">Beyond Compare</span> ==
* To setup BC working with Git on Window, edit <span style="color:#EE7600">C:\Users\<user name>\'''.gitconfig'''</span>
: - using BC version 4.2.x
: - git version 2.20.x
[diff]
tool = bc3
[difftool]
prompt = false
[difftool "bc3"]
trustExitCode = true
cmd = "'/C/Program Files/Beyond Compare 4/bcomp'" \"$LOCAL\" \"$REMOTE\"
[merge]
tool = bc3
[mergetool]
prompt = false
[mergetool "bc3"]
trustExitCode = true
cmd = "'/C/Program Files/Beyond Compare 4/bcomp'" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"

* To open the mergetool & difftool
git difftool <filename> #diff file
git difftool --dir-diff #diff folder
git mergetool <filename> #3-2ay merge

* More about how to setup: [https://ift.tt/2NSq7IO <span style="color:#009ACD">'''Using Beyond Compare with Version Control Systems'''</span>]

&nbsp;
== <span style="color:#FF6A6A">Virtual Desktop</span> ==
* If you have <u>Windows 10</u>, the virtual desktop is building, called '''Task View'''. Here are some shortcuts (Resource [https://ift.tt/2iCTWzK from CNET])
:+ <span style="color:#FF82AB">Window + Tab</span> - bring up the '''''Task View''' (or click on the ''Task View'' button with overlapping rectangles on Taskbar)
:+ <span style="color:#FF82AB">Window + Ctrl + D</span> - add a new virtual desktop
:+ <span style="color:#FF82AB">Window + Ctrl + Left/Right Arrow</span> - switch between desktops
:+ <span style="color:#FF82AB">Window + Ctrl + F4</span> - close the desktop currently on

== <span style="color:#FF6A6A">PowerShell</span> ==
* <u>Window 10</u> has '''PowerShell''' is xterm-like command line utility, to access:
:- <u>Using Shortcut</u>: Press keys <span style="color:#FF82AB">'''Windows + X'''</span> to open the advanced menu (WinX menu or power user's Start Menu), choose ''PowerShell''
:- <u>Open it in Start Menu</u>: Get into the Start Menu, open All apps, click the Windows PowerShell folder and tap Windows PowerShell.
:- <u>Open it through Command Prompt</u>: Launch Command Prompt, type '''''powershell''''' and press Enter.
* More info about PowerShell:
:+ [https://ift.tt/37hlL5Q Go pro: The power user's guide to PowerShell]
:+ [https://ift.tt/2RitRFL Replace Command Prompt with PowerShell and Vice Versa in Windows 10]
:+ [https://ift.tt/30nMgTQ Windows PowerShell Scripting Tutorial For Beginners]
:+ [https://ift.tt/2GifcnG Customize Your PowerShell Environment]
:+ [https://ift.tt/2uznW3B Tiny tweaks for PowerShell perfection]

&nbsp;
== <span style="color:#FF6A6A">Notepad++</span> ==
* [https://ift.tt/2tNDsLV Some Notepad++ color schemes]
* [https://ift.tt/2tJxZFR ViSimulator plugin]. Add the ''visimulator.dll'' to ''Notepad++/plugins'' folder. Restart Notepad++
* [https://ift.tt/3avdEVg INFOS on the "ViSimulator" N++ plugin]

January 23, 2020 at 11:09PM

注目の投稿

List of companies founded by University of Pennsylvania alumni

 投稿 L List of companies founded by University of Pennsylvania alumni 投稿者: Blogger さん 7  Nation's Most Visible Mass Gathering During Cor...

人気の投稿