Add vim/vimrc
This commit is contained in:
parent
3e3d778e89
commit
5ae962adcc
154
vim/vimrc
Normal file
154
vim/vimrc
Normal file
@ -0,0 +1,154 @@
|
||||
"" General
|
||||
set runtimepath+=/etc/vim/autoload
|
||||
set runtimepath+=/etc/vim/plugged
|
||||
set runtimepath+=/etc/vim/session
|
||||
set runtimepath+=/etc/vim/sessions
|
||||
set runtimepath+=/etc/vim/colors
|
||||
|
||||
set nowrap " Wrap lines
|
||||
set textwidth=100 " Line wrap (number of cols)
|
||||
set showmatch " Highlight matching brace
|
||||
|
||||
set hlsearch " Highlight all search results
|
||||
set smartcase " Enable smart-case search
|
||||
set ignorecase " Always case-insensitive
|
||||
set incsearch " Searches for strings incrementally
|
||||
|
||||
set autoindent " Auto-indent new lines
|
||||
set shiftwidth=4 " Number of auto-indent spaces
|
||||
set smartindent " Enable smart-indent
|
||||
set smarttab " Enable smart-tabs
|
||||
set softtabstop=4 " Number of spaces per Tab
|
||||
|
||||
"" Advanced
|
||||
set ruler " Show row and column ruler information
|
||||
|
||||
call plug#begin('/etc/vim/plugged')
|
||||
" c
|
||||
Plug 'vim-scripts/c.vim', {'for': ['c', 'cpp']}
|
||||
Plug 'ludwig/split-manpage.vim'
|
||||
|
||||
|
||||
" html
|
||||
"" HTML Bundle
|
||||
Plug 'hail2u/vim-css3-syntax'
|
||||
Plug 'gko/vim-coloresque'
|
||||
Plug 'tpope/vim-haml'
|
||||
Plug 'mattn/emmet-vim'
|
||||
|
||||
|
||||
" javascript
|
||||
"" Javascript Bundle
|
||||
Plug 'jelera/vim-javascript-syntax'
|
||||
|
||||
|
||||
" php
|
||||
"" PHP Bundle
|
||||
Plug 'phpactor/phpactor', {'for': 'php', 'do': 'composer install --no-dev -o'}
|
||||
Plug 'stephpy/vim-php-cs-fixer'
|
||||
|
||||
|
||||
" python
|
||||
"" Python Bundle
|
||||
Plug 'davidhalter/jedi-vim'
|
||||
Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}
|
||||
|
||||
|
||||
" ruby
|
||||
Plug 'tpope/vim-rails'
|
||||
Plug 'tpope/vim-rake'
|
||||
Plug 'tpope/vim-projectionist'
|
||||
Plug 'thoughtbot/vim-rspec'
|
||||
Plug 'ecomba/vim-ruby-refactoring', {'tag': 'main'}
|
||||
|
||||
|
||||
" rust
|
||||
" Vim racer
|
||||
Plug 'racer-rust/vim-racer'
|
||||
|
||||
" Rust.vim
|
||||
Plug 'rust-lang/rust.vim'
|
||||
|
||||
" CSS
|
||||
Plug 'hail2u/vim-css3-syntax'
|
||||
Plug 'webfd/vim-scss'
|
||||
|
||||
" Bash
|
||||
Plug 'vim-scripts/sh.vim'
|
||||
" Plug 'zplugin/zplugin-vim-syntax'
|
||||
|
||||
" Vim lsp
|
||||
Plug 'prabirshrestha/vim-lsp'
|
||||
|
||||
" Async.vim
|
||||
" Plug 'prabirshrestha/async.vim'
|
||||
|
||||
" Asyncomplete.vim
|
||||
" Plug 'prabirshrestha/asyncomplete.vim'
|
||||
|
||||
" Asyncomplete lsp.vim
|
||||
" Plug 'prabirshrestha/asyncomplete-lsp.vim'
|
||||
|
||||
" Yuck
|
||||
" Plug 'elkowar/yuck.vim'
|
||||
|
||||
" Airline statusbar
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
|
||||
|
||||
"" Include user's extra bundle
|
||||
" if filereadable(/home/ucadmin/.vim/.vimrc.local.bundles")
|
||||
" source ~/.vimrc.local.bundles
|
||||
" endif
|
||||
|
||||
call plug#end()
|
||||
" END PLUGINS""""""""""""""""
|
||||
|
||||
" Required:
|
||||
filetype plugin indent on
|
||||
|
||||
set backspace=indent,eol,start
|
||||
colorscheme molokai
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='bubblegum'
|
||||
|
||||
|
||||
" vim-airline
|
||||
if !exists('g:airline_symbols')
|
||||
let g:airline_symbols = {}
|
||||
endif
|
||||
|
||||
if !exists('g:airline_powerline_fonts')
|
||||
let g:airline#extensions#tabline#left_sep = ' '
|
||||
let g:airline#extensions#tabline#left_alt_sep = '|'
|
||||
let g:airline_left_sep = '▶'
|
||||
let g:airline_left_alt_sep = '»'
|
||||
let g:airline_right_sep = '◀'
|
||||
let g:airline_right_alt_sep = '«'
|
||||
let g:airline#extensions#branch#prefix = '⤴' "➔, ➥, ⎇
|
||||
let g:airline#extensions#readonly#symbol = '⊘'
|
||||
let g:airline#extensions#linecolumn#prefix = '¶'
|
||||
let g:airline#extensions#paste#symbol = 'ρ'
|
||||
let g:airline_symbols.linenr = '␊'
|
||||
let g:airline_symbols.branch = '⎇'
|
||||
let g:airline_symbols.paste = 'ρ'
|
||||
let g:airline_symbols.paste = 'Þ'
|
||||
let g:airline_symbols.paste = '∥'
|
||||
let g:airline_symbols.whitespace = 'Ξ'
|
||||
else
|
||||
let g:airline#extensions#tabline#left_sep = ''
|
||||
let g:airline#extensions#tabline#left_alt_sep = ''
|
||||
|
||||
" powerline symbols
|
||||
let g:airline_symbols.space = " "
|
||||
let g:airline_left_sep = ''
|
||||
let g:airline_left_alt_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
let g:airline_symbols.branch = ''
|
||||
let g:airline_symbols.readonly = ''
|
||||
let g:airline_symbols.linenr = ' '
|
||||
let g:airline_symbols.maxlinenr = ''
|
||||
let g:airline_symbols.colnr = ' '
|
||||
endif
|
Loading…
Reference in New Issue
Block a user