Config File Collection
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

.vimrc 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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=1
  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. " Always display the status bar.
  62. set laststatus=2
  63. " Always show cursor position.
  64. set ruler
  65. " Display command line's tab complete options as a menu.
  66. "set wildmenu
  67. " Maximum number of tab pages that can be opened from the command line.
  68. "set tabpagemax=50
  69. " Change color scheme.
  70. "set colorscheme wombat256mod
  71. " Highlight the line currently under cursor.
  72. set cursorline
  73. " Show line numbers on the sidebar.
  74. set number
  75. " Show line number on the current line and relative numbers on all other lines.
  76. "set relativenumber
  77. " Disable beep on errors.
  78. set noerrorbells
  79. " Flash the screen instead of beeping on errors.
  80. set visualbell
  81. " Enable mouse for scrolling and resizing.
  82. set mouse=a
  83. " Set the window's title, reflecting the file currently being edited.
  84. set title
  85. " Use colors that suit a dark background.
  86. "set background=dark
  87. "
  88. " Code Folding Options
  89. "
  90. " Fold based on indention levels.
  91. "set foldmethod=indent
  92. " Only fold up to three nested levels.
  93. "set foldnestmax=3
  94. " Disable folding by default.
  95. "set nofoldenable
  96. "
  97. " Miscellaneous Options
  98. "
  99. " Automatically re-read files if unmodified inside Vim.
  100. "set autoread
  101. " Allow backspacing over indention, line breaks and insertion start.
  102. "set backspace=indent,eol,start
  103. " Directory to store backup files.
  104. set backupdir=~/.cache/vim
  105. " Display a confirmation dialog when closing an unsaved file.
  106. set confirm
  107. " Directory to store swap files.
  108. set dir=~/.cache/vim
  109. " Delete comment characters when joining lines.
  110. "set formatoptions+=j
  111. " Hide files in the background instead of closing them.
  112. "set hidden
  113. " Increase the undo limit.
  114. set history=1000
  115. " Ignore file's mode lines; use vimrc configurations instead.
  116. "set nomodeline
  117. " Disable swap files.
  118. "set noswapfile
  119. " Interpret octal as decimal when incrementing numbers.
  120. "set nrformats-=octal
  121. " The shell used to execute commands.
  122. "set shell
  123. " Enable spellchecking.
  124. "set spell
  125. " Ignore files matching these patterns when opening files based on a glob pattern.
  126. "set wildignore+=.pyc,.swp