Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. "=============================================
  2. " Initialization
  3. "=============================================
  4.  
  5. " Load plug
  6. call plug#begin('~/.config/nvim/bundle')
  7.  
  8. Plug 'duff/vim-scratch'
  9. Plug 'elmcast/elm-vim'
  10. Plug 'fatih/vim-go'
  11. Plug 'godlygeek/tabular'
  12. Plug 'jelera/vim-javascript-syntax'
  13. Plug 'jremmen/vim-ripgrep'
  14. Plug 'junegunn/vim-easy-align'
  15. Plug 'morhetz/gruvbox'
  16. Plug 'pearofducks/ansible-vim'
  17. Plug 'rodjek/vim-puppet'
  18. Plug 'tpope/vim-endwise'
  19. Plug 'tpope/vim-fugitive'
  20. Plug 'tpope/vim-git'
  21. Plug 'tpope/vim-haml'
  22. Plug 'tpope/vim-markdown'
  23. Plug 'tpope/vim-ragtag'
  24. Plug 'tpope/vim-rails'
  25. Plug 'tpope/vim-repeat'
  26. Plug 'tpope/vim-surround'
  27. Plug 'vim-ruby/vim-ruby'
  28. Plug 'vim-scripts/matchit.zip'
  29.  
  30. call plug#end()
  31.  
  32. " Load plugins
  33. filetype plugin indent on
  34.  
  35. "=============================================
  36. " Options
  37. "=============================================
  38.  
  39. " Color
  40. set termguicolors
  41. let g:gruvbox_italic=1
  42. set background=dark
  43. colorscheme gruvbox
  44. syntax on
  45.  
  46. " Search
  47. set ignorecase
  48. set smartcase
  49.  
  50. " Tab completion
  51. set wildmode=list:longest,full
  52. set wildignore=*.swp,*.o,*.so,*.exe,*.dll
  53.  
  54. " Scroll
  55. set scrolloff=3
  56.  
  57. " Tab settings
  58. set ts=2
  59. set sw=2
  60. set expandtab
  61.  
  62. " Hud
  63. set ruler
  64. set number
  65. set nowrap
  66. set fillchars=vert:\│
  67. set colorcolumn=80
  68.  
  69. " Buffers
  70. set hidden
  71.  
  72. " Backup Directories
  73. set backupdir=~/.config/nvim/backups,.
  74. set directory=~/.config/nvim/swaps,.
  75. if exists('&undodir')
  76. set undodir=~/.config/nvim/undo,.
  77. endif
  78.  
  79. "=============================================
  80. " Remaps
  81. "=============================================
  82.  
  83. let mapleader=','
  84. let maplocalleader=','
  85.  
  86. " No arrow keys
  87. map <Left> :echo "ಠ_ಠ"<cr>
  88. map <Right> :echo "ಠ_ಠ"<cr>
  89. map <Up> :echo "ಠ_ಠ"<cr>
  90. map <Down> :echo "ಠ_ಠ"<cr>
  91.  
  92. " Jump key
  93. nnoremap ` '
  94. nnoremap ' `
  95.  
  96. " Change pane
  97. nnoremap <C-h> <C-w>h
  98. nnoremap <C-j> <C-w>j
  99. nnoremap <C-k> <C-w>k
  100. nnoremap <C-l> <C-w>l
  101.  
  102. " Turn off search highlight
  103. nnoremap <localleader>/ :nohlsearch<CR>
  104.  
  105. " Trim trailing whitespace
  106. nnoremap <localleader>tw m`:%s/\s\+$//e<CR>``
  107.  
  108. "=============================================
  109. " Other Settings
  110. "=============================================
  111.  
  112. "=============================================
  113. " Package Settings
  114. "=============================================
  115. " elmcast/elm-vim
  116. let g:elm_format_autosave = 1
  117.  
  118. " fatih/vim-go
  119. let g:go_fmt_command = "goimports"
  120. let g:go_list_type = "quickfix"
  121.  
  122. " junegunn/vim-easy-align
  123. xmap ga <Plug>(EasyAlign)
  124. nmap ga <Plug>(EasyAlign)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement