Config File Collection
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.vimrc 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. "
  2. " General Options
  3. "
  4. " Disable compatibility mode
  5. "set nocp
  6. "
  7. " Indent Options
  8. "
  9. " New lines inherit the indentation of previous lines.
  10. set autoindent
  11. " Convert tabs to spaces.
  12. set expandtab
  13. " Enable indentation rules that are file-type specific.
  14. "set filetype indent on
  15. " When shifting lines, round the indentation to the nearest multiple of "shiftwidth."
  16. set shiftround
  17. " When shifting, indent using four spaces.
  18. set shiftwidth=4
  19. " Insert "tabstop" number of spaces when the "tab" key is pressed.
  20. set smarttab
  21. " Indent using four spaces.
  22. set tabstop=4
  23. "
  24. " Search Options
  25. "
  26. " Enable search highlighting.
  27. set hlsearch
  28. " Ignore case when searching.
  29. set ignorecase
  30. " Incremental search that shows partial matches.
  31. set incsearch
  32. " Automatically switch search to case-sensitive when search query contains an uppercase letter.
  33. set smartcase
  34. "
  35. " Performance Options
  36. "
  37. " Limit the files searched for auto-completes.
  38. "set complete-=i
  39. " Don't update screen during macro and script execution.
  40. "set lazyredraw
  41. "
  42. " Text Rendering Options
  43. "
  44. " Always try to show a paragraph's last line.
  45. "set display+=lastline
  46. " Use an encoding that supports unicode.
  47. set encoding=utf-8
  48. " Avoid wrapping a line in the middle of a word.
  49. set linebreak
  50. " The number of screen lines to keep above and below the cursor.
  51. set scrolloff=3
  52. " The number of screen columns to keep to the left and right of the cursor.
  53. set sidescrolloff=5
  54. " Enable syntax highlighting.
  55. syntax enable
  56. " Enable line wrapping.
  57. set wrap
  58. "
  59. " User Interface Options
  60. "
  61. colorscheme elflord
  62. " Always display the status bar.
  63. set laststatus=2
  64. " Statusline color
  65. highlight NormalColor ctermbg=11 ctermfg=0
  66. highlight InsertColor ctermbg=14 ctermfg=0
  67. highlight VisualColor ctermbg=9 ctermfg=0
  68. highlight CommandColor ctermbg=15 ctermfg=0
  69. highlight FilenameColor ctermbg=10 ctermfg=0
  70. highlight RightColor ctermbg=8 ctermfg=15
  71. set statusline=
  72. set statusline+=%#NormalColor#%{(mode()=='n')?'\ \ NORMAL\ \ ':''}
  73. set statusline+=%#InsertColor#%{(mode()=='i')?'\ \ INSERT\ \ ':''}
  74. set statusline+=%#VisualColor#%{(mode()=='v')?'\ \ VISUAL\ \ ':''}
  75. set statusline+=%#CommandColor#%{(mode()=='c')?'\ \ COMMAND\ ':''}
  76. set statusline+=%#FilenameColor# " Statusline format NormalColor
  77. set statusline+=\ %f " Filename
  78. set statusline+=\ %m " Modified token
  79. set statusline+=%= " Allign right
  80. set statusline+=%#RightColor# " Statusline format CursorColumn
  81. set statusline+=\ %y " file type
  82. set statusline+=\ %{&fileencoding?&fileencoding:&encoding} " encoding
  83. set statusline+=\[%{&fileformat}\] " file format
  84. set statusline+=\ %p%% " line percent
  85. set statusline+=\ %l:%c " line:column
  86. set statusline+=\ [0x%B]\ " ASCII hex code under cursor
  87. " Always show cursor position.
  88. "set ruler
  89. " Display command line's tab complete options as a menu.
  90. "set wildmenu
  91. " Maximum number of tab pages that can be opened from the command line.
  92. "set tabpagemax=50
  93. " Change color scheme.
  94. "set colorscheme wombat256mod
  95. " Highlight the line currently under cursor.
  96. set cursorline
  97. " Show line numbers on the sidebar.
  98. set number
  99. " Show line number on the current line and relative numbers on all other lines.
  100. set relativenumber
  101. " Disable beep on errors.
  102. set noerrorbells
  103. " Flash the screen instead of beeping on errors.
  104. set visualbell
  105. " Enable mouse for scrolling and resizing.
  106. "set mouse=a
  107. " Set the window's title, reflecting the file currently being edited.
  108. "set title
  109. " Use colors that suit a dark background.
  110. "set background=dark
  111. "
  112. " Code Folding Options
  113. "
  114. " Fold based on indention levels.
  115. "set foldmethod=indent
  116. " Only fold up to three nested levels.
  117. "set foldnestmax=3
  118. " Disable folding by default.
  119. "set nofoldenable
  120. "
  121. " Miscellaneous Options
  122. "
  123. " Automatically re-read files if unmodified inside Vim.
  124. "set autoread
  125. " Allow backspacing over indention, line breaks and insertion start.
  126. "set backspace=indent,eol,start
  127. " Directory to store backup files.
  128. set backupdir=~/.cache/vim
  129. " Display a confirmation dialog when closing an unsaved file.
  130. "set confirm
  131. " Directory to store swap files.
  132. set dir=~/.cache/vim
  133. " Delete comment characters when joining lines.
  134. "set formatoptions+=j
  135. " Hide files in the background instead of closing them.
  136. "set hidden
  137. " Increase the undo limit.
  138. set history=1000
  139. " Ignore file's mode lines; use vimrc configurations instead.
  140. "set nomodeline
  141. " Disable swap files.
  142. "set noswapfile
  143. " Interpret octal as decimal when incrementing numbers.
  144. "set nrformats-=octal
  145. " The shell used to execute commands.
  146. "set shell
  147. " Enable spellchecking.
  148. "set spell
  149. " Ignore files matching these patterns when opening files based on a glob pattern.
  150. "set wildignore+=.pyc,.swp