Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vimレベルが5ぐらいになった

  • Loading branch information...
commit 73f41ca718804eb0a1340b4a67b11141ca8c6b45 1 parent 0144274
@keitaoouchi authored
1  .vim/bundle/nginx.vim
@@ -0,0 +1 @@
+Subproject commit 152bbb2dc00c2df37049ccf75f68f294208c72cb
1  .vim/bundle/sudo.vim
@@ -0,0 +1 @@
+Subproject commit 060f0250d6f399d1cf9b15eaad3d55b3fbad4b0d
1  .vim/bundle/syntastic
@@ -0,0 +1 @@
+Subproject commit 4b61f4b2b9de642c054db9bcdbfa99480b2909aa
1  .vim/bundle/tagbar
@@ -0,0 +1 @@
+Subproject commit eab0e67d1bb46884b7285cbe206f259fb2bade70
1  .vim/bundle/vim-indent-guides
@@ -0,0 +1 @@
+Subproject commit cf6f4d46614ffd968b80f876b618ee77c5ccc8b3
View
34 .vimrc
@@ -69,6 +69,20 @@ Bundle 'lambdalisue/vim-django-support'
" Refactoring in python
Bundle 'sontek/rope-vim'
+" indent guides
+Bundle 'nathanaelkane/vim-indent-guides'
+
+" nginx syntax highlight
+Bundle 'nginx.vim'
+
+" syntax check
+Bundle 'scrooloose/syntastic'
+
+" tagbar
+Bundle 'majutsushi/tagbar'
+
+Bundle 'sudo.vim'
+
filetype plugin indent on
" ----------------------------------------
@@ -108,6 +122,22 @@ set wildmode=list:full
set noswapfile
set clipboard=unnamed,autoselect
+" 保存時に行末の空白を除去する
+autocmd BufWritePre * :%s/\s\+$//ge
+" 保存時にtabをスペースに変換する
+autocmd BufWritePre * :%s/\t/ /ge
+
+" Tagbarを有効にする
+nmap <F8> :TagbarToggle<CR>
+
+" ref.vimを利用する
+let g:ref_use_vimproc = 0 " vimprocをインストールしてない場合は0を指定
+nmap ,rr :<C-u>Ref refe<Space>
+let g:ref_phpmanual_path = '/home/oouchi/Dropbox/phpmanual'
+nmap ,rp :<C-u>Ref phpmanual<Space>
+" indentation guides
+"let g:indent_guides_enable_on_vim_startup=1
+"let g:indent_guides_guide_size=4
" ----------------------------------------
" Search
" ----------------------------------------
@@ -159,14 +189,14 @@ map <Leader>x <Plug>NERDCommenterToggle
" Quickrun
" ----------------------------------------
-" testからはじまるpythonファイルをテストコードとする
+" testからはじまるpythonファイルをテストコードとする
autocmd BufWinEnter,BufNewFile test*.py set filetype=python.test
" tesstからはじまるphpファイルをテストコードとする
autocmd BufWinEnter,bufNewFile *Test.php set filetype=php.test
" Space q でquickrunを実行
silent! map <unique> <Space>q <Plug>(quickrun)
-" quickrun.vim 用設定
+" quickrun.vim 用設定
let g:quickrun_config = {}
let g:quickrun_config['*'] = {'runmode': "async:remote:vimproc", 'split':'below'}
let g:quickrun_config['python.test'] = {'command': 'nosetests', 'exec': ['%c -v %s']}
Please sign in to comment.
Something went wrong with that request. Please try again.