Skip to content

Commit 03d5f11

Browse files
committedApr 8, 2022
Update plug in system and general cleanup
Made me realise I don't actually use vim almost for anything anymore
1 parent b835a92 commit 03d5f11

File tree

9 files changed

+23
-332
lines changed

9 files changed

+23
-332
lines changed
 

‎vim/after/ftplugin/go.vim

-10
This file was deleted.

‎vim/after/ftplugin/haml.vim

-1
This file was deleted.

‎vim/after/ftplugin/liquid.vim

-2
This file was deleted.

‎vim/after/syntax/html.vim

-6
This file was deleted.

‎vim/indent/html.vim

-264
This file was deleted.

‎vim/mappings/leader.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nmap <leader>e :Vexplore<CR>
99
nmap <leader>E :Vexplore <C-R>=getcwd()<CR><CR>
1010
1111
" Indent all the file with one keystroke.
12-
" See http://lucapette.com/vim/rails/vim-for-rails-developers-indenting-code.
12+
" See http://lucapette.me/writing/vim-for-rails-developers-indenting-code.
1313
nmap <leader>i gg=G``
1414
1515
" Show a preview of the git current status.

‎vim/settings/commands.vim

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
" Convert Ruby 1.8 hash syntax to Ruby 1.9 syntax
2-
" based on https://github.com/henrik/dotfiles/blob/master/vim/config/commands.vim#L20
3-
command! -bar -range=% NotRocket execute '<line1>,<line2>s/:\(\w\+\)\s*=>/\1:/e' . (&gdefault ? '' : 'g')
4-
51
" Remove all trailing spaces
62
command! TrimSpaces execute ':call utils#trimspaces()<bar>w'

‎vim/settings/plugins.vim

-15
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,3 @@ let g:ctrlp_match_window_bottom = 0
99
let g:ctrlp_match_window_reversed = 0
1010
let g:ctrlp_user_command = ['.git/', 'cd %s && git ls-files -co --exclude-standard']
1111
let g:ctrlp_working_path_mode = 'r'
12-
13-
" Fancy fonts
14-
let g:airline_powerline_fonts = 1
15-
16-
" RubyComplete
17-
let g:rubycomplete_buffer_loading = 0
18-
let g:rubycomplete_include_object = 0
19-
let g:rubycomplete_rails = 0
20-
21-
let g:markdown_fenced_languages = ['html', 'ruby', 'bash=sh', 'js=javascript']
22-
23-
let g:javascript_plugin_flow = 1
24-
let g:jsx_ext_required = 0
25-
26-
let g:omni_sql_no_default_maps = 1

‎vimrc

+22-29
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,30 @@ set nocompatible
22

33
filetype off
44

5-
if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git"))
6-
!git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
5+
if !filereadable(expand("~/.vim/autoload/plug.vim"))
6+
!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
77
endif
88

9-
" Set the runtime path to include Vundle and initialize
10-
set rtp+=~/.vim/bundle/Vundle.vim
11-
call vundle#begin()
12-
13-
Plugin 'gmarik/Vundle.vim'
14-
15-
Plugin 'AndrewRadev/splitjoin.vim'
16-
Plugin 'Einenlum/yaml-revealer'
17-
Plugin 'altercation/vim-colors-solarized'
18-
Plugin 'arcticicestudio/nord-vim'
19-
Plugin 'benmills/vimux'
20-
Plugin 'ctrlpvim/ctrlp.vim'
21-
Plugin 'kana/vim-textobj-user'
22-
Plugin 'nelstrom/vim-textobj-rubyblock'
23-
Plugin 'rking/ag.vim'
24-
Plugin 'sheerun/vim-polyglot'
25-
Plugin 'tpope/vim-commentary'
26-
Plugin 'tpope/vim-fugitive'
27-
Plugin 'tpope/vim-repeat'
28-
Plugin 'tpope/vim-rhubarb'
29-
Plugin 'tpope/vim-surround'
30-
Plugin 'vim-airline/vim-airline'
31-
Plugin 'vim-airline/vim-airline-themes'
32-
Plugin 'vim-ruby/vim-ruby'
33-
Plugin 'vim-scripts/matchit.zip'
34-
35-
call vundle#end()
9+
call plug#begin()
10+
11+
Plug 'AndrewRadev/splitjoin.vim'
12+
Plug 'Einenlum/yaml-revealer'
13+
Plug 'altercation/vim-colors-solarized'
14+
Plug 'arcticicestudio/nord-vim'
15+
Plug 'benmills/vimux'
16+
Plug 'ctrlpvim/ctrlp.vim'
17+
Plug 'sheerun/vim-polyglot'
18+
Plug 'tpope/vim-commentary'
19+
Plug 'tpope/vim-fugitive'
20+
Plug 'tpope/vim-repeat'
21+
Plug 'tpope/vim-rhubarb'
22+
Plug 'tpope/vim-surround'
23+
Plug 'vim-airline/vim-airline'
24+
Plug 'vim-airline/vim-airline-themes'
25+
Plug 'vim-ruby/vim-ruby'
26+
Plug 'vim-scripts/matchit.zip'
27+
28+
call plug#end()
3629

3730
" Indentation
3831
filetype plugin indent on

0 commit comments

Comments
 (0)
Please sign in to comment.