Last active
November 14, 2024 01:56
-
-
Save ChifuyuArabelio/fab10a7729e4ebfdb7a74d31114e3014 to your computer and use it in GitHub Desktop.
Vim Setting(VundleVim/Vundle, Plugin)
This file contains 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
" ================================================== | |
" Vim - Setting / Global | |
" ================================================== | |
set secure | |
" スクリプトエンコーディングの設定 | |
scriptencoding utf-8 | |
" Vim を Vi 互換モードから外す | |
set nocompatible | |
" エンコーディング設定 | |
set encoding=utf-8 | |
" 履歴の設定 | |
set history=1000 | |
" 行番号を表示 | |
set number | |
" ステータスバーを常に表示 | |
set laststatus=2 | |
" コマンドをステータスバーに表示 | |
set showcmd | |
" 現在の行をハイライト表示 | |
set cursorline | |
" 補完メニューの設定 | |
set completeopt=menuone,preview | |
" コマンドライン補完時にメニューを表示 | |
set wildmenu | |
" 全角文字の幅設定 | |
set ambiwidth=double | |
" ================================================== | |
" Setting / File | |
" ================================================== | |
" ファイルエンコーディングの順序 | |
set fileencodings=ucs-bom,utf-8,cp932,euc-jp,sjis | |
" ファイルフォーマットを UNIX と DOS に設定 | |
set fileformats=unix,dos | |
" 新規ファイルのデフォルトフォーマットを UNIX に設定 | |
set fileformat=unix | |
" ファイルが外部で変更されたら自動的に再読み込み | |
set autoread | |
" ================================================== | |
" Setting / Indent | |
" ================================================== | |
" インデント設定 | |
set smartindent | |
" タブ文字の幅を 4 に設定 | |
set tabstop=4 | |
" インデントに使用するスペースの幅を 4 に設定 | |
set softtabstop=4 | |
" インデントの幅を 4 に設定 | |
set shiftwidth=4 | |
" タブ文字をスペースに変換 | |
set expandtab | |
" ================================================== | |
" Setting / Saerch | |
" ================================================== | |
" 検索結果をハイライト表示 | |
set hlsearch | |
" 検索を逐次表示 | |
set incsearch | |
" 大文字・小文字を区別しないで検索 | |
set ignorecase | |
" 検索パターンに大文字が含まれる場合は区別 | |
set smartcase | |
" ================================================== | |
" Setting / Clipboard | |
" ================================================== | |
" システムクリップボードを有効 | |
set clipboard=unnamedplus | |
set clipboard+=unnamed | |
" ================================================== | |
" Setting / Swap | |
" ================================================== | |
" スワップファイルの生成不可 | |
set noswapfile | |
" バックアップファイルの生成不可 | |
set nobackup | |
" アンドゥファイルの生成不可 | |
set noundofile | |
" ================================================== | |
" Plugins | |
" ================================================== | |
" Vundleプラグインの設定 | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" Plugin 'jnurmine/Zenburn' | |
Plugin 'cocopon/iceberg.vim' | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'nvie/vim-flake8' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'honza/vim-snippets' | |
Bundle 'nerdtree' | |
call vundle#end() | |
" ファイルタイププラグインとインデントを有効化 | |
filetype plugin indent on | |
" ================================================== | |
" Syntax highligth | |
" ================================================== | |
" シンタックスハイライトを有効化 | |
syntax on | |
" Python ハイライト 設定 | |
let python_highlight_all=1 | |
" カラースキーム | |
" set background=dark | |
" colorscheme zenburn | |
set background=light | |
colorscheme iceberg | |
" ================================================== | |
" Airline | |
" ================================================== | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#tabline#buffer_idx_mode = 1 | |
let g:airline#extensions#whitespace#mixed_indent_algo = 1 | |
" let g:airline_theme = 'wombat' | |
" let g:airline_theme = 'murmur' | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
" unicode symbols | |
let g:airline_symbols.crypt = '🔒' | |
let g:airline_symbols.linenr = '¶' | |
let g:airline_symbols.maxlinenr = '☰' | |
let g:airline_symbols.branch = '⎇' | |
let g:airline_symbols.paste = '∥' | |
let g:airline_symbols.spell = 'Ꞩ' | |
let g:airline_symbols.notexists = '∄' | |
let g:airline_symbols.whitespace = 'Ξ' | |
" powerline symbols | |
let g:airline_left_sep = '' | |
let g:airline_left_alt_sep = '' | |
let g:airline_right_alt_sep = '' | |
let g:airline_symbols.branch = '' | |
let g:airline_symbols.readonly = '' | |
let g:airline_symbols.linenr = '' | |
" old vim-powerline symbols | |
let g:airline_right_sep = '⮂' | |
let g:airline_right_alt_sep = '⮃' | |
" ================================================== | |
" UltiSnips | |
" ================================================== | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<c-b>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
let g:UltiSnipsEditSplit="vertical" | |
" ================================================== | |
" NERDTree | |
" ================================================== | |
" Vim を開いた際にNERDTree も表示 | |
autocmd vimenter * if !argc() | NERDTree | endif | |
" Nerdtree を開いた際に隠しファイルをデフォルトで表示 | |
let NERDTreeShowHidden=1 | |
" ================================================== | |
" Shortcut | |
" ================================================== | |
" Nerdtree 表示 | |
map <C-t> :NERDTreeToggle<CR> | |
" ツリーからタブへ移動 | |
nmap <silent> <C-l> :wincmd l<CR> | |
" タブからツリーへ移動 | |
nmap <silent> <C-h> :wincmd h<CR> | |
" 次のタブに移動 | |
nnoremap <silent> <C-n> :tabnext<CR> | |
" 前のタブに移動 | |
nnoremap <silent> <C-p> :tabprevious<CR> | |
" ================================================== | |
" Cursor | |
" ================================================== | |
if has('vim_starting') | |
" 入力時: 縦線・点滅あり | |
let &t_SI .= "\e[5 q" | |
" 通常時: ブロック・点滅あり | |
let &t_EI .= "\e[1 q" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
iTerm2:
Vim
VundleVim
Install
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
NERDTree
Install
Plugin install
Powerline-font
clone
install
cd fonts ./install.sh
clean-up a bit
cd .. rm -rf fonts
Terminal settings
iTerm2
Terminal (MacOS default application)