Created
May 1, 2020 16:08
-
-
Save HunterLarco/227186577c43543a62bc14d4baa1895d 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
"NeoBundle Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/home/hunter/.vim/bundle/neobundle.vim/ | |
" Required: | |
call neobundle#begin(expand('/home/hunter/.vim/bundle')) | |
" Let NeoBundle manage NeoBundle | |
" Required: | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" Add or remove your Bundles here: | |
NeoBundle 'mattn/gist-vim', {'depends': 'mattn/webapi-vim'} | |
" Required: | |
call neobundle#end() | |
" Required: | |
filetype plugin indent on | |
" If there are uninstalled bundles found on startup, | |
" this will conveniently prompt you to install them. | |
NeoBundleCheck | |
"End NeoBundle Scripts------------------------- | |
" 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 softtabstop=2 | |
set shiftwidth=2 | |
" Override the python syntax file's intend settings. | |
let g:python_recommended_style = 0 | |
" Automatically indent. | |
filetype plugin indent on | |
set autoindent | |
" Set the view type for the internal file system explorer. | |
let g:netrw_liststyle = 3 | |
" Set the filetype for VueJS files to HTML, | |
autocmd BufNewFile,BufRead *.vue set filetype=html | |
" Set the filetype for *.BUILD files to bazel BUILD, | |
autocmd BufNewFile,BufRead *.BUILD set filetype=bzl | |
" Turn on plugins for the detected file type. | |
filetype plugin on | |
" Highlight text over 80 chars. | |
highlight OverLength ctermbg=red ctermfg=white guibg=#592929 | |
match OverLength /\%81v.\+/ | |
imap <tab> <esc> | |
let g:gist_detect_filetype = 1 | |
let g:gist_post_private = 1 | |
if has("autocmd") | |
augroup templates | |
autocmd BufNewFile *.vue 0r ~/.vim/templates/skeleton.vue | |
autocmd BufNewFile *.proto 0r ~/.vim/templates/skeleton.proto | |
autocmd BufNewFile *.py 0r ~/.vim/templates/skeleton.py | |
autocmd BufNewFile main.cc 0r ~/.vim/templates/main.cc | |
augroup END | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment