Advertisement
Guest User

Untitled

a guest
Jun 29th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.14 KB | None | 0 0
  1. set nocompatible
  2. filetype off
  3.  
  4. " let's go!
  5.  
  6. set number
  7.  
  8. set autoindent
  9. set smartindent
  10. set smarttab
  11. set shiftwidth=4
  12. set softtabstop=4
  13. set tabstop=4
  14. set expandtab
  15.  
  16. colo slate
  17. syntax on
  18.  
  19. " my binds
  20.  
  21. inoremap jj <ESC>
  22.  
  23. inoremap ( ()<Left>
  24. inoremap <expr> )  strpart(getline('.'), col('.')-1, 1) == ")" ? "\<Right>" : ")"
  25. inoremap {      {}<Left>
  26. inoremap {<CR>  {<CR>}<Esc>O
  27. inoremap {{     {
  28. inoremap {}     {}
  29. inoremap <expr> ' strpart(getline('.'), col('.')-1, 1) == "\'" ? "\<Right>" : "\'\'\<Left>"
  30. inoremap <expr> " strpart(getline('.'), col('.')-1, 1) == "\"" ? "\<Right>" : "\"\"\<Left>"
  31. map <C-c> :%w !pbcopy<CR><CR>
  32. map <C-v> :r !pbpaste<CR><CR>
  33.  
  34. " plugins
  35.  
  36. set rtp+=~/.vim/bundle/Vundle.vim
  37. call vundle#begin()
  38. Plugin 'VundleVim/Vundle.vim'
  39. Plugin 'benmills/vimux'
  40. Plugin 'scrooloose/nerdtree'
  41. call vundle#end()
  42. filetype plugin indent on
  43.  
  44. " vimux options and binds
  45.  
  46. let g:VimuxOrientation="h"
  47. let g:VimuxHeight="32"
  48. map <C-d> :call VimuxCloseRunner()<CR>
  49. map <C-t> :wall<CR>:call VimuxRunCommand("clang++ -std=c++14 -w -DSEREZHKA code.cpp -o code")<CR>:cw<CR>
  50. map <C-r> :call VimuxRunCommand("./code")<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement