Advertisement
Guest User

My_Vimrc_conf

a guest
Mar 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 6.36 KB | None | 0 0
  1. syntax on
  2. set number
  3. set ruler
  4. set hlsearch
  5. set smartcase
  6. set autoindent
  7. set ignorecase
  8. "
  9. "
  10. "
  11. syntax enable
  12. set background=dark
  13. let g:solarized_termcolors=256
  14. "colorscheme solarized
  15. "
  16. "
  17. "
  18. "
  19. set nocompatible  | filetype indent plugin on | syn on    " We're running Vim, not Vi!
  20. filetype on           " Enable filetype detection
  21. filetype indent on    " Enable filetype-specific indenting
  22. filetype plugin on    " Enable filetype-specific plugins
  23. "
  24. "
  25. "
  26. "
  27. "
  28. "
  29. "
  30. "
  31. "
  32. "
  33. "
  34. "execute pathogen#infect()
  35.  
  36. filetype plugin indent on
  37. "
  38. "execute pathogen#infect('stuff/{}')
  39. "execute pathogen#infect('bundle/{}', '~/src/vim/bundle/{}')
  40. "
  41. "
  42. "
  43. "
  44. "
  45. "
  46. "
  47. "set nocompatible | filetype indent plugin on | syn on
  48. "set runtimepath+=/path/to/vam
  49. "call vam#ActivateAddons([PLUGIN_NAME])
  50.  
  51. " put this line first in ~/.vimrc
  52. "set nocompatible | filetype indent plugin on | syn on
  53.  
  54.  
  55. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  56. """"Vundle""""
  57. "set nocompatible              " be iMproved, required
  58. "filetype off                  " required
  59.  
  60. " set the runtime path to include Vundle and initialize
  61. set rtp+=~/.vim/bundle/Vundle.vim
  62. call vundle#begin()
  63. " alternatively, pass a path where Vundle should install plugins
  64. "call vundle#begin('~/some/path/here')
  65.  
  66. " let Vundle manage Vundle, required
  67. Plugin 'VundleVim/Vundle.vim'
  68.  
  69. " The following are examples of different formats supported.
  70. " Keep Plugin commands between vundle#begin/end.
  71. " plugin on GitHub repo
  72. Plugin 'tpope/vim-fugitive'
  73. " plugin from http://vim-scripts.org/vim/scripts.html
  74. " Plugin 'L9'
  75. " Git plugin not hosted on GitHub
  76. Plugin 'git://git.wincent.com/command-t.git'
  77. " git repos on your local machine (i.e. when working on your own plugin)
  78. Plugin 'file:///home/gmarik/path/to/plugin'
  79. " The sparkup vim script is in a subdirectory of this repo called vim.
  80. " Pass the path to set the runtimepath properly.
  81. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  82. " Install L9 and avoid a Naming conflict if you've already installed a
  83. " different version somewhere else.
  84. " Plugin 'ascenator/L9', {'name': 'newL9'}
  85.  
  86. " All of your Plugins must be added before the following line
  87. call vundle#end()            " required
  88. filetype plugin indent on    " required
  89. " To ignore plugin indent changes, instead use:
  90. "filetype plugin on
  91. "
  92. " Brief help
  93. " :PluginList       - lists configured plugins
  94. " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
  95. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  96. " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
  97. "
  98. " see :h vundle for more details or wiki for FAQ
  99. " Put your non-Plugin stuff after this line
  100. Bundle 'vim-ruby/vim-ruby'
  101. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  102. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  103. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  104. """"""""""""""""""""""""""""""""""""""""""""""""""""""""
  105. "set nocompatible  " be iMproved, required
  106. "filetype off  " required
  107. set exrc
  108.  
  109. set rtp+=~/.vim/bundle/Vundle.vim
  110. call vundle#begin()
  111.  
  112. " ==== plugin manager
  113. Plugin 'VundleVim/Vundle.vim'
  114.  
  115. " ==== helpers
  116. Plugin 'vim-scripts/L9'
  117.  
  118. " ==== File tree
  119. Plugin 'scrooloose/nerdtree'
  120.  
  121. " ==== Completion
  122. Plugin 'Valloric/YouCompleteMe'
  123.  
  124. " ==== Git
  125. "Plugin 'airblade/vim-gitgutter'
  126. "Plugin 'tpope/vim-fugitive'
  127.  
  128. " ==== syntax helpers
  129. "Plugin 'scrooloose/syntastic'
  130. "Plugin 'tpope/vim-surround'
  131. "Plugin 'cakebaker/scss-syntax.vim'
  132. "Plugin 'othree/yajs.vim'
  133. "Plugin 'mitsuhiko/vim-jinja'
  134. "Plugin 'octol/vim-cpp-enhanced-highlight'
  135. "Plugin 'ap/vim-css-color'
  136. "Plugin 'Vimjas/vim-python-pep8-indent'
  137.  
  138. " ==== moving / searching
  139. "Plugin 'easymotion/vim-easymotion'
  140. "Plugin 'kien/ctrlp.vim'
  141.  
  142. " ==== snippets
  143. "Plugin 'SirVer/ultisnips'
  144.  
  145. " Status bar on bottom
  146. "Plugin 'bling/vim-airline'
  147.  
  148. " ==== PLUGIN THEMES
  149. "Plugin 'morhetz/gruvbox'
  150.  
  151. call vundle#end()
  152. "filetype plugin indent on
  153.  
  154. " ==== Colors and other basic settings
  155. "colorscheme gruvbox
  156. set guifont=Monospace\ 10
  157. set fillchars+=vert:\$
  158. syntax enable
  159. set background=dark
  160. set ruler
  161. set hidden
  162. set number
  163. set laststatus=2
  164. set smartindent
  165. set st=4 sw=4 et
  166. set shiftwidth=4
  167. set tabstop=4
  168. let &colorcolumn="90"
  169. ":set guioptions-=m  "remove menu bar
  170. ":set guioptions-=T  "remove toolbar
  171. ":set guioptions-=r  "remove right-hand scroll bar
  172. ":set guioptions-=L  "remove left-hand scroll bar
  173. ":set lines=999 columns=999
  174.  
  175. " ==== NERDTREE
  176. let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
  177.  
  178. let NERDTreeShowHidden=1
  179. let g:NERDTreeWinPos="left"
  180. let g:NERDTreeDirArrows=0
  181. map <C-t> :NERDTreeToggle<CR>
  182.  
  183. " ==== Syntastic
  184. "let g:syntastic_always_populate_loc_list = 1
  185. "let g:syntastic_auto_loc_list = 1
  186. "let g:syntastic_check_on_open = 1
  187. "let g:syntastic_check_on_wq = 0
  188. "set statusline+=%#warningmsg#
  189. "set statusline+=%{SyntasticStatuslineFlag()}
  190. "set statusline+=%*
  191. "let g:syntastic_javascript_checkers = ['eslint']
  192. "let g:syntastic_javascript_mri_args = "--config=$HOME/.jshintrc"
  193. "let g:syntastic_python_checkers = [ 'pylint', 'flake8', 'pep8', 'pyflakes', 'python']
  194. "let g:syntastic_yaml_checkers = ['jsyaml']
  195. "let g:syntastic_html_tidy_exec = 'tidy5'
  196.  
  197. " === flake8
  198. let g:flake8_show_in_file=1
  199.  
  200. " ==== snippets
  201. let g:UltiSnipsExpandTrigger="<A-ENTER>"
  202. let g:UltiSnipsJumpForwardTrigger="<A-ENTER>"
  203. let g:UltiSnipsJumpBackwardTrigger="<A-BACKSPACE>"
  204. " If you want :UltiSnipsEdit to split your window.
  205. let g:UltiSnipsEditSplit="vertical"
  206.  
  207. " ==== Easymotion
  208. let g:EasyMotion_do_mapping = 0
  209. let g:EasyMotion_smartcase = 1
  210. nmap f <Plug>(easymotion-s)
  211.  
  212. " ==== moving around
  213. nmap <silent> <A-Up> :wincmd k<CR>
  214. nmap <silent> <A-Down> :wincmd j<CR>
  215. nmap <silent> <A-Left> :wincmd h<CR>
  216. nmap <silent> <A-Right> :wincmd l<CR>
  217.  
  218. " ==== disable mouse
  219. set mouse=c
  220.  
  221. " ==== disable swap file warning
  222. set shortmess+=A
  223.  
  224. " ==== custom commands
  225. command JsonPretty execute ":%!python -m json.tool"
  226. set secure
  227.  
  228. set bg=dark
  229.  
  230. "let g:airline_theme='<theme>'
  231. let g:airline_theme='<solarized>'
  232. let g:airline#extensions#tabline#enabled = 1
  233. Plugin 'vim-airline/vim-airline'
  234. Plugin 'vim-airline/vim-airline-themes'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement