Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. "NeoBundle Scripts-----------------------------
  2. if has('vim_starting')
  3. if &compatible
  4. set nocompatible " Be iMproved
  5. endif
  6.  
  7. " Required:
  8. set runtimepath+=/home/rustam/.vim/bundle/neobundle.vim/
  9. endif
  10.  
  11. " Required:
  12. call neobundle#begin(expand('/home/rustam/.vim/bundle'))
  13.  
  14. " Let NeoBundle manage NeoBundle
  15. " Required:
  16. NeoBundleFetch 'Shougo/neobundle.vim'
  17.  
  18. " Add or remove your Bundles here:
  19. NeoBundle 'Shougo/neosnippet.vim'
  20. NeoBundle 'Shougo/neosnippet-snippets'
  21. NeoBundle 'tpope/vim-fugitive'
  22. NeoBundle 'tpope/vim-obsession'
  23. NeoBundle 'ctrlpvim/ctrlp.vim'
  24. NeoBundle 'flazz/vim-colorschemes'
  25. NeoBundle 'itchyny/lightline.vim'
  26. NeoBundle 'ervandew/supertab'
  27. NeoBundle 'scrooloose/nerdtree'
  28. NeoBundle 'fneu/breezy'
  29. NeoBundle 'rakr/vim-one'
  30.  
  31. " You can specify revision/branch/tag.
  32. NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
  33.  
  34. " Required:
  35. call neobundle#end()
  36.  
  37. " Required:
  38. filetype plugin indent on
  39.  
  40. " If there are uninstalled bundles found on startup,
  41. " this will conveniently prompt you to install them.
  42. NeoBundleCheck
  43. "End NeoBundle Scripts-------------------------
  44.  
  45. " Lightline settings
  46. "let g:lightline = {
  47. " \ 'colorscheme': 'one',
  48. " \ 'component': {
  49. " \ 'readonly': '%{&readonly?"":""}',
  50. " \ },
  51. " \ 'separator': { 'left': '', 'right': '' },
  52. " \ 'subseparator': { 'left': '', 'right': '' }
  53. " \ }
  54. let g:lightline = {
  55. \ 'colorscheme': 'one',
  56. \ 'component': {
  57. \ 'readonly': '%{&readonly?"":""}',
  58. \ }
  59. \ }
  60.  
  61. set cursorline
  62. hi cursorline cterm=none ctermbg=16 guibg=Gray20
  63. set list listchars=tab:»\ ,trail:\ ,extends:$
  64. set ts=4
  65. set shiftwidth=4
  66. set number
  67. set smarttab
  68. set smartindent
  69. set autoindent
  70.  
  71. set termguicolors
  72. colorscheme one
  73. set background=dark
  74. let g:one_allow_italics=1
  75. "set guioptions-=T
  76. "set guioptions-=m
  77.  
  78. " Remove paddings around vim-gtk window
  79. if has("gui_running")
  80. set ghr=0
  81. endif
  82.  
  83. " Automatically close matching brackets
  84. "inoremap { {}<Left>
  85. "inoremap {<CR> {<CR>}<Esc>
  86. "inoremap {{ {
  87. "inoremap ( ()<Left>
  88. "inoremap (<CR> (<CR>)<Esc>
  89. "inoremap (( (
  90.  
  91. "inoremap (inoremap()<Left><Left>
  92. "inoremap <expr> ) strpart(getline('.'), col('.')-1, 1) == ")" ? "\<Right>" : ")"
  93. "inoremap <expr> ' strpart(getline('.'), col('.')-1, 1) == "\'" ? "\<Right>" : "\'\'\<Left>"
  94. "inoremap <expr> " strpart(getline('.'), col('.')-1, 1) == "\"" ? "\<Right>" : "\"\"\<Left>"
  95.  
  96. " Delete previous word by Ctrl-Backspace
  97. set backspace=indent,eol,start
  98. " imap <C-BS> <C-W>
  99. noremap! <C-BS> <C-w>
  100.  
  101. " Incremental search
  102. set incsearch
  103.  
  104. " Set NERDTree position on left
  105. let g:NERDTreeWinPos = "left"
  106.  
  107. " Neovim-like mouse selection in visual mode
  108. if !has('nvim')
  109. set ttymouse=xterm2
  110. endif
  111.  
  112. " Python highlighting
  113. let python_highlight_all=1
  114.  
  115. " Copy and paste to system clipboard
  116. " vnoremap <C-c> "*y
  117. " vnoremap <C-v> "*p
  118.  
  119. " Don't show current editing mode in status bar (lightline)
  120. set noshowmode
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement