Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. " Don't try to be vi compatible
  2. set nocompatible
  3.  
  4. " Helps force plugins to load correctly when it is turned back on below
  5. filetype off
  6.  
  7. " set the runtime path to include Vundle and initialize
  8. set rtp+=~/.vim/bundle/Vundle.vim
  9. call vundle#begin()
  10.  
  11. " let Vundle manage Vundle, required
  12. Plugin 'VundleVim/Vundle.vim'
  13.  
  14. Plugin 'vim-airline/vim-airline'
  15. Plugin 'pangloss/vim-javascript'
  16. Plugin 'jiangmiao/auto-pairs'
  17. Plugin 'mattn/emmet-vim'
  18.  
  19. " All of your Plugins must be added before the following line
  20. call vundle#end() " required
  21.  
  22. " Turn on syntax highlighting
  23. syntax on
  24.  
  25. " For plugins to load correctly
  26. filetype plugin indent on
  27.  
  28. " Pick a leader key
  29. " let mapleader = "\"
  30.  
  31. " Security
  32. set modelines=0
  33.  
  34. " Show line numbers
  35. set number
  36.  
  37. " Show file stats
  38. set ruler
  39.  
  40. " Blink cursor on error instead of beeping (grr)
  41. set visualbell
  42.  
  43. " Encoding
  44. set encoding=utf-8
  45.  
  46. " Whitespace
  47. set wrap
  48. set textwidth=79
  49. set formatoptions=tcqrn1
  50. set tabstop=2
  51. set shiftwidth=2
  52. set softtabstop=2
  53. set expandtab
  54. set noshiftround
  55.  
  56. " Cursor motion
  57. set scrolloff=3
  58. set backspace=indent,eol,start
  59. set matchpairs+=<:> " use % to jump between pairs
  60. runtime! macros/matchit.vim
  61.  
  62. " Move up/down editor lines
  63. nnoremap j gj
  64. nnoremap k gk
  65.  
  66. " Allow hidden buffers
  67. set hidden
  68.  
  69. " Rendering
  70. set ttyfast
  71.  
  72. " Status bar
  73. set laststatus=2
  74.  
  75. " Last line
  76. set showmode
  77. set showcmd
  78.  
  79. " Searching
  80. nnoremap / /\v
  81. vnoremap / /\v
  82. set hlsearch
  83. set incsearch
  84. set ignorecase
  85. set smartcase
  86. set showmatch
  87. map <leader><space> :let @/=''<cr> " clear search
  88.  
  89. " Remap help key.
  90. inoremap <F1> <ESC>:set invfullscreen<CR>a
  91. nnoremap <F1> :set invfullscreen<CR>
  92. vnoremap <F1> :set invfullscreen<CR>
  93.  
  94. " Textmate holdouts
  95.  
  96. " Formatting
  97. map <leader>q gqip
  98.  
  99. " Visualize tabs and newlines
  100. set listchars=tab:▸\ ,eol:¬
  101. " Uncomment this to enable by default:
  102. " set list " To enable by default
  103. " Or use your leader key + l to toggle on/off
  104. map <leader>l :set list!<CR> " Toggle tabs and EOL
  105.  
  106. " Add shortcut for clipboard registers
  107. noremap <leader>p "*p
  108. noremap <leader>y "+y
  109. noremap <leader>d "+d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement