Update VIM config

This commit is contained in:
2017-09-01 20:39:05 +02:00
parent ea8cd5ba83
commit b885ee04fe
3 changed files with 57 additions and 49 deletions

View File

@@ -20,7 +20,7 @@
~/.i3: ~/.i3:
~/.tmux.conf: ~/.tmux.conf:
path: tmux/tmux.conf path: tmux/tmux.conf
~/.vimrc: ~/.config/nvim/init.vim:
path: vim/vimrc path: vim/vimrc
~/.Xresources: ~/.Xresources:
path: x/Xresources path: x/Xresources
@@ -34,4 +34,15 @@
path: zsh/zshrc.d path: zsh/zshrc.d
- shell: - shell:
- ln -sf ~/.config/nvim/init.vim ~/.vimrc
- xrdb ~/.Xresources - xrdb ~/.Xresources
- mkdir -p ~/.var/lib
- mkdir -p ~/.var/log
- mkdir -p ~/.var/run
- curl --fail --location --create-dirs --output ~/.local/share/nvim/site/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- command: nvim -E +PlugInstall +qall || true
stdout: true
stderr: true
- command: cd ~/.local/share/nvim/plugged/YouCompleteMe && ./install.py || true
stdout: true
stderr: true

View File

@@ -1,33 +1,31 @@
" vim: set filetype=vim
set nocompatible set nocompatible
filetype off filetype off
set rtp+=~/.vim/bundle/Vundle.vim/ call plug#begin('~/.local/share/nvim/plugged')
call vundle#begin()
" === plugin setup === " === plugins ===
Plugin 'VundleVim/Vundle.vim' "Plug 'vim-airline/vim-airline'
"Plug 'vim-airline/vim-airline-themes'
Plugin 'vim-airline/vim-airline' Plug 'itchyny/lightline.vim'
Plugin 'vim-airline/vim-airline-themes' " Plug 'godlygeek/tabular'
Plugin 'godlygeek/tabular' " Plug 'lepture/vim-jinja'
Plugin 'lepture/vim-jinja' Plug 'majutsushi/tagbar'
Plugin 'majutsushi/tagbar' " Plug 'nblock/vim-dokuwiki'
Plugin 'nblock/vim-dokuwiki' Plug 'reedes/vim-pencil'
Plugin 'reedes/vim-pencil' " Plug 'saltstack/salt-vim'
Plugin 'saltstack/salt-vim' Plug 'sickill/vim-monokai'
Plugin 'sickill/vim-monokai' " Plug 'sjl/gundo.vim'
Plugin 'sjl/gundo.vim' " Plug 'tpope/vim-commentary'
Plugin 'tpope/vim-commentary' " Plug 'tpope/vim-fugitive'
Plugin 'tpope/vim-fugitive' " Plug 'tpope/vim-speeddating'
Plugin 'tpope/vim-speeddating' " Plug 'tpope/vim-surround'
Plugin 'tpope/vim-surround' Plug 'airblade/vim-gitgutter'
Plugin 'junegunn/goyo.vim' Plug 'junegunn/goyo.vim'
Plugin 'junegunn/limelight.vim' Plug 'junegunn/limelight.vim'
Plugin 'sheerun/vim-polyglot' " Plug 'sheerun/vim-polyglot'
Plugin 'freitass/todo.txt-vim' " Plug 'freitass/todo.txt-vim'
Plugin 'Valloric/YouCompleteMe' Plug 'Valloric/YouCompleteMe'
Plug 'nathanaelkane/vim-indent-guides'
"Plugin 'Lokaltog/vim-easymotion' "Plugin 'Lokaltog/vim-easymotion'
"Plugin 'PeterRincker/vim-argumentative' "Plugin 'PeterRincker/vim-argumentative'
@@ -36,21 +34,16 @@ Plugin 'Valloric/YouCompleteMe'
"Plugin 'kien/ctrlp.vim' "Plugin 'kien/ctrlp.vim'
"Plugin 'klen/python-mode' "Plugin 'klen/python-mode'
"Plugin 'mbbill/undotree' "Plugin 'mbbill/undotree'
"Plugin 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
"Plugin 'sjl/gundo.vim' "Plugin 'sjl/gundo.vim'
"Plugin 'terryma/vim-expand-region' "Plugin 'terryma/vim-expand-region'
"Plugin 'terryma/vim-multiple-cursors' "Plugin 'terryma/vim-multiple-cursors'
"Plugin 'wellle/targets.vim' "Plugin 'wellle/targets.vim'
"Plugin 'wincent/Command-T' "Plugin 'wincent/Command-T'
call vundle#end() call plug#end()
filetype plugin indent on filetype plugin indent on
" === General options ===
set t_Co=256
" == formatting == " == formatting ==
set tabstop=4 set tabstop=4
set smarttab set smarttab
@@ -77,7 +70,7 @@ set matchtime=5
set mouse=a set mouse=a
set mousehide set mousehide
set noerrorbells set noerrorbells
set showmode set noshowmode
set numberwidth=2 set numberwidth=2
set relativenumber set relativenumber
set shortmess=rti set shortmess=rti
@@ -135,7 +128,7 @@ set hidden
" == editing == " == editing ==
set backspace=indent,eol,start set backspace=indent,eol,start
set esckeys " set esckeys
set matchpairs=(:),{:},[:],<:> set matchpairs=(:),{:},[:],<:>
set notimeout set notimeout
set ttimeout set ttimeout
@@ -211,7 +204,7 @@ let g:solarized_termtrans=1
let g:solarized_contrast="normal" let g:solarized_contrast="normal"
let g:solarized_visibility="normal" let g:solarized_visibility="normal"
syntax enable syntax enable
" colorscheme monokai colorscheme monokai
" == tagbar == " == tagbar ==
nnoremap <F10> :TagbarToggle<CR> nnoremap <F10> :TagbarToggle<CR>
@@ -228,17 +221,21 @@ let g:tagbar_show_linenumbers = 0
let g:tagbar_foldlevel = 99 " unfold all let g:tagbar_foldlevel = 99 " unfold all
" == airline == " == airline ==
let g:airline_right_sep = '' "let g:airline_right_sep = ''
let g:airline_left_sep = '' "let g:airline_left_sep = ''
let g:airline#extensions#disable_rtp_load = 1 "let g:airline#extensions#disable_rtp_load = 1
let g:airline_extensions = ['whitespace'] "let g:airline_extensions = ['whitespace']
let g:airline_theme='powerlineish' "let g:airline_theme='powerlineish'
let g:airline_powerline_fonts = 1 "let g:airline_powerline_fonts = 1
let g:airline_section_x = airline#section#create(['%{tagbar#currenttag("%s", "", "f")}','' , ' %{PencilMode()}', ' [', 'filetype', ']']) "let g:airline_section_x = airline#section#create(['%{tagbar#currenttag("%s", "", "f")}','' , ' %{PencilMode()}', ' [', 'filetype', ']'])
let g:pencil#mode_indicators = {'hard': 'H', 'auto': 'A', 'soft': 'S', 'off': '',} "let g:pencil#mode_indicators = {'hard': 'H', 'auto': 'A', 'soft': 'S', 'off': '',}
let g:airline#extensions#whitespace#enabled = 1 "let g:airline#extensions#whitespace#enabled = 1
let g:airline#extensions#whitespace#symbol = '' "let g:airline#extensions#whitespace#symbol = ''
let g:airline#extensions#whitespace#checks = ['trailing'] "let g:airline#extensions#whitespace#checks = ['trailing']
let g:lightline = {
\ 'colorscheme': 'powerline',
\ }
" == pencil == " == pencil ==
let g:pencil#textwidth = 80 let g:pencil#textwidth = 80

View File

@@ -1,5 +1,5 @@
### TRANSLATIONS ### TRANSLATIONS
alias vim="vim -u $VIMRC" alias vim="nvim"
alias urxvt="urxvt256c" alias urxvt="urxvt256c"