Advertisement
kxcoze

init.vim

Mar 17th, 2020
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.32 KB | None | 0 0
  1. "hello----there!"
  2. set number
  3.  
  4. set noexpandtab
  5. set tabstop=4
  6. set shiftwidth=4
  7. set smarttab
  8. set smartindent
  9.  
  10. set laststatus=2
  11. set hlsearch
  12. set incsearch
  13. set splitright
  14.  
  15. call plug#begin()
  16. Plug 'scrooloose/syntastic'
  17. Plug 'easymotion/vim-easymotion'
  18. Plug 'tpope/vim-surround'
  19. Plug 'flazz/vim-colorschemes'
  20. Plug 'octol/vim-cpp-enhanced-highlight'
  21. Plug 'cseelus/vim-colors-lucid'
  22. call plug#end()
  23.  
  24. colorscheme dracula
  25.  
  26. "--------------MAPPING--------------"
  27. "Deleting <, ^, v, > keys from n, v, s, o-modes
  28. noremap <Up> <nop>
  29. noremap <Down> <nop>
  30. noremap <Left> <nop>
  31. noremap <Right> <nop>
  32.  
  33. "Execute :x in cmd-line, when Esc pressed.
  34. inoremap <Esc> <nop>
  35. "noremap <Esc> <Cmd>:x<cr>
  36.  
  37. map <F5> :vsp<CR>:w<CR>:term g++ % && ./a.out<CR>i
  38. map <F6> :vsp<CR>:w<CR>:term python3 % <CR>i
  39. "Jump to next/previous non-empty line
  40. "nnoremap <Up> :<C-u>call search('^.\+', 'b')<CR>
  41. "nnoremap <Down> :<C-u>call search('^.\+')<CR>
  42.  
  43. "noremap j k
  44. "noremap k j
  45. "
  46. inoremap jj <Esc>
  47. map <F7> :w<CR>
  48. "------------------------------------"
  49. "------------vim-easymotion----------"
  50. let g:easymotion_leader_key = '\'
  51. nmap s <Plug>(easymotion-s2)
  52. nmap / <Plug>(easymotion-sn)
  53. omap / <Plug>(easymotion-tn)
  54. " Gif config
  55. map <Leader>l <Plug>(easymotion-lineforward)
  56. map <Leader>j <Plug>(easymotion-j)
  57. map <Leader>k <Plug>(easymotion-k)
  58. map <Leader>h <Plug>(easymotion-linebackward)
  59.  
  60. let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion
  61. let g:EasyMotion_smartcase = 1 " be a bit zalier about what to target
  62. let g:EasyMotion_do_shade = 1
  63. let g:EasyMotion_inc_highlight = 1
  64. let g:EasyMotion_move_highlight = 1
  65. let g:EasyMotion_landing_highlight = 1
  66. "-------------------------------------"
  67.  
  68. "-In-development--syntastic-----------"
  69. set statusline+=%#warningmsg#
  70. set statusline+=%{SyntasticStatuslineFlag()}
  71. set statusline+=%*
  72.  
  73. let g:syntastic_always_populate_loc_list = 1
  74. let g:syntastic_auto_loc_list = 1
  75. let g:syntastic_check_on_open = 1
  76. let g:syntastic_check_on_wq = 0
  77. "--------------------------------------"
  78.  
  79. "------vim-cpp-enhanced-highlight------"
  80. let g:cpp_class_scope_highlight = 1
  81. let g:cpp_member_variable_highlight = 1
  82. let g:cpp_class_decl_highlight = 1
  83. let g:cpp_posix_standard = 1
  84. let g:cpp_experimental_simple_template_highlight = 1
  85. let g:cpp_concepts_highlight = 1
  86. "--------------------------------------"a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement