Advertisement
fuadnafiz98

.vimrc

Apr 4th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. filetype detect
  2. set nocompatible
  3.  
  4. set exrc
  5.  
  6. set mouse=a
  7. set tabstop=4
  8. set shiftwidth=4
  9.  
  10. set noeb vb t_vb=
  11.  
  12. set smarttab
  13. set autoindent
  14. set cindent
  15.  
  16. set showcmd
  17. set number
  18. set autowrite
  19. set autoread
  20. set nowrap
  21.  
  22. syntax on
  23.  
  24. set clipboard=unnamedplus
  25. autocmd VimLeave * call system("pbcopy -pboard general |ยป, getreg('+'))
  26.  
  27. set makeprg=make\ -f\ ~/makefile\ %<
  28. imap <F2> <ESC> :w!<CR><CR>
  29. imap <F9> <ESC> :w!<CR><CR> :make<CR>
  30.  
  31. imap <F5> :tabp<CR>
  32. noremap <F5> :tabp<CR>
  33. imap <F6> :tabn<CR>
  34. noremap <F6> :tabn<CR>
  35.  
  36. noremap <F2> :wq!<CR>
  37. noremap <F9> :make<CR>
  38. noremap <F8> :!./%<<CR>
  39. noremap <F7> :!./%< 2>/dev/null<CR>
  40. nnoremap <C-N> :cnext<CR>
  41. nnoremap <C-P> :cprev<CR>
  42. nnoremap <C-T> :!./check.sh %<CR>
  43. noremap <SPACE> :!<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement