Advertisement
tamionv

TAMIO_VESA_NAKAJIMA_VIMRC

Apr 28th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.62 KB | None | 0 0
  1. set nocompatible
  2.  
  3. noremap j h
  4. noremap k j
  5. noremap l k
  6. noremap ; l
  7.  
  8. syntax on
  9.  
  10. set tabstop=4
  11. set shiftwidth=4
  12. set et
  13.  
  14. set smarttab
  15. set autoindent
  16.  
  17. function Compile()
  18.     :w
  19.     :!g++-6 % -Wall -std=c++0x -O2 -o %<.exe 2> %<.err
  20. endfunction
  21.  
  22. function Run()
  23.     :!./%<.exe < %<.in
  24. endfunction
  25.  
  26. let mapleader=" "
  27.  
  28. map <leader>c :call Compile()<RETURN>
  29. map <leader>r :call Run()<RETURN>
  30. map <leader>d :call Debug()<RETURN>
  31. map <leader>i :sp %<.in<RETURN>
  32. map <leader>e :sp %<.err<RETURN>
  33. map <leader>o :sp %<.out<RETURN>
  34.  
  35. set rnu
  36.  
  37. set clipboard=unnamed
  38. nnoremap <tab> <c-w>w
  39. nnoremap <bs> <c-w>W
  40. set ru
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement