Guest User

Untitled

a guest
Dec 7th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.84 KB | None | 0 0
  1. " General
  2. set nocompatible
  3. set history=100
  4.  
  5. " View
  6. "colorscheme desert
  7. syntax on
  8. set number
  9. set title
  10. set ruler
  11. set nolist
  12.  
  13. " Filetype specific settings
  14. " Set any other file type specific settings
  15. " in ~/.vim and ~/.vim/after
  16. " Type :set runtimepath to see you runtime path.
  17. filetype plugin indent on
  18.  
  19. " Other programming staffs
  20. set showmatch
  21.  
  22. "入力モード表示
  23. set showmode
  24.  
  25. "前の行と同じインデントにする
  26. set autoindent
  27.  
  28. " 文字コードの設定
  29. set encoding=utf8
  30.  
  31. " ペースト時にインデントを崩さないようにする
  32. set paste
  33.  
  34. " タブ幅
  35. set tabstop=4
  36.  
  37. " Tabキーを押した時のスペースの量
  38. "set softtabstop=4
  39.  
  40. " 自動的に挿入されるタブ幅
  41. set shiftwidth=1
  42.  
  43. " 自動インデント
  44. set autoindent
  45.  
  46. " BackSpaceの挙動を普通に
  47. "set backspace=indent,eol,start
  48.  
  49.  
  50. " -------------------
  51. " 検索
  52. " -------------------
  53. " インクリメンタル検索を有効化
  54. set incsearch
  55. " 検索結果の文字列をハイライト表示
  56. set hlsearch
  57. " 大文字小文字を無視して検索
  58. set ignorecase
  59. " 大文字を入力した時のみ大文字小文字を区別
  60. set smartcase
  61.  
  62.  
  63. " バッファを切り替えてもUndoできるようにする
  64. set hidden
  65.  
  66. autocmd FileType python setl autoindent
  67. autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
  68. autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4
  69.  
  70. "入力モード時、ステータスラインのカラーを変更
  71. augroup InsertHook
  72. autocmd!
  73. autocmd InsertEnter * highlight StatusLine guifg=#ccdc90 guibg=#2E4340
  74. autocmd InsertLeave * highlight StatusLine guifg=#2E4340 guibg=#ccdc90
  75. augroup END
  76.  
  77. " File system
  78. set directory=$VIM/.vimfiles/tmp
  79. set backupdir=$VIM/.vimfiles/backup
  80. set viminfo+=n$VIM/.vimfiles/_viminfo
Add Comment
Please, Sign In to add comment