Removed obsolete vim config
This commit is contained in:
parent
9e895860aa
commit
5660486915
3 changed files with 0 additions and 144 deletions
|
@ -1,3 +0,0 @@
|
|||
" max line length column
|
||||
set colorcolumn=100
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
ln -svrf vimrc ~/.vimrc
|
||||
ln -svrf ftplugin ~/.vim/ftplugin
|
||||
|
136
vim/vimrc
136
vim/vimrc
|
@ -1,136 +0,0 @@
|
|||
" vimrc.local {{{
|
||||
if filereadable("~/.vimrc.local")
|
||||
source ~/.vimrc.local
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" vim-plug installer {{{
|
||||
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" vim-plug plugins {{{
|
||||
call plug#begin('~/.vim/vim-plug')
|
||||
|
||||
" deoplete
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
|
||||
" LanguageClient-neovim
|
||||
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh', }
|
||||
|
||||
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
|
||||
|
||||
Plug 'rhysd/vim-clang-format'
|
||||
Plug 'derekwyatt/vim-fswitch'
|
||||
Plug 'altercation/vim-colors-solarized'
|
||||
Plug 'craigemery/vim-autotag'
|
||||
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'tpope/vim-obsession'
|
||||
Plug 'dhruvasagar/vim-prosession'
|
||||
Plug 'linuor/ucmake.vim'
|
||||
Plug 'skywind3000/asyncrun.vim'
|
||||
Plug 'markonm/traces.vim'
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
|
||||
Plug 'mandlm/vim-split-open'
|
||||
|
||||
call plug#end()
|
||||
" }}}
|
||||
|
||||
packadd! termdebug
|
||||
|
||||
" tabwidth
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
|
||||
" dark theme
|
||||
set background=dark
|
||||
|
||||
" line numbers
|
||||
set number
|
||||
|
||||
" faster saving
|
||||
set nofsync
|
||||
|
||||
" autoread/checktime timer {{{
|
||||
set autoread
|
||||
function CheckTime(timer)
|
||||
checktime
|
||||
endfunction
|
||||
let timerChecktime = timer_start(4000, 'CheckTime', {'repeat': -1})
|
||||
" }}}
|
||||
|
||||
" ctags config
|
||||
set tags=./tags;
|
||||
nnoremap <F2> <C-]>
|
||||
|
||||
" clang-format
|
||||
let g:clang_format#auto_format = 1
|
||||
let g:clang_format#enable_fallback_style = 0
|
||||
|
||||
" autotag
|
||||
let g:autotagmaxTagsFileSize = 1024 * 1024 * 128
|
||||
|
||||
" deoplete
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
autocmd CompleteDone * silent! pclose!
|
||||
call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy'])
|
||||
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
||||
" LanguageClient-neovim
|
||||
set hidden
|
||||
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
||||
nnoremap <F12> :call LanguageClient#textDocument_definition()<CR>
|
||||
let g:LanguageClient_serverCommands = {
|
||||
\ 'python': ['pyls'],
|
||||
\ 'cpp': ['/usr/lib/llvm/8/bin/clangd'],
|
||||
\ }
|
||||
|
||||
" lightline config
|
||||
let g:lightline = { 'colorscheme': 'solarized' }
|
||||
|
||||
" vim-fswitch
|
||||
nmap <ESC>o :FSHere<CR>
|
||||
|
||||
" vim-colors-solarized
|
||||
colorscheme solarized
|
||||
|
||||
" fzf.vim
|
||||
nmap <C-P> :Files<CR>
|
||||
nmap <C-F> :Rg \b<C-R><C-W>\b<CR>
|
||||
nmap <ESC><C-P> :Tags<CR>
|
||||
|
||||
" terminal colors
|
||||
hi Terminal ctermfg=fg ctermbg=NONE guifg=fg guibg=NONE guisp=NONE cterm=NONE gui=NONE
|
||||
|
||||
" incremental searching
|
||||
set incsearch
|
||||
set hlsearch
|
||||
|
||||
" asynrun.vim
|
||||
let g:asyncrun_open = 16
|
||||
|
||||
" prosession
|
||||
let g:prosession_tmux_title = 1
|
||||
let g:prosession_per_branch = 1
|
||||
|
||||
" modeline
|
||||
set modeline
|
||||
set modelines=5
|
||||
|
||||
" vimrc editing
|
||||
nnoremap <leader>ev :split $MYVIMRC<cr>
|
||||
nnoremap <leader>sv :source $MYVIMRC<cr>:echo "Reloaded vimrc"<cr>
|
||||
|
||||
" vim: foldmethod=marker foldmarker={{{,}}}
|
Loading…
Reference in a new issue