Advertisement
geekyWerewolf

vimrc

Sep 3rd, 2019
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3.  
  4. set rtp+=~/.vim/bundle/Vundle.vim
  5. call vundle#begin()
  6.  
  7. " let Vundle manage Vundle, required
  8. Plugin 'gmarik/Vundle.vim'
  9.  
  10. " Surround
  11. Plugin 'tpope/vim-surround'
  12.  
  13. " Repeat for plugins
  14. Plugin 'tpope/vim-repeat'
  15.  
  16. " Nerdtree
  17. Plugin 'scrooloose/nerdtree'
  18.  
  19. " Nerd commenter
  20. Plugin 'scrooloose/nerdcommenter'
  21.  
  22. " Python syntax
  23. Plugin 'vim-python/python-syntax'
  24.  
  25. " Dracula theme
  26. Plugin 'dracula/vim'
  27.  
  28. " Airline
  29. Plugin 'vim-airline/vim-airline'
  30.  
  31. " Airline themes
  32. Plugin 'vim-airline/vim-airline-themes'
  33.  
  34. call vundle#end() " required
  35. filetype plugin indent on " required
  36.  
  37. set number " sets line numbers
  38. set relativenumber " show relative numbers
  39.  
  40. syntax on " turns the syntax on
  41.  
  42. " sets the color scheme to dracula
  43. colorscheme dracula
  44.  
  45. " make tab expand to spaces
  46. set expandtab
  47. " number of columns an existing <TAB> will occupy
  48. set tabstop=2
  49. " when indenting with '>', use 2 columns width
  50. set shiftwidth=2
  51. " make pressing tab insert 2 columns
  52. set softtabstop=2
  53.  
  54. " wrap text
  55. set wrap
  56. " wrap without breaking words
  57. set linebreak
  58. " screen line navigation
  59. map <Up> gk
  60. map <Down> gj
  61.  
  62. " searches by ignoring case only if all letters are small
  63. set ignorecase smartcase
  64.  
  65. " powerline config
  66. set encoding=utf-8
  67. set laststatus=2
  68.  
  69. " Search down into subfolders
  70. " Provides tab-completion for all file-related tasks
  71. set path+=**
  72.  
  73. " Display all matching files when we tab complete
  74. set wildmenu
  75.  
  76. " Shows the search results as you type them
  77. set incsearch
  78.  
  79. " Sets the cursor to remain in the middle of the page
  80. set scrolloff=999
  81.  
  82. " Make vim remember a lot
  83. set history=1000
  84.  
  85. " Remove showing mode as we are using powerline
  86. set noshowmode
  87.  
  88. packadd! matchit
  89. packadd! justify
  90.  
  91. " Remember history
  92. set viminfo='1000,<1000,s10,h,/1000,@1000,:1000
  93.  
  94. " Show match bracket
  95. set showmatch
  96. set matchtime=15
  97.  
  98. " make vim show the command thats being entered
  99. set showcmd
  100.  
  101. " make jj as a replacement for Esc
  102. inoremap jj <Esc>
  103.  
  104. " Make vim scrolling faster
  105. set regexpengine=1
  106. set nocursorline
  107. set nocursorcolumn
  108. let loaded_matchparen=1
  109.  
  110. " makes delete key delete in insert mode
  111. " set backspace=indent,eol,start
  112. set backspace=0
  113.  
  114. " more comfortable splits
  115. set splitbelow
  116. set splitright
  117.  
  118. " Enable python syntax highlighting
  119. let g:python_highlight_all = 1
  120.  
  121. " reloads any changes done to files outside vim
  122. set autoread
  123.  
  124. filetype plugin on
  125.  
  126. " Add spaces after comment delimiters by default
  127. let g:NERDSpaceDelims = 1
  128.  
  129. " Align line-wise comment delimiters flush left instead of following code indentation
  130. let g:NERDDefaultAlign = 'left'
  131.  
  132. " Unmapping the scrollkeys
  133. map <ScrollWheelUp> <C-Y>
  134. map <S-ScrollWheelUp> <C-U>
  135. map <ScrollWheelDown> <C-E>
  136. map <S-ScrollWheelDown> <C-D>
  137.  
  138. " Make vim detect that terminal is 256 colors for airline backgroud to work
  139. set t_Co=256
  140.  
  141. " to make vim's background transparent
  142. hi Normal guibg=NONE ctermbg=NONE
  143.  
  144. " Set airline theme to powerlineish
  145. let g:airline_theme='powerlineish'
  146.  
  147. " Enable arrows in airline. Works only if your terminal font is powerline
  148. " supporrted: https://github.com/powerline/fonts
  149. " let g:airline_powerline_fonts = 1
  150.  
  151. " remapping splits
  152. nnoremap <C-J> <C-W><C-J>
  153. nnoremap <C-K> <C-W><C-K>
  154. nnoremap <C-L> <C-W><C-L>
  155. nnoremap <C-H> <C-W><C-H>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement