From 4eb113fcf8593fd863f656e84cab0d85b958198c Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 8 Jun 2018 10:11:09 -0600 Subject: Adding nginx --- vimrc | 117 +----------------------------------------------------------------- 1 file changed, 1 insertion(+), 116 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 4221ba8..cc8606d 100644 --- a/vimrc +++ b/vimrc @@ -7,122 +7,7 @@ Plug 'tpope/vim-surround' " Helps with surrounding text Plug 'morhetz/gruvbox' " Pretty colorscheme Plug 'ledger/vim-ledger' " Ledger plugin Plug 'python-mode/python-mode' " Python awesomeness in vim +Plug 'chr4/nginx.vim' " nginx stuff Plug 'thornycrackers/vim-options' " Custom options call plug#end() - -" General Settings -set nocompatible " Disable vi-compatible -set wildmenu " Enable autocomple menu -set incsearch " Show search results as typing string -set hlsearch " Highlight matches to previos search string -set expandtab " In Insert mode: Use the appropriate number of spaces to insert . -set tabstop=4 "Number of spaces that a counts for -set shiftwidth=0 " Make shiftwidth value the same as tabstop -set relativenumber " Use relative numbers in the side bar -set nowrap " Turn off text wrapping long lines -set history=1000 " Set number of ':' commands -set wildmode=list:full " wildmenu show list complete to first result -set splitright " New windows split to the right of current one -set splitbelow " New windows split below the current one -set completeopt-=preview " Hide the preview/scratch window - -" Custom status line -set statusline= -set statusline+=%1*\ %02c\ " Color -set statusline+=%2*\ » " RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK -set statusline+=%3*\ %<%F\ " File+path -set statusline+=%2*\« " LEFT-POINTING DOUBLE ANGLE QUOTATION MARK -set statusline+=%2*\ %=\ %l/%L\ (%02p%%)\ " Rownumber/total (%) - -" Set spacing of filetypes -autocmd FileType sh,python setlocal tabstop=4 -autocmd FileType make setlocal tabstop=4 noexpandtab -autocmd FileType ledger setlocal tabstop=2 -autocmd FileType vim setlocal tabstop=2 - -" Setup colorscheme -syntax enable -colorscheme gruvbox " Set the colorscheme -set background=dark " Use dark colorscheme - -" Set vimdiff colors, make it easier to read -highlight DiffAdd cterm=BOLD ctermfg=NONE ctermbg=22 -highlight DiffDelete cterm=BOLD ctermfg=NONE ctermbg=52 -highlight DiffChange cterm=BOLD ctermfg=NONE ctermbg=23 -highlight DiffText cterm=BOLD ctermfg=NONE ctermbg=23 - -" Highlight lines at 80 mark -highlight ColorColumn ctermbg=cyan -au BufNewFile,BufRead * call matchadd('ColorColumn', '\%81v', 100) - -" Highlight lines at 120 mark -au BufNewFile,BufRead * call matchadd('Error', '\%121v', 100) - -" My Shorcuts -let mapleader="\" -" type jj to get out of insert mode -inoremap jj -" Ctags for python project -command! MakeTagsPython !ctags --languages=python --python-kinds=-i -R . -" Command for figuring out highlight group -map hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#") -" Turn off syntax highlighting -nnoremap :noh -" New tab -nnoremap t :tabnew -" Visually select pasted text -nnoremap gp `[v`] -" Vimdiff commands -nnoremap du :diffupdate -nnoremap dd :diffget -nnoremap df :diffput -nnoremap _ [c -nnoremap = ]c -" Visually select line without ending -nnoremap v ^v$h -" Some very useful shortcuts for editing Ledger entries -" Copy the last entry -nnoremap ll G{jV}y}p10l -" Copy the current entry to the bottom, copy date from last entry -nnoremap lb {jV}yGp10l{{jvEy}jvEpl -" Copy the current entry to the next position -nnoremap ln {jV}y}p10l -" Jump down from line to replace dollar ammount -nnoremap ld j^f$lC -" After searching pull entry to current position -nnoremap ly vapyp{{jvEy}jvEpl -" Accept current autocomplete suggestion -inoremap pumvisible() ? "\" : "\" - - -"----------------------------------------------------------------------------------------------------------------------- -" Ale -"----------------------------------------------------------------------------------------------------------------------- -let g:ale_lint_on_enter = 0 -let g:ale_sign_column_always = 1 -let g:ale_lint_on_text_changed = 'never' -let g:ale_python_mypy_options='--ignore-missing-imports' -let g:ale_history_enabled = 0 -highlight clear ALEErrorSign -highlight clear ALEWarningSign -" Change gutter color -highlight SignColumn cterm=NONE ctermfg=0 ctermbg=None -"----------------------------------------------------------------------------------------------------------------------- - - - -"----------------------------------------------------------------------------------------------------------------------- -" Python Mode -"----------------------------------------------------------------------------------------------------------------------- -let g:pymode_run = 1 -let g:pymode_indent = 1 -let g:pymode_motion = 1 -let g:pymode_options_colorcolumn = 0 -let g:pymode_lint = 0 -let g:pymode_rope = 0 -let g:pymode_doc = 0 -let g:pymode_breakpoint = 0 -let g:pymode_lint = 0 -let g:pymode_folding = 0 -"----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3