Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " General
- set nocompatible
- set history=100
- " View
- "colorscheme desert
- syntax on
- set number
- set title
- set ruler
- set nolist
- " Filetype specific settings
- " Set any other file type specific settings
- " in ~/.vim and ~/.vim/after
- " Type :set runtimepath to see you runtime path.
- filetype plugin indent on
- " Other programming staffs
- set showmatch
- "入力モード表示
- set showmode
- "前の行と同じインデントにする
- set autoindent
- " 文字コードの設定
- set encoding=utf8
- " ペースト時にインデントを崩さないようにする
- set paste
- " タブ幅
- set tabstop=4
- " Tabキーを押した時のスペースの量
- "set softtabstop=4
- " 自動的に挿入されるタブ幅
- set shiftwidth=1
- " 自動インデント
- set autoindent
- " BackSpaceの挙動を普通に
- "set backspace=indent,eol,start
- " -------------------
- " 検索
- " -------------------
- " インクリメンタル検索を有効化
- set incsearch
- " 検索結果の文字列をハイライト表示
- set hlsearch
- " 大文字小文字を無視して検索
- set ignorecase
- " 大文字を入力した時のみ大文字小文字を区別
- set smartcase
- " バッファを切り替えてもUndoできるようにする
- set hidden
- autocmd FileType python setl autoindent
- autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
- autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4
- "入力モード時、ステータスラインのカラーを変更
- augroup InsertHook
- autocmd!
- autocmd InsertEnter * highlight StatusLine guifg=#ccdc90 guibg=#2E4340
- autocmd InsertLeave * highlight StatusLine guifg=#2E4340 guibg=#ccdc90
- augroup END
- " File system
- set directory=$VIM/.vimfiles/tmp
- set backupdir=$VIM/.vimfiles/backup
- set viminfo+=n$VIM/.vimfiles/_viminfo
Add Comment
Please, Sign In to add comment