Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.01 KB | None | 0 0
  1. let mapleader = "\<Space>"
  2.  
  3. filetype plugin indent on
  4.  
  5. set nocompatible
  6. set relativenumber
  7. set showmode
  8. set smarttab
  9. set smartindent
  10. set autoindent
  11. set expandtab
  12. set shiftwidth=4
  13. set softtabstop=4
  14. set laststatus=1
  15.  
  16. colo delek
  17. syntax enable
  18.  
  19. "Show hidden files in NERDTree
  20. let NERDTreeShowHidden=1
  21.  
  22. "vim config
  23. nnoremap <leader>ev :e $MYVIMRC<CR>
  24. nnoremap <leader>sv :so $MYVIMRC<CR>
  25.  
  26. "Tabs
  27. nnoremap <leader>tn :tabnext<CR>
  28. nnoremap <leader>tp :tabprevious<CR>
  29. nnoremap <leader>tc :tabclose<CR>
  30.  
  31. "fzf
  32. nnoremap <leader>f :FZF<CR>
  33.  
  34. "Use ; in addition to : to type commands. https://github.com/alexryndin/dotfiles
  35. noremap ; :
  36. "noremap : ; ?
  37.  
  38. call plug#begin('~/.vim/plugged')
  39.  
  40. Plug 'scrooloose/nerdtree'
  41. Plug 'google/vim-maktaba'
  42. Plug 'google/vim-codefmt'
  43. Plug 'google/vim-glaive'
  44. Plug '/usr/local/opt/fzf'
  45.  
  46. call plug#end()
  47.  
  48. augroup autoformat_settings
  49.   autocmd FileType c,cpp AutoFormatBuffer clang-format
  50.   " Alternative: autocmd FileType python AutoFormatBuffer autopep8
  51. augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement