Advertisement
Guest User

Minimal vimrc

a guest
Dec 8th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.23 KB | None | 0 0
  1. " Auto indent
  2. filetype plugin indent on
  3.  
  4. " Enable syntax highlighting
  5. syntax on
  6.  
  7. " Disable swap file
  8. set noswapfile
  9.  
  10. " Enable line numbers
  11. set number
  12.  
  13. " Disable line wrapping
  14. set nowrap
  15.  
  16. " Make backspace behaive like normal
  17. set backspace=indent,eol,start
  18.  
  19. " Other options
  20. set incsearch
  21. set showmode
  22. set wildmenu
  23. set ruler
  24. set lz
  25. set hid
  26. set softtabstop=4
  27. set tabstop=4
  28. set shiftwidth=4
  29. set expandtab
  30. set autoindent
  31. set smartindent
  32. set cindent
  33. set ai
  34. set si
  35. set cin
  36. set mouse=a
  37. set numberwidth=6
  38. set encoding=utf-8
  39.  
  40. " Make new splits oben below the current window and
  41. " to the right of it, instead of the other way around.
  42. set splitbelow splitright
  43.  
  44. " Enable relative line numbering
  45. set rnu
  46.  
  47. " This is important for the powerline plugin
  48. set laststatus=2
  49.  
  50. " Store an undo buffer in a file in $HOME/.vimundo
  51. set undofile
  52. set undodir=$HOME/.vimundo
  53. set undolevels=1000
  54. set undoreload=10000
  55.  
  56. " Bind ; as : as it's more convienent
  57. noremap ; :
  58.  
  59. " Unbind Ex mode
  60. noremap Q <nop>
  61.  
  62. " Unbind help menu
  63. noremap <F1> <nop>
  64.  
  65. " Unbind another help menu
  66. noremap <S-k> <nop>
  67.  
  68. " Easier split navigation
  69. nnoremap <C-J> <C-W><C-J>
  70. nnoremap <C-K> <C-W><C-K>
  71. nnoremap <C-L> <C-W><C-L>
  72. nnoremap <C-H> <C-W><C-H>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement