VimRC: Updated lots of bundles/settings.

* Replaced old powerline with airline
* Added many new swap words
* Removed lots of old/unneeded bundles
* Added fzf and ag shortcuts (,ag ,s)
* Added ruby+rails support
* Added commandline mode clipboard paste shortcut (ctrl+y)
* Added vim profiling shortcuts
* Updated the fonts
Signed-off-by: Hermann Mayer's avatarHermann Mayer <hermann.mayer92@gmail.com>
parent 37ce1589
......@@ -8,6 +8,17 @@
if 1 == VimRCBundlesMisc
" +-----------------------------------------------
" | Powerline
" +-----------------------------------------------
let g:airline_powerline_fonts = 1
let g:airline_highlighting_cache = 1
let g:airline_theme = 'powerlineish'
let g:airline#extensions#branch#enabled = 0
let g:airline#extensions#syntastic#enabled = 0
let g:airline#extensions#tagbar#enabled = 0
" +-----------------------------------------------
" | Autocompletion
" +-----------------------------------------------
......@@ -351,6 +362,13 @@ if 1 == VimRCBundlesDevel
\ ['if', 'unless'] ,
\ ['request', 'response'],
\ ['Request', 'Response'],
\ ['class', 'module'],
\ ['while', 'until'],
\ ['begin', 'end', 'rescue'],
\ ['height', 'width'],
\ ['vw', 'vh'],
\ ['ease', 'linear', 'ease-in', 'ease-out', 'ease-in-out', 'step-start', 'step-end'],
\ ['absolute', 'relative', 'fixed', 'static'],
\]
autocmd VimEnter * :IndentGuidesEnable
......@@ -438,4 +456,3 @@ if 1 == VimRCBundlesJavaScript
" endif
endif
......@@ -7,12 +7,10 @@ if 1 == VimRCBundlesMisc
Plugin 'editorconfig/editorconfig-vim'
" Enable alignment of any characters
Plugin 'Align'
" Auto alignment while typing
" Plugin 'AutoAlign'
" Autocompletition
Plugin 'AutoComplPop'
" Search results counter
Plugin 'IndexedSearch'
" Plugin 'IndexedSearch'
" Gvim colorscheme
Plugin 'Wombat'
" Close duplicate tabs
......@@ -21,12 +19,11 @@ if 1 == VimRCBundlesMisc
Plugin 'camelcasemotion'
" Better file browser
Plugin 'scrooloose/nerdtree'
" Code commenter
Plugin 'scrooloose/nerdcommenter'
" Tab list panel
Plugin 'kien/tabman.vim'
" Plugin 'kien/tabman.vim'
" Powerline
Plugin 'Lokaltog/vim-powerline'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" New: Plugin 'Lokaltog/powerline', Terminal Vim with 256 colors colorscheme
Plugin 'fisadev/fisa-vim-colorscheme'
" Just tab to get some awsome results
......@@ -50,7 +47,7 @@ if 1 == VimRCBundlesMisc
" Highlighting markdown
Plugin 'tpope/vim-markdown'
" Align characters
Plugin 'godlygeek/tabular'
" Plugin 'godlygeek/tabular'
" Auto commenter
Plugin 'tomtom/tcomment_vim'
" Repeat ability for plugin maps
......@@ -61,25 +58,23 @@ if 1 == VimRCBundlesMisc
Plugin 'Raimondi/delimitMate'
" Copy filename/path of current buffer to clipboard
Plugin 'copypath.vim'
" systemd syntax highlighting
Plugin 'Matt-Deacalion/vim-systemd-syntax'
" A Vim plugin which shows a git diff in the 'gutter' (sign column)
Plugin 'airblade/vim-gitgutter'
" Fuzzy finder (fzf) for vim
Plugin 'junegunn/fzf.vim'
endif
if 1 == VimRCBundlesDevel
" Pending tasks list
Plugin 'fisadev/FixedTaskList.vim'
" Plugin 'fisadev/FixedTaskList.vim'
" Class/module browser
Plugin 'majutsushi/tagbar'
" Code and files fuzzy finder
Plugin 'kien/ctrlp.vim'
" Plugin 'kien/ctrlp.vim'
" Add expanding abbreviations similar to emmet
Plugin 'mattn/emmet-vim'
" Plugin 'mattn/emmet-vim'
" Simply change '' (Doublequote) -> ' or similar on keystroke
Plugin 'tpope/vim-surround.git'
" Syntax check your current buffer
Plugin 'scrooloose/syntastic'
" Plugin 'scrooloose/syntastic'
" Awsome snippets
Plugin 'scrooloose/snipmate-snippets'
" Awsome snippet insertion
......@@ -87,22 +82,26 @@ if 1 == VimRCBundlesDevel
" Extended switching support - camelCase -> under_score
Plugin 'tpope/vim-abolish'
" Support for Ack
Plugin 'mileszs/ack.vim'
" Plugin 'mileszs/ack.vim'
" Support for git
Plugin 'tpope/vim-fugitive'
" Support for puppet
Plugin 'rodjek/vim-puppet'
" Plugin 'rodjek/vim-puppet'
" Support for vagrant
Plugin 'markcornick/vim-vagrant'
" Plugin 'markcornick/vim-vagrant'
" Support for docker
Plugin 'ekalinin/Dockerfile.vim'
" systemd syntax highlighting
Plugin 'Matt-Deacalion/vim-systemd-syntax'
" A Vim plugin which shows a git diff in the 'gutter' (sign column)
Plugin 'airblade/vim-gitgutter'
endif
if 1 == VimRCBundlesHTML
" XML/HTML tags navigation
Plugin 'matchit.zip'
" Auto close html/xml tags
Plugin 'vim-scripts/HTML-AutoCloseTag'
" Plugin 'vim-scripts/HTML-AutoCloseTag'
" Highlight open/close html/xml tags
Plugin 'gregsexton/MatchTag'
" HTML5 Support
......@@ -166,10 +165,13 @@ endif
if 1 == VimRCBundlesRuby
" HAML and SASS syntax
Plugin 'tpope/vim-haml'
" Rails support
Plugin 'tpope/vim-rails'
" Ruby completions
Plugin 'vim-ruby/vim-ruby'
endif
if 1 == VimRCBundlesSysAdmin
" Varnish highlighting
Plugin 'pld-linux/vim-syntax-vcl'
endif
......@@ -36,4 +36,3 @@ autocmd BufNewFile,BufRead Vagrantfile,vagrantfile set filetype=ruby
" Other stuff
" autocmd FileType xhtml,xml,ant,wsdl so ~/.vim/bundle/HTML-AutoCloseTag/ftplugin/html_autoclosetag.vim
......@@ -120,3 +120,18 @@ function s:OpenTerminal()
silent execute "!i3-sensible-terminal -cd " . getcwd() . " &"
endfunction
command! -complete=shellcmd OpenTerminal call s:OpenTerminal()
" Augmenting Ag command using fzf#vim#with_preview function
" * fzf#vim#with_preview([[options], preview window, [toggle keys...]])
" * For syntax-highlighting, Ruby and any of the following tools are required:
" - Highlight: http://www.andre-simon.de/doku/highlight/en/highlight.php
" - CodeRay: http://coderay.rubychan.de/
" - Rouge: https://github.com/jneen/rouge
"
" :Ag - Start fzf with hidden preview window that can be enabled with "?" key
" :Ag! - Start fzf in fullscreen and display the preview window above
command! -bang -nargs=* Ag
\ call fzf#vim#ag(<q-args>,
\ <bang>0 ? fzf#vim#with_preview('up:60%')
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
......@@ -183,6 +183,7 @@ map <C-x> "+x<CR>
imap <C-x> <ESC>"+xi
map <C-v> "+gP<ESC>:call TrimWhiteSpace()<CR>
imap <C-v> <ESC>"+pa
cmap <C-y> <C-R>+
" Quick Save
map <C-s> <ESC>:w<CR>
......@@ -266,3 +267,14 @@ nnoremap <LEADER>oc :exe ':silent !chromium-browser %'<CR>
" Open the cwd in an i3-sensitive terminal
nnoremap <C-Space> :OpenTerminal<CR>
" Vim profiling
" See: https://github.com/bling/minivimrc/blob/master/vimrc
nnoremap <silent> <leader>DD :exe ":profile start profile.log"<cr>:exe ":profile func *"<cr>:exe ":profile file *"<cr>
nnoremap <silent> <leader>DP :exe ":profile pause"<cr>
nnoremap <silent> <leader>DC :exe ":profile continue"<cr>
nnoremap <silent> <leader>DQ :exe ":profile pause"<cr>:noautocmd qall!<cr>
" Search with ag/fzf
map <Leader>s <ESC>:Ag<space>
map <Leader>ag <ESC>:Ag<space>
......@@ -148,4 +148,3 @@ endif
" Change cursor shape in different modes - Konsole
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment