Skip to content

Instantly share code, notes, and snippets.

@secondarykey
Created April 11, 2013 15:10
Show Gist options
  • Save secondarykey/5364165 to your computer and use it in GitHub Desktop.
Save secondarykey/5364165 to your computer and use it in GitHub Desktop.
let mapleader = '\\'
" Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
" Vundle本体
Bundle 'sgur/vundle'
"Vundleの設定
Bundle 'reinh/vim-makegreen'
Bundle 'lambdalisue/nose.vim'
Bundle 'Shougo/neocomplcache'
Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'motemen/git-vim'
Bundle 'nvie/vim-flake8'
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
"ファイルタイプを設定
syntax on
filetype on
filetype plugin indent on
au BufRead,BufNewFile *.vimproject set filetype=project
"ならないからそのまま指定
set list
set listchars=eol:¬,tab:▸_
set nu
"カーソルの設定
set cursorline
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
augroup END
:hi clear CursorLine
:hi CursorLine gui=underline
highlight CursorLine ctermbg=black guibg=black
"インデント
set autoindent
let g:neocomplcache_enable_at_startup = 1 " 起動時に有効化
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment