Advertisement
Guest User

.vimrc

a guest
Jun 24th, 2017
1,473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. scriptencoding utf8
  2.  
  3. " Bundle settings
  4. set nocompatible
  5. filetype off
  6.  
  7. call plug#begin('~/.local/share/nvim/bundle/')
  8.  
  9. " Interactive REPL for NeoVim
  10. Plug 'hkupty/iron.nvim'
  11.  
  12. " File tree plugin
  13. Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
  14.  
  15. " Status line plugin
  16. Plug 'bling/vim-airline'
  17. Plug 'vim-airline/vim-airline-themes'
  18.  
  19. " Fuzzy logic search engine
  20. Plug 'ctrlpvim/ctrlp.vim'
  21. " Plug 'Shougo/denite.nvim'
  22.  
  23. " Sublime like multiple replacement for refactoring
  24. Plug 'terryma/vim-multiple-cursors'
  25.  
  26. " Colorschemes
  27. Plug 'morhetz/gruvbox'
  28. Plug 'altercation/vim-colors-solarized'
  29.  
  30. " Code completion for NeoVim
  31. Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
  32. Plug 'zchee/deoplete-jedi', {'for': ['python', 'python3']}
  33.  
  34. " Code linting
  35. Plug 'w0rp/ale'
  36.  
  37. " Code snippets
  38. Plug 'SirVer/ultisnips'
  39. Plug 'honza/vim-snippets'
  40.  
  41. " Version control tools
  42. Plug 'tpope/vim-fugitive'
  43. Plug 'mhinz/vim-signify'
  44.  
  45. " " Plugin to use tab for autocompletion
  46. Plug 'ervandew/supertab'
  47.  
  48. " Plugin to comment text easily
  49. Plug 'tpope/vim-commentary'
  50.  
  51. call plug#end()
  52.  
  53. " Color Scheme configuration
  54. set background=dark
  55. colorscheme gruvbox
  56. let g:airline_theme='gruvbox'
  57. set termguicolors
  58.  
  59. "----------------------------------------------------------------------
  60. " General config
  61. "
  62. " Use this to allow intelligent auto-indenting for each filetype
  63. " and for plugins that are filetype specific
  64. filetype indent plugin on
  65.  
  66. " Enable syntax highlighting
  67. syntax on
  68.  
  69. " Allows you to switch from an unsaved buffer without saving it first
  70. " Also allows you to keep an undo history for multiple files
  71. set hidden
  72.  
  73. " Better command-line completion
  74. set wildmenu
  75.  
  76. "" Display the cursor position
  77. set ruler
  78.  
  79. " Always display the status line, even if only one window is displayed
  80. set laststatus=2
  81.  
  82. " Enable use of the mouse for all modes
  83. set mouse=a
  84.  
  85. " Set the command window height to 2 lines
  86. set cmdheight=1
  87.  
  88. " Display line numbers on the left
  89. set number
  90.  
  91. "----------------------------------------------------------------------
  92. " Usability options
  93. "
  94. " These are personal preferences that deviate from standard Vim options
  95.  
  96. " Use case insensitive search, except when using capital letters
  97. set ignorecase
  98. set smartcase
  99.  
  100. " Allow backspacing over autoindent, line breaks and start of insert
  101. set backspace=indent,eol,start
  102.  
  103. " Keeps the same line ident for generic file types. Useful for READMEs
  104. set autoindent
  105.  
  106. " Use visual bell instead of beeping when doing something wrong
  107. set visualbell
  108.  
  109. "----------------------------------------------------------------------
  110. " Indentation options
  111.  
  112. " Indentation settings for using 4 spaces instead of tabs.
  113. " Do not change 'tabstop' from its default value of 8 with this setup.
  114. set shiftwidth=4 tabstop=4 expandtab
  115.  
  116. "------------------------------------------------------------
  117. " Mappings
  118.  
  119. " Deoplete mappings
  120. " inoremap <expr><tab> pumvisible() ? "\<C-n>" : "\<tab>"
  121.  
  122. "----------------------------------------------------------------------
  123. " Plugin specific options
  124.  
  125. " Enable deoplete at startup
  126. let g:deoplete#enable_at_startup = 1
  127.  
  128. " Use smart case for deoplete completion
  129. let g:deoplete#enable_smart_case = 1
  130.  
  131. " Close deoplete scratch window automatically
  132. let g:SuperTabClosePreviewOnPopupClose = 1
  133.  
  134. " Let SuperTab scroll from top to bottom, close completion with <CR> and try
  135. " to chain completions based on context
  136. let g:SuperTabDefaultCompletionType = "<c-n>"
  137. let g:SuperTabDefaultCompletionType = 'context'
  138. autocmd FileType *
  139. \ if &omnifunc != '' |
  140. \ call SuperTabChain(&omnifunc, "<c-p>") |
  141. \ endif
  142.  
  143. " inoremap <silent><expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
  144. " let g:UltiSnipsExpandTrigger="<tab>"
  145. " let g:UltiSnipsJumpForwardTrigger="<tab>"
  146. " let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
  147. " " Airline configuration
  148. let g:airline#extensions#ale = 1
  149. " let g:airline_left_sep=''
  150. " let g:airline_right_sep=''
  151.  
  152. " ALE configuration
  153. let g:ale_sign_column_always = 1
  154. "----------------------------------------------------------------------`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement