unix dotfiles
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. syntax enable
  2. filetype on
  3. filetype plugin on
  4. filetype indent on
  5. set encoding=utf-8 " utf8 by default for new files
  6. set nocompatible " it's not 1985
  7. set nobackup " don't create ~backup files (persistent undo enabled)
  8. set number " show line numbers
  9. set nowrap " disable wrapping
  10. set cursorline " highlight current line
  11. set ttyfast " improve scrolling speed
  12. set lazyredraw
  13. set foldlevelstart=99 " unfold everything by default
  14. set noerrorbells " disable bell/flash
  15. set history=1000 " command history length
  16. set so=10 " horizontal scrollover
  17. set backspace=2 " make backspace work normally
  18. set tabpagemax=15 " max 15 tabs open
  19. set laststatus=2 " always display statusbar
  20. set previewheight=3 " maximum height for preview window
  21. set showmatch " highlight matching brace
  22. set updatetime=750 " improve latency for plugins
  23. set showcmd " show commands as they're being input
  24. set autoread " automatically reload when changed externally
  25. set hlsearch " highlight all search matches
  26. set incsearch " start searching before hitting 'enter'
  27. set ignorecase " perform case-insensitive search
  28. set smartcase " ...unless search term has a capital letter
  29. set hidden " hide buffers instead of closing them
  30. set wildmenu " autocomplete for command menu
  31. set modelines=1 " obey file modelines
  32. set completeopt=menu,menuone,longest,preview
  33. set timeoutlen=1000 ttimeoutlen=0
  34. set smartindent " autoindent
  35. set expandtab " replace hard tabs with spaces
  36. set shiftwidth=2 " tab width = 2 spaces
  37. set tabstop=2
  38. set softtabstop=2
  39. set pastetoggle=<F2> " F2 to toggle paste mode
  40. nnoremap <leader>q gqip
  41. map <leader>= mzgg=G`z<CR>
  42. noremap H :bp<CR>
  43. noremap L :bn<CR>
  44. nnoremap <leader><space> :noh<cr>
  45. if empty(glob('~/.vim/autoload/plug.vim'))
  46. silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  47. \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  48. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  49. endif
  50. call plug#begin('~/.vim/plugged')
  51. Plug 'vim-scripts/Zenburn'
  52. Plug 'vim-airline/vim-airline'
  53. Plug 'vim-airline/vim-airline-themes'
  54. Plug 'tpope/vim-fugitive'
  55. Plug 'tpope/vim-surround'
  56. Plug 'tpope/vim-repeat'
  57. Plug 'airblade/vim-gitgutter'
  58. call plug#end()
  59. colors zenburn
  60. let g:airline_symbols_ascii = 1
  61. set noshowmode