Last active
August 13, 2018 21:52
-
-
Save DanaCase/b715c8eda4e8d2dccac228fa25f808fa to your computer and use it in GitHub Desktop.
.vimrc
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
"for allowing vundles | |
set nocompatible | |
filetype plugin indent on | |
syntax on | |
set backspace=2 | |
set clipboard=unnamed | |
set t_Co=256 | |
set background=dark | |
let g:solarized_temrcolors=256 | |
let g:solarized_termtrans=1 | |
let g:solarized_contrast="high" | |
let g:solarized_visibility="high" | |
colorscheme Tomorrow-Night-Eighties | |
set encoding=utf8 | |
set guifont=Source\ Code\ Pro\ Light:h12 | |
let g:php_annotations_syntax=1 | |
imap jj <ESC> | |
imap JJ <ESC> | |
imap jJ <ESC> | |
imap Jj <ESC> | |
" set auto indent and bind F9 to tun it off (when pasting) | |
" -- use = to automatically reindent | |
set autoindent | |
set smartindent | |
set pastetoggle=<F9> | |
au InsertLeave * set nopaste | |
" set soft tabs to 4 spaces in all cases | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
"show hidden files | |
let NERDTreeShowHidden=1 | |
autocmd vimenter * NERDTree | |
"call ag instead of ack | |
if executable('ag') | |
let g:ackprg = 'ag --nogroup --nocolor --column' | |
endif | |
"lets you use the god damned mouse like a human | |
set mouse=a | |
"lets you specify local vimrc | |
let g:local_vimrc = {'names':['.vimrc'],'hash_fun':'LVRHashOfFile'} | |
"When opening or creating a .vue file set the filetype to HTML for proper rendering | |
autocmd BufNewFile,BufRead *.vue set filetype=html | |
autocmd BufNewFile,BufRead *.ts set filetype=typescript | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
"Plugin 'wookiehangover/jshint.vim' | |
Plugin 'pangloss/vim-javascript' | |
"Plugin 'othree/javascript-libraries-syntax.vim' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'othree/html5.vim' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'delimitMate.vim' | |
Plugin 'qbbr/vim-symfony' | |
"Plugin 'vim-scripts/closetag.vim' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'gregsexton/matchtag' | |
Plugin 'maksimr/vim-jsbeautify' | |
Plugin 'chase/vim-ansible-yaml' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'ervandew/supertab' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'honza/vim-snippets' | |
Plugin 'mmozuras/snipmate-mocha' | |
Plugin 'posva/vim-vue' | |
Plugin 'MarcWeber/vim-addon-local-vimrc' | |
Plugin 'tpope/vim-fugitive' | |
"Plugin 'Glench/Vim-Jinja2-Syntax' | |
Plugin 'lepture/vim-jinja' | |
Plugin 'vimwiki/vimwiki' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'chriskempson/base16-vim' | |
Plugin 'digitaltoad/vim-jade' | |
Plugin 'leafgarland/typescript-vim' | |
Plugin 'Quramy/tsuquyomi' | |
"npm install instant-markdown | |
Plugin 'suan/vim-instant-markdown' | |
"pip install instant-rst | |
Plugin 'gu-fan/InstantRst' | |
Plugin 'dearrrfish/vim-applescript' | |
call vundle#end() | |
" vimwiki/vimwiki | |
let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] | |
let g:used_javascript_libs = 'jquery,underscore,angularjs,angularuirouter,react' | |
"Make YCM compatable with UltiSnips (using supertab) | |
"let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] | |
"let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] | |
"let g:SuperTabDefaultCompletionType = '<C-n>' | |
""Snippets config | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<tab>" | |
let g:UltiSnipsJumpBackwardTrigger="<S-tab>" | |
let g:UltiSnipsSnippetDirectories=["UltiSnips"] | |
"Jinja comments | |
let g:NERDAltDelims_jinja = 1 | |
"jsx comments | |
let g:NERDCustomDelimiters = { 'javascript.jsx': { 'left': '//', 'leftAlt': '{/*', 'rightAlt': '*/}' } } | |
"Syntastic checkers | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
"let g:syntastic_always_populate_loc_list = 1 | |
"let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_javascript_checkers = ['eslint'] | |
let g:tsuquyomi_disable_quickfix = 1 | |
let g:syntastic_typescript_checkers = ['tslint'] " You shouldn't use 'tsc' checker. | |
" Hex read | |
nmap <Leader>hr :%!xxd<CR> :set filetype=xxd<CR> | |
" Hex write | |
nmap <Leader>hw :%!xxd -r<CR> :set binary<CR> :set filetype=<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment