Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " @s.egorov
  2. " 2018.04
  3.  
  4. set nocompatible
  5. filetype off
  6.  
  7. " let's go!
  8.  
  9. set number
  10.  
  11. set autoindent
  12. set smartindent
  13. set smarttab
  14. set shiftwidth=4
  15. set softtabstop=4
  16. set tabstop=4
  17. set expandtab
  18.  
  19. colo slate
  20. syntax on
  21.  
  22. " my binds
  23.  
  24. inoremap jj <ESC>
  25.  
  26. inoremap ( ()<Left>
  27. inoremap <expr> )  strpart(getline('.'), col('.')-1, 1) == ")" ? "\<Right>" : ")"
  28. inoremap {      {}<Left>
  29. inoremap {<CR>  {<CR>}<Esc>O
  30. inoremap {{     {
  31. inoremap {}     {}
  32. inoremap <expr> ' strpart(getline('.'), col('.')-1, 1) == "\'" ? "\<Right>" : "\'\'\<Left>"
  33. inoremap <expr> " strpart(getline('.'), col('.')-1, 1) == "\"" ? "\<Right>" : "\"\"\<Left>"
  34. map <C-c> :%w !pbcopy<CR><CR>
  35. map <C-v> :r !pbpaste<CR><CR>
  36.  
  37. " plugins
  38.  
  39. set rtp+=~/.vim/bundle/Vundle.vim
  40. call vundle#begin()
  41. Plugin 'VundleVim/Vundle.vim'
  42. Plugin 'benmills/vimux'
  43. Plugin 'scrooloose/nerdtree'
  44. Plugin 'dracula/vim'
  45. call vundle#end()
  46. filetype plugin indent on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement