SHARE
TWEET

Untitled

a guest Oct 13th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set t_Co=256
  2. set nocompatible
  3.  
  4. call plug#begin()
  5. Plug 'trevordmiller/nova-vim'
  6. Plug 'morhetz/gruvbox'
  7. Plug 'arcticicestudio/nord-vim'
  8. Plug 'sonph/onehalf'
  9. Plug 'pearofducks/ansible-vim'
  10. Plug 'chr4/nginx.vim'
  11. Plug 'ekalinin/Dockerfile.vim'
  12. Plug 'martinda/Jenkinsfile-vim-syntax'
  13. "Plug 'elzr/vim-json'
  14. Plug 'jiangmiao/auto-pairs'
  15. Plug 'Yggdroot/indentLine'
  16. Plug 'TaDaa/vimade'
  17. Plug 'ntpeters/vim-better-whitespace'
  18. Plug 'scrooloose/nerdtree'
  19. "Plug 'Xuyuanp/nerdtree-git-plugin'
  20. Plug 'vim-airline/vim-airline'
  21. Plug 'vim-airline/vim-airline-themes'
  22. Plug 'edkolev/tmuxline.vim'
  23. Plug 'w0rp/ale'
  24. Plug 'junegunn/fzf'
  25. Plug 'junegunn/fzf.vim'
  26. Plug 'junegunn/limelight.vim'
  27. Plug 'tpope/vim-fugitive'
  28. Plug 'tpope/vim-surround'
  29. Plug 'mhinz/vim-startify'
  30. Plug 'airblade/vim-gitgutter'
  31. "Plug 'jreybert/vimagit'
  32. Plug 'ryanoasis/vim-devicons'
  33. Plug 'andrewstuart/vim-kubernetes'
  34. Plug 'towolf/vim-helm'
  35. Plug 'iamcco/markdown-preview.nvim'
  36. call plug#end()
  37.  
  38. let g:airline_enabled = 1
  39. let g:airline_powerline_fonts = 1
  40. let g:airline_skip_empty_sections = 1
  41. let g:airline#extensions#tabline#enabled = 1
  42. let g:airline#extensions#tabline#buffer_idx_mode = 1
  43. let g:airline#extensions#hunks#enabled = 1
  44. let g:airline#extensions#hunks#non_zero_only = 1
  45. "let g:airline#extensions#vimagit#enabled = 1
  46. let g:ansible_unindent_after_newline = 1
  47. let g:ansible_name_highlight = 'd'
  48. let g:ansible_extra_keywords_highlight = 1
  49. let g:ansible_normal_keywords_highlight = 'Constant'
  50. let g:ansible_with_keywords_highlight = 'Constant'
  51. let g:ansible_template_syntaxes = { '*vhost*.conf.j2': 'nginx.vim' }
  52. let g:better_whitespace_ctermcolor='yellow'
  53. let g:better_whitespace_guicolor='yellow'
  54. let g:indentLine_enabled = 0
  55. let g:indentLine_setColors = 0
  56. let g:gitgutter_sign_added = '•'
  57. let g:gitgutter_sign_modified = '•'
  58. let g:gitgutter_sign_removed = '•'
  59. let g:gitgutter_sign_removed_first_line = '•'
  60. let g:gitgutter_sign_modified_removed = '•'
  61. let g:NERDTreeWinSize=30
  62. let g:NERDTreeIgnore=['\.DS_Store$', '\.git$', '\.swp']
  63. let g:NERDTreeDirArrowExpandable = "\u00a0"
  64. let g:NERDTreeDirArrowCollapsible = "\u00a0"
  65. let g:vimade = {}
  66. let g:vimade.fadelevel = 0.85
  67. let g:WebDevIconsNerdTreeBeforeGlyphPadding = ''
  68. let g:WebDevIconsUnicodeDecorateFolderNodes = v:true
  69. let g:WebDevIconsUnicodeGlyphDoubleWidth = 1
  70. let g:WebDevIconsOS = 'Darwin'
  71.  
  72. au BufRead,BufNewFile */playbooks/*.yml set filetype=yaml.ansible
  73. au BufRead,BufNewFile */.kube/config set filetype=yaml
  74.  
  75. command! -bang -nargs=* Ag call fzf#vim#ag(<q-args>, '--hidden --ignore .git', <bang>0)
  76. command! -bang -nargs=* Rg call fzf#vim#grep('rg --column -n -i --hidden --color=always '.shellescape(<q-args>), 1, <bang>0)
  77.  
  78. " Colors
  79. colorscheme nova
  80.  
  81. if has("gui_running")
  82.   colorscheme nord
  83.   let g:airline_left_sep = "\uE0B0"
  84.   let g:airline_right_sep = "\uE0B2"
  85.   let g:nord_italic_comments = 1
  86.   let g:WebDevIconsNerdTreeAfterGlyphPadding = ''
  87.   "set guifont=MesloLGM\ Nerd\ Font\ Mono:h12
  88.   set guifont=Inconsolata\ Nerd\ Font:h14
  89.   set guioptions=T
  90.   set termguicolors
  91. endif
  92.  
  93. if $TERM_PROGRAM =~ "iTerm"
  94.   set termguicolors
  95.   colorscheme nova
  96. endif
  97.  
  98. if $TERM_PROGRAM =~ "Apple_Terminal" || $ITERM_PROFILE =~ "gruvbox"
  99.   set background=dark
  100.   colorscheme gruvbox
  101. endif
  102.  
  103. " General
  104. set encoding=UTF-8
  105. set cursorline
  106. "set cursorcolumn
  107. "set signcolumn=yes
  108. set laststatus=2
  109. set lazyredraw
  110. set number
  111. set ruler
  112. set showcmd
  113. set showmatch
  114. set showmode
  115. set showtabline=2
  116. set timeoutlen=1000 ttimeoutlen=0
  117. set ttyfast
  118. set wildmenu
  119. set wildmode=list:longest,list:full
  120.  
  121. " Indents
  122. set autoindent
  123. set smartindent
  124. set expandtab
  125. set smarttab
  126. set tabstop=2
  127. set shiftwidth=2
  128.  
  129. " Search
  130. set incsearch
  131. set hlsearch
  132. set ignorecase
  133. set smartcase
  134.  
  135. " Maps
  136. let mapleader = ","
  137. map <C-n> :NERDTreeToggle<CR>
  138. map <C-p> :Files<CR>
  139. map <leader>a :Ag<CR>
  140. map <leader>b :Buffers<CR>
  141. map <leader>c :Commits<CR>
  142. map <leader>bc :BCommits<CR>
  143. map <leader>i :IndentLinesToggle<CR>
  144. map <leader>l :Limelight!!<CR>
  145. map <leader>r :Rg<CR>
  146.  
  147. map <leader>pi :PlugInstall<CR>
  148. map <leader>pu :PlugUpdate<CR>
  149. map <leader>pc :PlugClean<CR>
  150.  
  151. map <leader>tws :ToggleWhitespace<CR>
  152.  
  153. map <C-k> <C-w><Up>
  154. map <C-j> <C-w><Down>
  155. map <C-l> <C-w><Right>
  156. map <C-h> <C-w><Left>
  157.  
  158. cnoremap <C-b> <Left>
  159. cnoremap <C-f> <Right>
  160.  
  161. nnoremap <Up> <NOP>
  162. nnoremap <Down> <NOP>
  163. nnoremap <Left> <NOP>
  164. nnoremap <Right> <NOP>
  165. inoremap <Left> <NOP>
  166. inoremap <Right> <NOP>
  167. inoremap <Up> <NOP>
  168. inoremap <Down> <NOP>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top