aboutsummaryrefslogtreecommitdiff
path: root/stow/vim
diff options
context:
space:
mode:
Diffstat (limited to 'stow/vim')
l---------stow/vim/.vim/rc/.vim1
l---------stow/vim/.vim/rc/.vimrc1
-rw-r--r--stow/vim/.vim/rc/airline.vim10
-rw-r--r--stow/vim/.vim/rc/coc.vim3
-rw-r--r--stow/vim/.vim/rc/color.vim37
-rw-r--r--stow/vim/.vim/rc/deoplete.vim14
-rw-r--r--stow/vim/.vim/rc/filetypes.vim8
-rw-r--r--stow/vim/.vim/rc/fzf.vim3
-rw-r--r--stow/vim/.vim/rc/git.vim7
-rw-r--r--stow/vim/.vim/rc/goyo.vim15
-rw-r--r--stow/vim/.vim/rc/limelight.vim3
-rw-r--r--stow/vim/.vim/rc/maps.vim73
-rw-r--r--stow/vim/.vim/rc/omnisharp.vim5
-rw-r--r--stow/vim/.vim/rc/settings.vim32
-rw-r--r--stow/vim/.vim/rc/syntastic.vim12
-rw-r--r--stow/vim/.vim/rc/tmux.vim8
-rw-r--r--stow/vim/.vim/rc/vimwiki.vim9
-rw-r--r--stow/vim/.vim/rc/youCompleteMe.vim4
-rw-r--r--stow/vim/.vimrc280
19 files changed, 263 insertions, 262 deletions
diff --git a/stow/vim/.vim/rc/.vim b/stow/vim/.vim/rc/.vim
new file mode 120000
index 0000000..b1c93a2
--- /dev/null
+++ b/stow/vim/.vim/rc/.vim
@@ -0,0 +1 @@
+../../repos/configs/stow/vim/.vim \ No newline at end of file
diff --git a/stow/vim/.vim/rc/.vimrc b/stow/vim/.vim/rc/.vimrc
new file mode 120000
index 0000000..407c1b7
--- /dev/null
+++ b/stow/vim/.vim/rc/.vimrc
@@ -0,0 +1 @@
+../../repos/configs/stow/vim/.vimrc \ No newline at end of file
diff --git a/stow/vim/.vim/rc/airline.vim b/stow/vim/.vim/rc/airline.vim
new file mode 100644
index 0000000..ddddd7d
--- /dev/null
+++ b/stow/vim/.vim/rc/airline.vim
@@ -0,0 +1,10 @@
+Plug 'vim-airline/vim-airline'
+
+" For vim-airline
+if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+endif
+let g:airline_left_sep=''
+let g:airline_right_sep=''
+let g:airline_symbols.linenr = '🔃'
+let g:airline_symbols.maxlinenr = '↩'
diff --git a/stow/vim/.vim/rc/coc.vim b/stow/vim/.vim/rc/coc.vim
new file mode 100644
index 0000000..3689cd2
--- /dev/null
+++ b/stow/vim/.vim/rc/coc.vim
@@ -0,0 +1,3 @@
+Plug 'neoclide/coc.nvim', {'branch': 'release'}
+
+inoremap <silent><expr> <c-space> coc#refresh()
diff --git a/stow/vim/.vim/rc/color.vim b/stow/vim/.vim/rc/color.vim
new file mode 100644
index 0000000..ea8bf0e
--- /dev/null
+++ b/stow/vim/.vim/rc/color.vim
@@ -0,0 +1,37 @@
+""" Color
+
+" Colorscheme
+colorscheme nord
+
+" Syntax
+syntax enable
+syntax on
+
+" Line number color
+highlight LineNr ctermfg=12
+highlight LineNr cterm=NONE
+highlight CursorLineNr ctermfg=5
+highlight CursorLineNr cterm=underline
+
+" Completion color
+highlight Pmenu ctermbg=blue ctermfg=black
+highlight PmenuSel ctermbg=darkblue ctermfg=white
+
+" Panel border color
+"highlight VertSplit ctermbg=black ctermfg=darkblue
+
+" Symbol pairs match color
+highlight MatchParen ctermbg=cyan ctermfg=black
+
+" Errors colors
+highlight Error ctermbg=red ctermfg=black
+highlight SpellBad ctermbg=red ctermfg=black
+
+" Comments colors
+highlight Comment ctermfg=green
+
+" Line size marking
+highlight ColorColumn ctermbg=darkblue ctermfg=black
+"Redjail Bomb (thx Damian Conway!)
+"highlight ColorColumn ctermbg=red ctermfg=blue
+"exec 'set colorcolumn='.join(range(2,80,3), ',')
diff --git a/stow/vim/.vim/rc/deoplete.vim b/stow/vim/.vim/rc/deoplete.vim
new file mode 100644
index 0000000..08fbe8b
--- /dev/null
+++ b/stow/vim/.vim/rc/deoplete.vim
@@ -0,0 +1,14 @@
+Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' }
+Plug 'Shougo/deoplete-clangx'
+
+let g:deoplete#enable_at_startup = 1
+
+call deoplete#custom#option({
+\ 'auto_complete': v:true,
+\ 'auto_complete_delay': 0,
+\ 'smart_case': v:true,
+\ })
+
+call deoplete#custom#option('sources', {
+\ '_': ['ale'],
+\})
diff --git a/stow/vim/.vim/rc/filetypes.vim b/stow/vim/.vim/rc/filetypes.vim
new file mode 100644
index 0000000..ea2d894
--- /dev/null
+++ b/stow/vim/.vim/rc/filetypes.vim
@@ -0,0 +1,8 @@
+" Filetypes
+
+filetype indent plugin on
+au BufRead,BufNewFile *.pu,*.puml,*.pumlc set filetype=plantuml
+au BufRead,BufNewFile *.g set filetype=antlr3
+au BufRead,BufNewFile *.g4 set filetype=antlr4
+au BufRead,BufNewFile *.sent set filetype=sent
+let g:tex_flavor = "latex"
diff --git a/stow/vim/.vim/rc/fzf.vim b/stow/vim/.vim/rc/fzf.vim
new file mode 100644
index 0000000..7a6ead0
--- /dev/null
+++ b/stow/vim/.vim/rc/fzf.vim
@@ -0,0 +1,3 @@
+Plug 'junegunn/fzf.vim'
+
+nnoremap <C-p> :Files<CR>
diff --git a/stow/vim/.vim/rc/git.vim b/stow/vim/.vim/rc/git.vim
new file mode 100644
index 0000000..8c6eac4
--- /dev/null
+++ b/stow/vim/.vim/rc/git.vim
@@ -0,0 +1,7 @@
+""" git
+
+nnoremap <leader>gs :!git status<CR>
+"nnoremap <leader>gpull :!git pull<CR>
+nnoremap <leader>ga :!git add %<CR>
+nnoremap <leader>gp :!git push<CR>
+nnoremap <leader>gc :!git commit -m "
diff --git a/stow/vim/.vim/rc/goyo.vim b/stow/vim/.vim/rc/goyo.vim
new file mode 100644
index 0000000..bbe3090
--- /dev/null
+++ b/stow/vim/.vim/rc/goyo.vim
@@ -0,0 +1,15 @@
+Plug 'junegunn/goyo.vim'
+
+function! s:goyo_enter()
+ silent !tmux set status off
+endfunction
+
+function! s:goyo_leave()
+ silent !tmux set status on
+endfunction
+
+autocmd! User GoyoEnter nested call <SID>goyo_enter()
+autocmd! User GoyoLeave nested call <SID>goyo_leave()
+
+let g:goyo_linenr = 1
+nnoremap <leader>G :Goyo \| set linebreak<CR>:e<CR>
diff --git a/stow/vim/.vim/rc/limelight.vim b/stow/vim/.vim/rc/limelight.vim
new file mode 100644
index 0000000..481cc56
--- /dev/null
+++ b/stow/vim/.vim/rc/limelight.vim
@@ -0,0 +1,3 @@
+Plug 'junegunn/limelight.vim'
+
+let g:limelight_conceal_ctermfg = 7
diff --git a/stow/vim/.vim/rc/maps.vim b/stow/vim/.vim/rc/maps.vim
new file mode 100644
index 0000000..cd83cf2
--- /dev/null
+++ b/stow/vim/.vim/rc/maps.vim
@@ -0,0 +1,73 @@
+""" Maps """
+
+nnoremap Y y$
+nnoremap <leader>x :w<CR>:! ./%
+inoremap <leader>w <Esc>:w<Enter>
+inoremap <leader><leader> <Esc>/<++><Enter>cf>
+
+" Showing tabs and trailing spaces
+nnoremap <leader>l :set list!<CR>
+
+" Clipboard
+nnoremap <leader>p "+p
+nnoremap <leader>y "+yy
+vnoremap <leader>y "+y
+nnoremap <leader>d "+dd
+vnoremap <leader>d "+d
+
+nnoremap <leader>vrc :80vsp ~/.vimrc<CR>
+nnoremap <leader>S :!tmux split-window -l '40\%'<CR><CR>
+
+" Split navigation
+map <C-h> <C-w>h
+map <C-j> <C-w>j
+map <C-k> <C-w>k
+map <C-l> <C-w>l
+map <A-h> <C-w><
+map <A-j> <C-w>+
+map <A-k> <C-w>-
+map <A-l> <C-w>>
+map <A-H> <C-w>10<
+map <A-J> <C-w>5+
+map <A-K> <C-w>5-
+map <A-L> <C-w>10>
+
+" Opening netrw
+nnoremap <leader>f :40Vexplore<CR>
+nnoremap <leader>F :40Lexplore<CR>
+
+" Moving -here-
+nnoremap <leader>h :cd %:h<CR>
+
+" Spelling
+nnoremap <leader>ss :set spell!<CR>
+nnoremap <leader>sl :set spelllang=
+nnoremap <leader>sL :setlocal spelllang=
+
+" Open file under cursor
+nnoremap go :!xdg-open <cfile><CR>
+
+nnoremap <C-n> :tabnew<CR>
+"nnoremap <Tab> gt "Can't be set without also remapping <C-i>
+"nnoremap <S-Tab> gT
+
+" hlnext: Highlighting searches
+nnoremap <silent> n n:call HLNext(0.1)<CR>
+nnoremap <silent> N N:call HLNext(0.1)<CR>
+function! HLNext(blinktime)
+ set invcursorline
+ redraw
+ exec 'sleep'.float2nr(a:blinktime*400).'m'
+ set invcursorline
+ redraw
+endfunction
+
+" dragvisuals: dragging visual blocks
+vmap <expr> <LEFT> DVB_Drag('left')
+vmap <expr> <RIGHT> DVB_Drag('right')
+vmap <expr> <DOWN> DVB_Drag('down')
+vmap <expr> <UP> DVB_Drag('up')
+vmap <expr> D DVB_Duplicate()
+
+" Search text that does not exist
+nnoremap <leader>/ /grtfjx<CR>
diff --git a/stow/vim/.vim/rc/omnisharp.vim b/stow/vim/.vim/rc/omnisharp.vim
new file mode 100644
index 0000000..e7ddb09
--- /dev/null
+++ b/stow/vim/.vim/rc/omnisharp.vim
@@ -0,0 +1,5 @@
+Plug 'OmniSharp/omnisharp-vim'
+
+let g:OmniSharp_server_stdio = 1
+let g:OmniSharp_server_path = '/home/taamas/repos/omnisharp-roslyn/artifacts/scripts/OmniSharp.Stdio'
+let g:OmniSharp_selector_ui = 'fzf'
diff --git a/stow/vim/.vim/rc/settings.vim b/stow/vim/.vim/rc/settings.vim
new file mode 100644
index 0000000..e09753e
--- /dev/null
+++ b/stow/vim/.vim/rc/settings.vim
@@ -0,0 +1,32 @@
+let mapleader = ","
+
+" Basic settings
+set nocompatible
+set encoding=utf-8
+set number relativenumber
+set tabstop=4
+set shiftwidth=4
+set scrolloff=2
+set wildmode=longest,list,full
+set splitbelow
+set splitright
+set vb " No bell
+exec "set listchars=tab:\uBB·,trail:\uB7,nbsp:~"
+
+" Searching
+set ignorecase
+set wrapscan
+set incsearch
+set nohlsearch
+
+" Vertical split character
+set fillchars+=vert:â–ˆ
+
+"Clean trailing whitespaces on save
+autocmd BufWritePre * %s/\s\+$//e
+
+" Autoupdate ~/.Xresources
+autocmd BufWritePost ~/.Xresources !xrdb %
+
+" Generate ~/.mainpage/urls on ~/.config/qutebrowser save
+autocmd BufWritePost ~/.config/qutebrowser/config.py !grep -e \'.*\':\ \'.*{}.*\' "$HOME/.config/qutebrowser/config.py" | grep -v DEFAULT | sed 's/,//; s/^\ *//' > ~/.mainpage/urls
diff --git a/stow/vim/.vim/rc/syntastic.vim b/stow/vim/.vim/rc/syntastic.vim
new file mode 100644
index 0000000..087e662
--- /dev/null
+++ b/stow/vim/.vim/rc/syntastic.vim
@@ -0,0 +1,12 @@
+Plug 'vim-syntastic/syntastic'
+
+set statusline+=%#warningmsg#
+set statusline+=%{SyntasticStatuslineFlag()}
+set statusline+=%*
+let g:syntastic_cs_checkers = ['code_checker']
+let g:syntastic_enable_signs = 1
+let g:syntastic_aggregate_errors = 1
+let g:syntastic_always_populate_loc_list = 1
+let g:syntastic_auto_loc_list = 2
+let g:syntastic_check_on_open = 1
+let g:syntastic_check_on_wq = 0
diff --git a/stow/vim/.vim/rc/tmux.vim b/stow/vim/.vim/rc/tmux.vim
new file mode 100644
index 0000000..25e700d
--- /dev/null
+++ b/stow/vim/.vim/rc/tmux.vim
@@ -0,0 +1,8 @@
+" For cursor shape with tmux
+if exists('$TMUX')
+ let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
+ let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
+else
+ let &t_SI = "\e[5 q"
+ let &t_EI = "\e[2 q"
+endif
diff --git a/stow/vim/.vim/rc/vimwiki.vim b/stow/vim/.vim/rc/vimwiki.vim
new file mode 100644
index 0000000..53432b4
--- /dev/null
+++ b/stow/vim/.vim/rc/vimwiki.vim
@@ -0,0 +1,9 @@
+Plug 'vimwiki/vimwiki'
+
+" For vimwiki
+" filetype plugin on
+let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
+let g:vimwiki_list = [{'path': '~/docs/vimwiki/', 'syntax': 'markdown', 'ext': '.md'},
+ \ {'path': '~/docs/notas/', 'syntax': 'markdown', 'ext': '.md'},
+ \ {'path': '~/games/dungeonesYDragones/tarkba/vimwiki/', 'syntax': 'markdown', 'ext': '.md'},
+ \ {'path': '~/games/dungeonesYDragones/creaciones/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
diff --git a/stow/vim/.vim/rc/youCompleteMe.vim b/stow/vim/.vim/rc/youCompleteMe.vim
new file mode 100644
index 0000000..7fee33d
--- /dev/null
+++ b/stow/vim/.vim/rc/youCompleteMe.vim
@@ -0,0 +1,4 @@
+Plug 'Valloric/YouCompleteMe'
+
+let g:ycm_auto_trigger = 1
+let g:ycm_autoclose_preview_window_after_insertion = 1
diff --git a/stow/vim/.vimrc b/stow/vim/.vimrc
index 9520648..1b3d60a 100644
--- a/stow/vim/.vimrc
+++ b/stow/vim/.vimrc
@@ -5,276 +5,32 @@
" \_/ |_|_| |_| |_|_| \___|
"
-let mapleader = ","
+source ~/.vim/rc/settings.vim
+source ~/.vim/rc/filetypes.vim
+source ~/.vim/rc/maps.vim
+source ~/.vim/rc/color.vim
+source ~/.vim/rc/tmux.vim
+source ~/.vim/rc/git.vim
call plug#begin('~/.vim/plugged') "Update with PlugInstall
Plug 'PotatoesMaster/i3-vim-syntax'
-Plug 'junegunn/goyo.vim'
-Plug 'junegunn/fzf.vim'
-Plug 'junegunn/limelight.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
-Plug 'vimwiki/vimwiki'
-Plug 'vim-airline/vim-airline'
Plug 'psliwka/vim-smoothie'
-"Plug 'vim-syntastic/syntastic'
Plug 'dense-analysis/ale'
-"Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins' }
-"Plug 'Shougo/deoplete-clangx'
-"Plug 'neoclide/coc.nvim', {'branch': 'release'}
-Plug 'Valloric/YouCompleteMe'
-"Plug 'OmniSharp/omnisharp-vim'
Plug 'dylanaraps/wal.vim'
-"Plug 'ThePrimeagen/vim-be-good'
+source ~/.vim/rc/goyo.vim
+source ~/.vim/rc/fzf.vim
+source ~/.vim/rc/vimwiki.vim
+source ~/.vim/rc/airline.vim
+source ~/.vim/rc/youCompleteMe.vim
call plug#end()
-" Basic settings
-set nocompatible
-set encoding=utf-8
-set number relativenumber
-set tabstop=4
-set shiftwidth=4
-set scrolloff=2
-set wildmode=longest,list,full
-set splitbelow
-set splitright
-set vb " No bell
-" Searching
-set ignorecase
-set wrapscan
-set incsearch
-set nohlsearch
-
-" Filetypes
-filetype indent plugin on
-au BufRead,BufNewFile *.pu,*.puml,*.pumlc set filetype=plantuml
-au BufRead,BufNewFile *.g set filetype=antlr3
-au BufRead,BufNewFile *.g4 set filetype=antlr4
-au BufRead,BufNewFile *.sent set filetype=sent
-let g:tex_flavor = "latex"
-
-" hlnext: Highlighting searches
-nnoremap <silent> n n:call HLNext(0.1)<CR>
-nnoremap <silent> N N:call HLNext(0.1)<CR>
-function! HLNext(blinktime)
- set invcursorline
- redraw
- exec 'sleep'.float2nr(a:blinktime*1000).'m'
- set invcursorline
- redraw
-endfunction
-
-" dragvisuals: dragging visual blocks
-vmap <expr> <LEFT> DVB_Drag('left')
-vmap <expr> <RIGHT> DVB_Drag('right')
-vmap <expr> <DOWN> DVB_Drag('down')
-vmap <expr> <UP> DVB_Drag('up')
-vmap <expr> D DVB_Duplicate()
-
-" Showing tabs
-"exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
-exec "set listchars=tab:\uBB·,trail:\uB7,nbsp:~"
-nnoremap <leader>l :set list!<CR>
-
-" For deoplete
-
-"let g:deoplete#enable_at_startup = 1
-"
-"call deoplete#custom#option({
-"\ 'auto_complete': v:true,
-"\ 'auto_complete_delay': 0,
-"\ 'smart_case': v:true,
-"\ })
-"
-"call deoplete#custom#option('sources', {
-"\ '_': ['ale'],
-"\})
-
-" For CoC
-"inoremap <silent><expr> <c-space> coc#refresh()
-
-" For YouCompleteMe
-let g:ycm_auto_trigger = 1
-let g:ycm_autoclose_preview_window_after_insertion = 1
-
-" For syntastic
-"set statusline+=%#warningmsg#
-"set statusline+=%{SyntasticStatuslineFlag()}
-"set statusline+=%*
-"let g:syntastic_cs_checkers = ['code_checker']
-"let g:syntastic_enable_signs = 1
-"let g:syntastic_aggregate_errors = 1
-"let g:syntastic_always_populate_loc_list = 1
-"let g:syntastic_auto_loc_list = 2
-"let g:syntastic_check_on_open = 1
-"let g:syntastic_check_on_wq = 0
-
-" For omnisharp
-"let g:OmniSharp_server_stdio = 1
-"let g:OmniSharp_server_path = '/home/taamas/repos/omnisharp-roslyn/artifacts/scripts/OmniSharp.Stdio'
-"let g:OmniSharp_selector_ui = 'fzf'
-
-" For cursor shape with tmux
-if exists('$TMUX')
- let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
- let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
-else
- let &t_SI = "\e[5 q"
- let &t_EI = "\e[2 q"
-endif
-
-"if empty($TMUX)
-" let &t_SI = "\<Esc>]50;CursorShape=1\x7" " Vertical bar in insert mode
-" let &t_EI = "\<Esc>]50;CursorShape=0\x7" " Block in normal mode
-"else
-" let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
-" let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
-"endif
-
-"if &term =~ '^screen'
-" " tmux will send xterm-style keys when its xterm-keys option is on
-" execute "set <xUp>=\e[1;*A"
-" execute "set <xDown>=\e[1;*B"
-" execute "set <xRight>=\e[1;*C"
-" execute "set <xLeft>=\e[1;*D"
-"endif
-
-" For vim-airline
-if !exists('g:airline_symbols')
- let g:airline_symbols = {}
-endif
-let g:airline_left_sep=''
-let g:airline_right_sep=''
-let g:airline_symbols.linenr = '🔃'
-let g:airline_symbols.maxlinenr = '↩'
-
-" For vimwiki
-" filetype plugin on
-let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
-let g:vimwiki_list = [{'path': '~/docs/vimwiki/', 'syntax': 'markdown', 'ext': '.md'},
- \ {'path': '~/docs/notas/', 'syntax': 'markdown', 'ext': '.md'},
- \ {'path': '~/games/dungeonesYDragones/tarkba/vimwiki/', 'syntax': 'markdown', 'ext': '.md'},
- \ {'path': '~/games/dungeonesYDragones/creaciones/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
-
-" Vertical split character
-set fillchars+=vert:â–ˆ
-
-" Shortcuts for split navigation
-map <C-h> <C-w>h
-map <C-j> <C-w>j
-map <C-k> <C-w>k
-map <C-l> <C-w>l
-map <A-h> <C-w><
-map <A-j> <C-w>+
-map <A-k> <C-w>-
-map <A-l> <C-w>>
-map <A-H> <C-w>10<
-map <A-J> <C-w>5+
-map <A-K> <C-w>5-
-map <A-L> <C-w>10>
-
-" Shortcuts for opening netrw
-nnoremap <leader>f :40Vexplore<CR>
-nnoremap <leader>F :40Lexplore<CR>
-
-" FZF
-nnoremap <C-p> :Files<CR>
-
-" Moving -here-
-nnoremap <leader>h :cd %:h<CR>
-
-nnoremap <C-n> :tabnew<CR>
-"nnoremap <Tab> gt "Can't be set without also remapping <C-i>
-"nnoremap <S-Tab> gT
-
-nnoremap <leader>vrc :80vsp ~/.vimrc<CR>
-nnoremap <leader>S :!tmux split-window -l '40\%'<CR><CR>
-
-nnoremap <leader>/ /grtfjx<CR>
-
-""" Color
-colorscheme nord
-
-" Syntax
-syntax enable
-syntax on
-
-" Line number color
-highlight LineNr ctermfg=12
-highlight LineNr cterm=NONE
-highlight CursorLineNr ctermfg=5
-highlight CursorLineNr cterm=underline
-
-" Completion color
-highlight Pmenu ctermbg=blue ctermfg=black
-highlight PmenuSel ctermbg=darkblue ctermfg=white
-
-" Panel border color
-"highlight VertSplit ctermbg=black ctermfg=darkblue
-
-" Symbol pairs match color
-highlight MatchParen ctermbg=cyan ctermfg=black
-
-" Errors colors
-highlight Error ctermbg=red ctermfg=black
-highlight SpellBad ctermbg=red ctermfg=black
-
-" Comments colors
-highlight Comment ctermfg=green
-
-" Line size marking
-highlight ColorColumn ctermbg=darkblue ctermfg=black
-"Redjail Bomb (thx Damian Conway!)
-"highlight ColorColumn ctermbg=red ctermfg=blue
-"exec 'set colorcolumn='.join(range(2,80,3), ',')
-
-"Clean trailing whitespaces on save
-autocmd BufWritePre * %s/\s\+$//e
-
-" Autoupdate ~/.Xresources
-autocmd BufWritePost ~/.Xresources !xrdb %
-
-" Generate ~/.mainpage/urls on ~/.config/qutebrowser save
-autocmd BufWritePost ~/.config/qutebrowser/config.py !grep -e \'.*\':\ \'.*{}.*\' "$HOME/.config/qutebrowser/config.py" | grep -v DEFAULT | sed 's/,//; s/^\ *//' > ~/.mainpage/urls
-
-""" Remaps """
-
-nnoremap Y y$
-nnoremap <leader>ss :set spell!<CR>
-nnoremap <leader>sl :set spelllang=
-nnoremap <leader>sL :setlocal spelllang=
-nnoremap <leader>e :Errors<Enter>
-nnoremap <leader>x :w<CR>:! ./%
-inoremap <leader>w <Esc>:w<Enter>
-inoremap <leader><leader> <Esc>/<++><Enter>cf>
-nnoremap <leader>p "+p
-nnoremap <leader>y "+yy
-vnoremap <leader>y "+y
-nnoremap <leader>d "+dd
-vnoremap <leader>d "+d
-
-" For Goyo
-function! s:goyo_enter()
- silent !tmux set status off
-endfunction
-
-function! s:goyo_leave()
- silent !tmux set status on
-endfunction
-
-autocmd! User GoyoEnter nested call <SID>goyo_enter()
-autocmd! User GoyoLeave nested call <SID>goyo_leave()
-
-let g:goyo_linenr = 1
-nnoremap <leader>G :Goyo \| set linebreak<CR>:e<CR>
-
-" For LimeLight
-let g:limelight_conceal_ctermfg = 7
-
-"" git
-nnoremap <leader>gs :!git status<CR>
-"nnoremap <leader>gpull :!git pull<CR>
-nnoremap <leader>ga :!git add %<CR>
-nnoremap <leader>gp :!git push<CR>
-nnoremap <leader>gc :!git commit -m "
+" Unused plugins
+"Plug 'ThePrimeagen/vim-be-good'
+"source ~/.vim/rc/limelight.vim
+"source ~/.vim/rc/omnisharp.vim
+"source ~/.vim/rc/syntastic.vim
+"source ~/.vim/rc/deoplete.vim
+"source ~/.vim/rc/coc.vim