Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 5.92 KB | None | 0 0
  1. " vim: set ft=vim :
  2. if &cp | set nocp | endif
  3. let s:cpo_save=&cpo
  4. set cpo&vim
  5. map! <S-Insert> *
  6. vmap  "*d
  7. vmap gx <Plug>NetrwBrowseXVis
  8. nmap gx <Plug>NetrwBrowseX
  9. vnoremap <silent> <Plug>NetrwBrowseXVis :call netrw#BrowseXVis()
  10.  
  11. nnoremap <silent> <Plug>NetrwBrowseX :call netrw#BrowseX(expand((exists("g:netrw_gx")? g:netrw_gx : '<cfile>')),netrw#CheckIfRemote())
  12.  
  13. vmap <C-Del> "*d
  14. vmap <S-Del> "*d
  15. vmap <C-Insert> "*y
  16. vmap <S-Insert> "-d"*P
  17. nmap <S-Insert> "*P
  18. map <F4> :CtrlPBuffer<CR>
  19. map <F5> :tabe
  20. map <F6> :vsp
  21. nmap <C-Tab> :tabn<CR>
  22. nmap <C-S-Tab> :tabp<CR>
  23. nmap <Tab> :bnext<CR>
  24. nmap <S-Tab> :bprevious<CR>
  25. nmap <C-Q> :bdelete<CR>
  26. nmap <C-X> :tabclose<CR>
  27. nnoremap <leader>s :ToggleWorkspace<CR>
  28. cabbrev h vertical botright help
  29.  
  30. let &cpo=s:cpo_save
  31. unlet s:cpo_save
  32. set background=dark
  33. "set guifont=PxPlus_IBM_VGA8_for_Powerline:h12:cRUSSIAN:qDRAFT
  34. "set guifontwide=PxPlus_IBM_VGA8_for_Powerline:h12:cRUSSIAN:qDRAFT
  35. set guifont=PxPlus_IBM_VGA8\ NF:h12:cRUSSIAN:qDRAFT
  36. set guifontwide=PxPlus_IBM_VGA8\ NF:h12:cRUSSIAN:qDRAFT
  37. ""set guifont=Hack\ Regular:h12:cWESTERN:qDRAFT
  38. "set guifont=ProFont\ for\ Powerline:h12
  39. "set guifontwide=ProFont\ for\ Powerline:h12
  40. set helplang=en
  41.  
  42. set nocompatible              " be iMproved, required
  43. filetype off                  " required
  44.  
  45. " set the runtime path to include Vundle and initialize
  46. set runtimepath+=~/vimfiles/bundle/Vundle.vim
  47. call vundle#begin('~/vimfiles/bundle/')
  48. " alternatively, pass a path where Vundle should install plugins
  49. "call vundle#begin('~/some/path/here')
  50.  
  51. " let Vundle manage Vundle, required
  52. Plugin 'VundleVim/Vundle.vim'
  53.  
  54. " The following are examples of different formats supported.
  55. " Keep Plugin commands between vundle#begin/end.
  56. " plugin on GitHub repo
  57. Plugin 'tpope/vim-fugitive'
  58. " plugin from http://vim-scripts.org/vim/scripts.html
  59. " Plugin 'L9'
  60. " Git plugin not hosted on GitHub
  61. "Plugin 'git://git.wincent.com/command-t.git'
  62. " git repos on your local machine (i.e. when working on your own plugin)
  63. "Plugin 'file:///home/gmarik/path/to/plugin'
  64. " The sparkup vim script is in a subdirectory of this repo called vim.
  65. " Pass the path to set the runtimepath properly.
  66. " Doesn't work
  67. "Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  68. " Install L9 and avoid a Naming conflict if you've already installed a
  69. " different version somewhere else.
  70. " Plugin 'ascenator/L9', {'name': 'newL9'}
  71.  
  72. "Plugin 'wincent/command-t'
  73.  
  74. Plugin 'tpope/vim-rhubarb'
  75. Plugin 'tommcdo/vim-fubitive'
  76. " Plugin 'powerline/powerline'
  77. Plugin 'vim-airline/vim-airline'
  78. Plugin 'vim-airline/vim-airline-themes'
  79.  
  80. "Plugin 'lithammer/vim-eighties'
  81. "Plugin 'sainnhe/vim-color-lost-shrine'
  82. "Plugin 'jaredgorski/SpaceCamp'
  83. Plugin 'elmindreda/vimcolors'
  84. Plugin 'leafOfTree/vim-vue-plugin'
  85. "Plugin 'posva/vim-vue'
  86. Plugin 'dense-analysis/ale'
  87. Plugin 'neoclide/coc.nvim', {'pinned': 1}
  88. "Plugin 'prettier/vim-prettier', {'pinned': 1}
  89.  
  90. Plugin 'ctrlpvim/ctrlp.vim'
  91. Plugin 'DavidEGx/ctrlp-smarttabs'
  92. Plugin 'airblade/vim-gitgutter'
  93. Plugin 'scrooloose/nerdcommenter'
  94. Plugin 'godlygeek/tabular'
  95. Plugin 'ryanoasis/vim-devicons'
  96.  
  97. Plugin 'thaerkh/vim-workspace'
  98. "Plugin 'Valloric/YouCompleteMe'
  99. Plugin 'tpope/vim-surround'
  100.  
  101. " All of your Plugins must be added before the following line
  102. call vundle#end()            " required
  103. set autoindent
  104. filetype plugin indent on    " required
  105. " To ignore plugin indent changes, instead use:
  106. "filetype plugin on
  107. "
  108. " Brief help
  109. " :PluginList       - lists configured plugins
  110. " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  111. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  112. " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  113. "
  114. " see :h vundle for more details or wiki for FAQ
  115. " Put your non-Plugin stuff after this line
  116.  
  117. " colors eighties
  118. " colors lost-shrine
  119. " colors spacecamp
  120. colors phosphor
  121. set t_md=
  122. "au VimEnter set t_md=
  123. syntax on
  124. set laststatus=2
  125. set showcmd " show leader
  126. set timeoutlen=3000 " leader timeout
  127. set guioptions=    " like console vim
  128. set columns=162 " 2 split buffers
  129. set lines=999
  130. set encoding=utf-8
  131. set termencoding=utf-8
  132. set fileencoding=utf-8
  133. set number
  134. set tabstop=8
  135. set softtabstop=4
  136. set shiftwidth=4
  137. set expandtab
  138. "set rop=type:directx,gamma:1.0,contrast:0.5,level:1,geom:1,renmode:4,taamode:1
  139. set sessionoptions=winsize,winpos,terminal,tabpages,sesdir,resize,buffers,blank
  140.  
  141. let g:airline_powerline_fonts = 1
  142. let g:airline_theme='luna'
  143. "let g:airline#extensions#ale#enabled = 1
  144. let g:airline#extensions#tabline#enabled = 1
  145. let g:airline#extensions#ale#enabled = 1
  146.  
  147. let g:ale_sign_error = "\uf0e7"
  148. let g:ale_sign_warning = "\uf071"
  149. let g:ale_fixers = {
  150.             \ 'javascript': [
  151.             \       'prettier',
  152.             \       'eslint'
  153.             \   ]
  154.             \ }
  155. let g:ale_fix_on_save = 1
  156.  
  157. call airline#parts#define('mode', {
  158.             \ 'function': 'airline#parts#mode',
  159.             \ 'accent': 'none',
  160.             \ })
  161. call airline#parts#define('linenr', {
  162.             \ 'raw': '%{g:airline_symbols.linenr}%4l',
  163.             \ 'accent': 'none'})
  164. call airline#parts#define('maxlinenr', {
  165.             \ 'raw': '/%L%{g:airline_symbols.maxlinenr}',
  166.             \ 'accent': 'none'})
  167.  
  168. "let g:ycm_python_interpreter_path = ''
  169. "let g:ycm_python_sys_path = []
  170. "let g:ycm_extra_conf_vim_data = [
  171.             "\  'g:ycm_python_interpreter_path',
  172.             "\  'g:ycm_python_sys_path'
  173. "\]
  174. "let g:ycm_global_ycm_extra_conf = '~/global_extra_conf.py'
  175.  
  176. "let g:ctrlp_use_caching = 1
  177. if executable('rg')
  178.     let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
  179.     let g:ctrlp_use_caching = 0
  180. endif
  181.  
  182. "let g:vim_vue_plugin_debug = 1
  183. "let g:vim_vue_plugin_use_foldexpr = 0
  184.  
  185. augroup setup_folding
  186.     autocmd!
  187.     autocmd Syntax c,cpp,vim,xml,html,xhtml,vue,json setlocal foldmethod=syntax
  188.     autocmd Syntax c,cpp,vim,xml,html,xhtml,vue,json normal zR
  189. augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement