Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.80 KB | None | 0 0
  1. filetype off
  2. filetype indent on
  3. "set t_Co=256
  4. set guifont=InconsolataForPowerline\ Nerd\ Font\ 12
  5. set laststatus=2
  6. set backspace=indent,eol,start
  7. set clipboard=unnamedplus
  8. set encoding=utf-8
  9. set ai
  10. set showmatch
  11. set textwidth=79
  12.  
  13. " this desable "visual" wrapping
  14. set nowrap
  15. set textwidth=0 wrapmargin=0
  16.  
  17. set mouse=a
  18. set nu
  19. set expandtab
  20. set tabstop=4
  21. set shiftwidth=4
  22. set nobackup
  23. set noswapfile
  24. set nowritebackup
  25. set timeoutlen=1000
  26. set ttimeoutlen=0
  27. set showcmd
  28. set ignorecase
  29. set smartcase
  30. set cursorline
  31.  
  32. let g:airline_theme='gruvbox'
  33. let g:airline_powerline_fonts=1
  34. let g:gruvbox_contrast_dark='neutral'
  35. colorscheme gruvbox
  36. "Tomorrow-Night-Eighties
  37. set background=dark
  38.  
  39. "VIM-Jedi
  40. let g:jedi#completions_command = "<C-Space>"
  41. let g:jedi#popup_on_dot = 0
  42. let g:jedi#popup_select_first = 0
  43. let g:jedi#show_call_signatures = "1"
  44. "FileType
  45. autocmd FileType haskell map <F5> :!ghci %
  46. autocmd FileType haskell imap <F5> <ESC> :!ghci
  47.  
  48. autocmd FileType python setlocal completeopt-=preview
  49. autocmd FileType python map <F5> :!python3 %
  50. autocmd FileType python imap <F5> <ESC> :!python3 %
  51.  
  52. autocmd FileType cpp map <F5> :!g++ % && ./a.out
  53. autocmd FileType cpp imap <F5> <ESC> :!g++ % && ./a.out
  54.  
  55. autocmd FileType go map <F5> :!go run %
  56. autocmd FileType go imap <F5> <ESC> :!go run %
  57.  
  58. autocmd FileType html setlocal shiftwidth=2 tabstop=2
  59.  
  60. "My mapping keys
  61. nnoremap <C-c> "+y
  62. vnoremap <C-c> "+y
  63. vnoremap <C-v> c<ESC>"+p
  64. inoremap <C-v> <ESC>"+pa
  65. nnoremap <C-v> "+pa
  66. vmap <S-TAB> <
  67. vmap <TAB> >
  68. imap jj <ESC>
  69. nmap <C-s> :w <CR>
  70. imap <C-s> <Esc> :w <CR>
  71. map c <Esc>:
  72. vmap n <Esc>
  73. map <F1> :sp <CR>
  74. map <F2> :vsp <CR>
  75. nmap <F3> :%!xxd <CR>
  76. nmap <F4> :%!xxd -r <CR>
  77. nmap <S-l> $
  78. nmap <S-h> 0"
  79.  
  80. nnoremap <C-J> <C-W><C-J>
  81. nnoremap <C-K> <C-W><C-K>
  82. nnoremap <C-L> <C-W><C-L>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement