From 0f7e3a5395a283251e68d28f26f2891f0b196e65 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 15 Mar 2018 20:11:38 -0400 Subject: The great purge Removed all of the plugins adjusted the vimrc a little bit to use only builtins --- init.vim | 75 +++++++++++++++++++++++++++------------------------------------- 1 file changed, 31 insertions(+), 44 deletions(-) (limited to 'init.vim') diff --git a/init.vim b/init.vim index 4783756..4d9694b 100644 --- a/init.vim +++ b/init.vim @@ -28,7 +28,7 @@ inoremap inoremap " Always show status line -set laststatus=2 +" set laststatus=2 " Case insensitive searching by default set ic @@ -49,39 +49,14 @@ set noexpandtab " Maily for the ability to match HTML tags with '%' +" Apparently this is apart of the mainline vim install? Cool. runtime macros/matchit.vim -" Love hate relationship with this thing. I guess it's back -map :NERDTreeToggle - - -" To enable/disable the autocomplete dropdown -nmap [ :AcpDisable -nmap ] :AcpEnable - -" Gundo -nnoremap :GundoToggle -" -" Enable the list of buffers -let g:airline#extensions#tabline#enabled = 1 - -" Show just the filename -let g:airline#extensions#tabline#fnamemod = ':t' - -" This lets you just hit enter instead -" of pressing control-n Some people like it -" personally I'm not that much of a fan -" set completeopt=longest,menuone " Omni completion filetype plugin on set omnifunc=syntaxcomplete#Complete -nmap :TagbarToggle - -let g:ctrlp_follow_symlinks = 1 -let g:ctrlp_working_path_mode = 0 - autocmd Filetype python call SetPythonOptions() autocmd Filetype htmldjango call SethtmldjangoOptions() autocmd Filetype json call SetJsonOptions() @@ -98,7 +73,6 @@ function SetMarkdownOptions() set tabstop=4 set shiftwidth=4 set expandtab - AcpDisable endfunction function SetPythonOptions() set tabstop=4 @@ -152,40 +126,29 @@ function SetShellOptions() set smartindent endfunction function SetGoOptions() - " colorscheme acme - " syntax off - " colorscheme 256_noir - AcpDisable + syntax off set nolist set noic set nolist endfunction function SetYamlOptions() - " set listchars=tab:▸\ ,eol:¬,trail:•,space:· - set listchars=tab:▸\ ,eol:¬,trail:• set expandtab + set tabstop=2 set noic endfunction -" This is specifically for Salt's state files 'sls' -autocmd BufNewFile,BufRead *.sls set filetype=yaml - - function! PhpSyntaxOverride() hi! def link phpDocTags phpDefine hi! def link phpDocParam phpType endfunction -augroup phpSyntaxOverride - autocmd! - autocmd FileType php call PhpSyntaxOverride() -augroup END " Backslash l nmap l :set list! " If you want listchars set list " set listchars=tab:\|\ -set listchars=tab:▸\ ,eol:¬,trail:• +set listchars=tab:\|\ ,eol:¬,trail:• +" set listchars=tab:▸\ ,eol:¬,trail:• " set listchars=tab:▸\ ,eol:¬ " set listchars=tab:\|\ ,eol:↴ " set listchars=tab:\|\ ,eol:$ @@ -201,10 +164,34 @@ if &term =~ '^screen' endif +set noshowmode +set noruler +set laststatus=0 +set noshowcmd +function! ToggleHiddenAll() + if s:hidden_all == 0 + let s:hidden_all = 1 + set noshowmode + set noruler + set laststatus=0 + set noshowcmd + else + let s:hidden_all = 0 + set showmode + set ruler + set laststatus=2 + set showcmd + endif +endfunction + +nnoremap :call ToggleHiddenAll() + + " Line numbers set nu " Derp +set background=dark syntax on " syntax off -colorscheme distinguished +" colorscheme distinguished -- cgit v1.2.3