Skip to content

Instantly share code, notes, and snippets.

@kolserdav
Created September 10, 2019 01:48
Show Gist options
  • Save kolserdav/9814317abd5ee9f672d1c4cb684537cf to your computer and use it in GitHub Desktop.
Save kolserdav/9814317abd5ee9f672d1c4cb684537cf to your computer and use it in GitHub Desktop.
Vimrc example file
" Vundle.vim section
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'vim-scripts/vim-auto-save'
call vundle#end()
filetype plugin indent on
" My section
let g:auto_save = 1
color calmar
set encoding=utf-8
set nowrap
set scrolloff=3
au BufNewFile,BufRead,BufReadPost *.ts set syntax=javascript
au BufNewFile,BufRead,BufReadPost *.ts setlocal ts=2 sts=2 sw=2
autocmd FileType javascript setlocal ts=2 sts=2 sw=2
autocmd FileType html setlocal ts=2 sts=2 sw=2
autocmd FileType css setlocal ts=2 sts=2 sw=2
map <F8> <C-E>:sleep 250m<CR>j<F8>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment