Last active
January 6, 2018 23:44
-
-
Save sorashido/0fbb3153d247714df3b8699de08bd1d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
colorscheme dracula | |
"全角スペースの可視化 | |
highlight ZenkakuSpace cterm=underline ctermfg=darkgrey gui=underline guifg=darkgrey | |
"透明度の変更 | |
set transparency=5 |
This file contains hidden or 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
" カラー | |
syntax on | |
" バックアップファイルを作らない | |
set nobackup | |
set noswapfile | |
set undodir=~/.dotfiles/vim/undo | |
set tabstop=2 | |
" ステータスラインを常に表示(0:表示しない、1:2つ以上ウィンドウがある時だけ表示) | |
set laststatus=2 | |
" 大文字小文字を区別しない | |
set ignorecase | |
" 検索時にハイライトをつける | |
set hlsearch | |
" 行番号 | |
set number | |
" 自動でカッコを付ける(プラグインに頼ると日本語入力ができなくなるので断念) | |
inoremap { {}<Left> | |
inoremap [ []<Left> | |
inoremap ( ()<Left> | |
" 削除キーでyankしない | |
nnoremap x "_x | |
"nnoremap d "_d | |
nnoremap D "_D | |
" ウィンドウの分割 | |
nnoremap s <Nop> | |
nnoremap sj <C-w>j | |
nnoremap sk <C-w>k | |
nnoremap sl <C-w>l | |
nnoremap sh <C-w>h | |
nnoremap sJ <C-w>J | |
nnoremap sK <C-w>K | |
nnoremap sL <C-w>L | |
nnoremap sH <C-w>H | |
nnoremap sn gt | |
nnoremap sp gT | |
nnoremap sr <C-w>r | |
nnoremap s= <C-w>= | |
nnoremap sw <C-w>w | |
nnoremap so <C-w>_<C-w>| | |
nnoremap sO <C-w>= | |
nnoremap sN :<C-u>bn<CR> | |
nnoremap sP :<C-u>bp<CR> | |
nnoremap st :<C-u>tabnew<CR> | |
nnoremap sT :<C-u>Unite tab<CR> | |
nnoremap ss :<C-u>sp<CR> | |
nnoremap sv :<C-u>vs<CR> | |
nnoremap sq :<C-u>q<CR> | |
nnoremap sQ :<C-u>bd<CR> | |
nnoremap sb :<C-u>Unite buffer_tab -buffer-name=file<CR> | |
nnoremap sB :<C-u>Unite buffer -buffer-name=file<CR> | |
set clipboard=unnamed | |
"dein Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/Users/tela/.dotfiles/vim/repos/github.com/Shougo/dein.vim | |
" Required: | |
if dein#load_state('/Users/tela/.dotfiles/vim') | |
call dein#begin('/Users/tela/.dotfiles/vim') | |
" Let dein manage dein | |
" Required: | |
call dein#add('/Users/tela/.dotfiles/vim/repos/github.com/Shougo/dein.vim') | |
" Add or remove your plugins here: | |
call dein#add('Shougo/neocomplete.vim') | |
call dein#add('Shougo/neosnippet.vim') | |
call dein#add('Shougo/neosnippet-snippets') | |
call dein#add('ctrlpvim/ctrlp.vim') | |
call dein#add('Yggdroot/indentLine') | |
call dein#add('scrooloose/nerdtree') | |
call dein#add('vim-airline/vim-airline') | |
call dein#add('vim-airline/vim-airline-themes') | |
call dein#add('tomtom/tcomment_vim') | |
call dein#add('dracula/vim') | |
" Required: | |
call dein#end() | |
call dein#save_state() | |
endif | |
" Required: | |
filetype plugin indent on | |
syntax enable | |
" If you want to install not installed plugins on startup. | |
"if dein#check_install() | |
" call dein#install() | |
"endif | |
"End dein Scripts------------------------- | |
" Vimshell | |
" set g:vimshell_data_directory+=/Users/tela/.dotfiles/vim/ | |
" | |
" neocomplete | |
let g:neocomplete#enable_at_startup = 1 | |
" ctrlp.vim | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
let g:ctrlp_working_path_mode = 'ra' | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.jpg,*.png | |
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' | |
" let g:ctrlp_custom_ignore = { | |
" \ 'dir': '\v[\/]\.(git|hg|svn)$', | |
" \ 'file': '\v\.(exe|so|dll)$', | |
" \ 'link': 'some_bad_symbolic_links', | |
" \ } | |
" nerdtree | |
let NERDTreeShowHidden = 1 | |
nmap <Leader><Tab> <C-w>w | |
" vim-airline | |
let g:airline_theme='luna' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment