My dotfiles
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

115 строки
3.3 KiB

  1. call plug#begin('~/.vim/plugged')
  2. "{{ The Basics }}
  3. Plug 'gmarik/Vundle.vim' " Vundle
  4. Plug 'joshdick/onedark.vim' " Colors
  5. Plug 'itchyny/lightline.vim' " Lightline statusbar
  6. Plug 'suan/vim-instant-markdown', {'rtp': 'after'} " Markdown Preview
  7. Plug 'frazrepo/vim-rainbow'
  8. "{{ File management }}
  9. Plug 'vifm/vifm.vim' " Vifm
  10. Plug 'scrooloose/nerdtree' " Nerdtree
  11. Plug 'tiagofumo/vim-nerdtree-syntax-highlight' " Highlighting Nerdtree
  12. Plug 'ryanoasis/vim-devicons' " Icons for Nerdtree
  13. "{{ Tim Pope Plugins }}
  14. Plug 'tpope/vim-surround' " Change surrounding marks
  15. "{{ Syntax Highlighting and Colors }}
  16. Plug 'ap/vim-css-color' " Color previews for CSS
  17. "{{ Junegunn Choi Plugins }}
  18. Plug 'junegunn/goyo.vim' " Distraction-free viewing
  19. Plug 'junegunn/limelight.vim' " Hyperfocus on a range
  20. Plug 'junegunn/vim-emoji' " Vim needs emojis!
  21. "{{ Language specific }}
  22. Plug 'mattn/emmet-vim' " Emmet for web-gay developing
  23. call plug#end()
  24. " colorscheme
  25. syntax on
  26. " brackets
  27. inoremap " ""<left>
  28. inoremap ' ''<left>
  29. inoremap ( ()<left>
  30. inoremap [ []<left>
  31. inoremap { {}<left>
  32. inoremap {<CR> {<CR>}<ESC>O
  33. inoremap {;<CR> {<CR>};<ESC>O
  34. " markdown
  35. let g:instant_markdown_browser = "st surf"
  36. " Make Vim more useful
  37. set nocompatible
  38. " Use the OS clipboard by default (on versions compiled with `+clipboard`)
  39. set clipboard+=unnamedplus
  40. " Enhance command-line completion
  41. set wildmenu
  42. " Disables automatic commenting on newline:
  43. autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
  44. " Allow cursor keys in insert mode
  45. " Allow backspace in insert mode
  46. set backspace=indent,eol,start
  47. " Optimize for fast terminal connections
  48. set ttyfast
  49. " Add the g flag to search/replace by default
  50. set gdefault
  51. " Use UTF-8 without BOM
  52. set encoding=utf-8
  53. " Change mapleader
  54. let mapleader=","
  55. " Don’t add empty newlines at the end of files
  56. set binary
  57. set noeol
  58. " 256 colors
  59. set t_Co=256
  60. " Respect modeline in files
  61. set modeline
  62. set modelines=4
  63. " Enable per-directory .vimrc files and disable unsafe commands in them
  64. set exrc
  65. set secure
  66. " Enable line numbers
  67. set number
  68. " Make tabs as wide as two spaces
  69. set tabstop=4
  70. set shiftwidth=4
  71. set smarttab
  72. set expandtab
  73. " Highlight searches
  74. set hlsearch
  75. " Ignore case of searches
  76. set ignorecase
  77. " Highlight dynamically as pattern is typed
  78. set incsearch
  79. " Always show status line
  80. set laststatus=2
  81. " Enable mouse in all modes
  82. set mouse=a
  83. " Disable error bells
  84. set noerrorbells
  85. " Don’t reset cursor to start of line when moving around.
  86. set nostartofline
  87. " Show the cursor position
  88. set ruler
  89. " Don’t show the intro message when starting Vim
  90. set shortmess=atI
  91. " Show the current mode
  92. set showmode
  93. " Show the filename in the window titlebar
  94. set title
  95. " Show the (partial) command as it’s being typed
  96. set showcmd
  97. " Use relative line numbers
  98. if exists("&relativenumber")
  99. set relativenumber
  100. au BufReadPost * set relativenumber
  101. endif
  102. " Start scrolling three lines before the horizontal window border
  103. set scrolloff=3
  104. map <Leader>c :w! \| !pdflatex <c-r>%<CR><CR>
  105. map <Leader>t :!st&<CR><CR>
  106. vnoremap <C-c> "+y