From 709accc8e4f6dc3c21fc9b55e9fcc31559c68472 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 21 Sep 2019 12:44:34 -0400 Subject: Re-arrange the vim configuration --- inc/airline.vim | 15 -------- inc/ctrlp.vim | 2 - inc/filetype-options.vim | 98 ------------------------------------------------ inc/gundo.vim | 1 - inc/rebinds.vim | 14 ------- inc/undo.vim | 10 ----- 6 files changed, 140 deletions(-) delete mode 100644 inc/airline.vim delete mode 100644 inc/ctrlp.vim delete mode 100644 inc/filetype-options.vim delete mode 100644 inc/gundo.vim delete mode 100644 inc/rebinds.vim delete mode 100644 inc/undo.vim (limited to 'inc') diff --git a/inc/airline.vim b/inc/airline.vim deleted file mode 100644 index 4486d50..0000000 --- a/inc/airline.vim +++ /dev/null @@ -1,15 +0,0 @@ -" Always show status line -" set laststatus=2 - -" Enable the list of buffers -let g:airline#extensions#tabline#enabled = 1 - -" Show just the filename -let g:airline#extensions#tabline#fnamemod = ':t' - -if !exists('g:airline_symbols') - let g:airline_symbols = {} -endif -let g:airline_symbols.space = "\ua0" - -let g:airline_section_z = airline#section#create(['windowswap', '%3p%% ', 'linenr', ':%3v']) diff --git a/inc/ctrlp.vim b/inc/ctrlp.vim deleted file mode 100644 index 515a5d2..0000000 --- a/inc/ctrlp.vim +++ /dev/null @@ -1,2 +0,0 @@ -let g:ctrlp_follow_symlinks = 1 -let g:ctrlp_working_path_mode = 0 diff --git a/inc/filetype-options.vim b/inc/filetype-options.vim deleted file mode 100644 index f0cbb37..0000000 --- a/inc/filetype-options.vim +++ /dev/null @@ -1,98 +0,0 @@ -function! PhpSyntaxOverride() - hi! def link phpDocTags phpDefine - hi! def link phpDocParam phpType -endfunction - -augroup phpSyntaxOverride - autocmd! - autocmd FileType php call PhpSyntaxOverride() -augroup END - -" This is specifically for Salt's state files 'sls' -autocmd BufNewFile,BufRead *.sls set filetype=yaml - -autocmd Filetype python call SetPythonOptions() -autocmd Filetype htmldjango call SethtmldjangoOptions() -autocmd Filetype json call SetJsonOptions() -autocmd Filetype javascript call SetjavascriptOptions() -autocmd Filetype php call SetPHPOptions() -autocmd Filetype html call SetHTMLOptions() -autocmd Filetype sh call SetShellOptions() -autocmd Filetype go call SetGoOptions() -autocmd Filetype yaml call SetYamlOptions() -autocmd Filetype markdown call SetMarkdownOptions() - -function SetMarkdownOptions() - set spell - set tabstop=2 - set shiftwidth=2 - set expandtab - AcpDisable -endfunction -function SetPythonOptions() - set tabstop=4 - set shiftwidth=4 - set expandtab - filetype indent on - set smartindent -endfunction -function SetjavascriptOptions() - set tabstop=2 - set shiftwidth=2 - set expandtab - filetype indent on - set smartindent -endfunction -function SetJsonOptions() - set tabstop=3 - set shiftwidth=3 - set expandtab - filetype indent on - set smartindent -endfunction -function SethtmldjangoOptions() - set tabstop=2 - set shiftwidth=2 - set expandtab - filetype indent on - set smartindent -endfunction -function SetPHPOptions() - set colorcolumn=120 - set tabstop=4 - set shiftwidth=4 - set expandtab - filetype indent on - set smartindent -endfunction -function SetHTMLOptions() - set colorcolumn=120 - set tabstop=2 - set shiftwidth=2 - set expandtab - filetype indent on - set smartindent -endfunction -function SetShellOptions() - set tabstop=8 - set shiftwidth=8 - set noexpandtab - filetype indent on - set smartindent -endfunction -function SetGoOptions() - set tabstop=8 - set noexpandtab - " The ACP is pretty slow with my Go plugins enabled - AcpDisable - set nolist - set noic - set nolist -endfunction -function SetYamlOptions() - set tabstop=2 - set shiftwidth=2 - set expandtab - set expandtab - set noic -endfunction diff --git a/inc/gundo.vim b/inc/gundo.vim deleted file mode 100644 index bdcb82a..0000000 --- a/inc/gundo.vim +++ /dev/null @@ -1 +0,0 @@ -let g:gundo_prefer_python3 = 1 diff --git a/inc/rebinds.vim b/inc/rebinds.vim deleted file mode 100644 index cacef62..0000000 --- a/inc/rebinds.vim +++ /dev/null @@ -1,14 +0,0 @@ -" Keep the newbs from using arrow keys -inoremap -inoremap -inoremap -inoremap - -" map :Lex -map :NERDTreeToggle - -" To enable/disable the autocomplete dropdown -nmap [ :AcpDisable -nmap ] :AcpEnable - -nnoremap :GundoToggle diff --git a/inc/undo.vim b/inc/undo.vim deleted file mode 100644 index 78c7e48..0000000 --- a/inc/undo.vim +++ /dev/null @@ -1,10 +0,0 @@ -" Persistent undo -set undofile -set undodir=~/.vimundo -set undolevels=1000 -set undoreload=10000 - -" lots of history, it's always nice to find old nasty command that happen -" to be really useful -set history=10000 -" -- cgit v1.2.3