Created
November 25, 2020 01:28
-
-
Save HunterLarco/6660a0c35fc7240931ec311266f3de54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Language syntax packs | |
" Plugin 'sheerun/vim-polyglot' | |
" Typescript Syntax | |
Bundle 'leafgarland/typescript-vim' | |
" vim Gist | |
Bundle 'mattn/webapi-vim' | |
Bundle 'mattn/vim-gist' | |
" Symbol nagivator for Javascript | |
Plugin 'ternjs/tern_for_vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Enable syntax highlighting. | |
syntax on | |
" Enable line numbers, | |
set nu | |
" Enable column numbers, | |
set ruler | |
" Disable arrow keys. | |
map <up> <nop> | |
map <down> <nop> | |
map <left> <nop> | |
map <right> <nop> | |
imap <up> <nop> | |
imap <down> <nop> | |
imap <left> <nop> | |
imap <right> <nop> | |
" Indent using 2 spaces, | |
set expandtab | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
" Automatically indent. | |
filetype plugin indent on | |
set autoindent | |
" Override the python syntax file's intend settings. | |
let g:python_recommended_style = 0 | |
" Set the view type for the internal file system explorer. | |
let g:netrw_liststyle = 3 | |
" Turn on plugins for the detected file type. | |
filetype plugin on | |
" Set the filetype for VueJS files to HTML, | |
autocmd BufNewFile,BufRead *.vue set filetype=html | |
" Set the filetype for MJML files to HTML, | |
autocmd BufNewFile,BufRead *.mjml set filetype=html | |
" Set the filetype for *.BUILD files to bazel BUILD, | |
autocmd BufNewFile,BufRead *.BUILD set filetype=bzl | |
" Highlight text over 80 chars | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
match OverLength /\%81v.\+/ | |
" Add skeletons for common extensions. | |
augroup templates | |
autocmd BufNewFile *.vue 0r ~/.vim/templates/skeleton.vue | |
augroup END | |
" Remap <tab> to <esc> | |
inoremap <tab> <esc> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment