.vimrc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. set nocompatible " be iMproved, required
  2. filetype off " required
  3. " set the runtime path to include Vundle and initialize
  4. set rtp+=~/.vim/bundle/Vundle.vim
  5. call vundle#begin()
  6. " alternatively, pass a path where Vundle should install plugins
  7. "call vundle#begin('~/some/path/here')
  8. " let Vundle manage Vundle, required
  9. Plugin 'VundleVim/Vundle.vim'
  10. " Lightline
  11. Plugin 'itchyny/lightline.vim'
  12. " Calendar
  13. Plugin 'itchyny/calendar.vim'
  14. " Colorschemes
  15. Plugin 'flazz/vim-colorschemes'
  16. Plugin 'arcticicestudio/nord-vim'
  17. " fzf
  18. Plugin 'junegunn/fzf'
  19. " Markdown
  20. Plugin 'gabrielelana/vim-markdown'
  21. " Install L9 and avoid a Naming conflict if you've already installed a
  22. " different version somewhere else.
  23. " Plugin 'ascenator/L9', {'name': 'newL9'}
  24. " All of your Plugins must be added before the following line
  25. call vundle#end() " required
  26. filetype plugin indent on " required
  27. " To ignore plugin indent changes, instead use:
  28. "filetype plugin on
  29. " Vim-markdown configuration
  30. let g:vim_markdown_folding_disabled = 1
  31. set conceallevel=2
  32. " Stuff for lightline
  33. set laststatus=2
  34. set timeoutlen=1000 ttimeoutlen =0
  35. " Aesthetic
  36. set number
  37. set relativenumber
  38. colo molokai
  39. set tabstop=4
  40. set shiftwidth=4
  41. syntax on
  42. set nocompatible
  43. set scrolloff=8
  44. " Netrw aesthetic
  45. let g:netrw_banner = 0
  46. let g:netrw_liststyle = 3
  47. let g:netrw_browse_split = 4
  48. let g:netrw_altv = 1
  49. let g:netrw_winsize = 15
  50. augroup ProjectDrawer
  51. autocmd!
  52. autocmd VimEnter * :Vexplore
  53. augroup END
  54. " Keyboard shortcuts
  55. " Switch between different windows by their direction
  56. no <C-j> <C-w>j
  57. no <C-k> <C-w>k
  58. no <C-l> <C-w>l
  59. no <C-h> <C-w>h
  60. " map CTRL-E to end-of-line (insert mode)
  61. imap <C-e> <esc>$i<right>
  62. " map CTRL-A to beginning-of-line (insert mode)
  63. imap <C-a> <esc>0i
  64. " map semi-colon to colon for quick commands
  65. map ; :
  66. " map movement to move up single lines
  67. map j gj
  68. map k gk
  69. inoremap jk <esc>
  70. " Switch to the right window (the file)
  71. au VimEnter * wincmd l