Skip to content

Commit

Permalink
add tryu/caw.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
hisasann committed Mar 16, 2018
1 parent a1698b5 commit deabb37
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
9 changes: 3 additions & 6 deletions _gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@ if has('multi_byte_ime') || has('xim')
highlight CursorIM guibg=DarkCyan guifg=NONE
endif

if has('gui_macvim')
set transparency=10
" set guifont=Menlo:h12
set guifont=Ricty\ Regular\ for\ Powerline:h13
set guioptions-=T
endif
set guifont=Ricty\ Regular\ for\ Powerline:h13
set guioptions-=T

set textwidth=1000
set columns=800
set lines=300
set wrap " 長い行を折り返して表示 (nowrap:折り返さない)
set visualbell t_vb= " Beep音を消して、さらに画面のフラッシュもしない
au GUIEnter * simalt ~x " Windows で起動時に最大化

"特殊文字(SpecialKey)の見える化。listcharsはlcsでも設定可能。
"trailは行末スペース。
Expand Down
33 changes: 22 additions & 11 deletions _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@ NeoBundle 'jelera/vim-javascript-syntax'
" indent
NeoBundle 'jiangmiao/simple-javascript-indenter'

NeoBundle 'tyru/caw.vim'

" レインボーサイクロン!
NeoBundle 'daisuzu/rainbowcyclone.vim'

" ステータスラインをカッコよくする
NeoBundle 'vim-airline/vim-airline'
NeoBundle 'vim-airline/vim-airline-themes'

" tab の状態を保存
NeoBundle 'xolox/vim-session', { 'depends': [ 'xolox/vim-misc' ] }

call neobundle#end()

filetype plugin indent on " required!
Expand Down Expand Up @@ -247,6 +246,18 @@ endif
autocmd BufWritePre * :%s/\t/ /ge
" }}}

"---------------------------------------------------------------------------
" backup settings {{{
set backup
set backupdir=~/vim_backup
set swapfile
set directory=~/vim_swap
"set nobackup " バックアップ取らない
"set autoread " 他で書き換えられたら自動で読み直す
"set noswapfile " スワップファイル作らない
"set hidden " 編集中でも他のファイルを開けるようにする
" }}}

"---------------------------------------------------------------------------
" color settings {{{
" syntax color
Expand Down Expand Up @@ -280,7 +291,7 @@ set showmatch " 括弧の対応をハイライト
set backspace=indent,eol,start
set clipboard=unnamed
set pastetoggle=<F12>
set guioptions+=a
" set guioptions+=a

" insertモードを抜けるとIMEオフ
set noimdisable
Expand Down Expand Up @@ -703,6 +714,13 @@ let g:user_emmet_settings = {
let g:use_emmet_complete_tag = 1
" }}}

"---------------------------------------------------------------------------
" for tyru/caw.vim {{{
" コメントアウトを切り替えるマッピング例
nmap ,c <Plug>(caw:I:toggle)
vmap ,c <Plug>(caw:I:toggle)
" }}}

"---------------------------------------------------------------------------
" for bling/vim-airline {{{
if !exists('g:airline_symbols')
Expand Down Expand Up @@ -730,11 +748,4 @@ let g:airline#extensions#csv#enabled = 1
let g:airline_powerline_fonts = 1
" }}}

"---------------------------------------------------------------------------
" for xolox/vim-session {{{
let g:session_autosave = 'yes'
let g:session_autoload = 'yes'
" }}}


" }}}

0 comments on commit deabb37

Please sign in to comment.