+++ /dev/null
-[submodule "tpope/start/vim-commentary"]
- path = pack/tpope/start/vim-commentary
- url = https://github.com/tpope/vim-commentary.git
-[submodule "tpope/start/vim-repeat"]
- path = pack/tpope/start/vim-repeat
- url = https://github.com/tpope/vim-repeat.git
-[submodule "tpope/start/vim-surround"]
- path = pack/tpope/start/vim-surround
- url = https://github.com/tpope/vim-surround.git
-[submodule "tpope/start/vim-unimpaired"]
- path = pack/tpope/start/vim-unimpaired
- url = https://github.com/tpope/vim-unimpaired.git
-[submodule "tpope/start/vim-fugitive"]
- path = pack/tpope/start/vim-fugitive
- url = https://github.com/tpope/vim-fugitive.git
-[submodule "pack/snipmate/opt/vim-snipmate"]
- path = pack/snippets/opt/vim-snipmate
- url = https://github.com/garbas/vim-snipmate.git
-[submodule "pack/snipmate/opt/vim-addon-mw-utils"]
- path = pack/snippets/opt/vim-addon-mw-utils
- url = https://github.com/MarcWeber/vim-addon-mw-utils.git
-[submodule "pack/snipmate/opt/tlib_vim"]
- path = pack/snippets/opt/tlib_vim
- url = https://github.com/tomtom/tlib_vim.git
-[submodule "pack/snipmate/opt/vim-snippets"]
- path = pack/snippets/opt/vim-snippets
- url = https://github.com/honza/vim-snippets.git
-[submodule "pack/github/opt/vim-airline"]
- path = pack/github/opt/vim-airline
- url = https://github.com/vim-airline/vim-airline.git
-[submodule "pack/github/opt/tagbar"]
- path = pack/github/opt/tagbar
- url = https://github.com/majutsushi/tagbar.git
-[submodule "pack/github/opt/errormarker.vim"]
- path = pack/async/opt/errormarker.vim
- url = https://github.com/mh21/errormarker.vim.git
-[submodule "pack/github/opt/asyncrun.vim"]
- path = pack/async/opt/asyncrun.vim
- url = https://github.com/skywind3000/asyncrun.vim.git
-[submodule "pack/github/opt/incsearch.vim"]
- path = pack/github/opt/incsearch.vim
- url = https://github.com/haya14busa/incsearch.vim.git
-[submodule "pack/github/opt/ale"]
- path = pack/async/opt/ale
- url = https://github.com/w0rp/ale.git
-[submodule "pack/markdown/opt/vim-javascript"]
- path = pack/markdown/opt/vim-javascript
- url = https://github.com/pangloss/vim-javascript
-[submodule "pack/markdown/opt/vim-pandoc"]
- path = pack/markdown/opt/vim-pandoc
- url = https://github.com/vim-pandoc/vim-pandoc.git
-[submodule "pack/markdown/opt/vim-pandoc-syntax"]
- path = pack/markdown/opt/vim-pandoc-syntax
- url = https://github.com/vim-pandoc/vim-pandoc-syntax.git
-[submodule "pack/async/opt/completor.vim"]
- path = pack/async/opt/completor.vim
- url = https://github.com/maralla/completor.vim.git
-[submodule "pack/async/opt/validator.vim"]
- path = pack/async/opt/validator.vim
- url = https://github.com/maralla/validator.vim.git
-[submodule "pack/syntax/opt/vim-syntax-extra"]
- path = pack/markdown/opt/vim-syntax-extra
- url = https://github.com/justinmk/vim-syntax-extra.git
-[submodule "pack/github/opt/supertab"]
- path = pack/github/opt/supertab
- url = https://github.com/ervandew/supertab.git
-[submodule "pack/github/opt/pick.vim"]
- path = pack/github/opt/pick.vim
- url = https://github.com/calleerlandsson/pick.vim.git
-[submodule "pack/github/opt/Tortoise-Typing"]
- path = pack/github/opt/Tortoise-Typing
- url = https://github.com/thanthese/Tortoise-Typing.git
-[submodule "pack/async/opt/mesonic"]
- path = pack/async/opt/mesonic
- url = https://github.com/igankevich/mesonic.git
-[submodule "pack/shougo/nvim-yarp"]
- path = pack/shougo/opt/nvim-yarp
- url = https://github.com/roxma/nvim-yarp.git
-[submodule "pack/shougo/start/deoplete.nvim"]
- path = pack/shougo/opt/deoplete.nvim
- url = https://github.com/Shougo/deoplete.nvim.git
-[submodule "pack/shougo/start/vim-hug-neovim-rpc"]
- path = pack/shougo/opt/vim-hug-neovim-rpc
- url = https://github.com/roxma/vim-hug-neovim-rpc.git
-[submodule "pack/async/start/gen_tags.vim"]
- path = pack/async/opt/gen_tags.vim
- url = https://github.com/jsfaint/gen_tags.vim.git
-[submodule "pack/markdown/start/open-browser.vim"]
- path = pack/markdown/start/open-browser.vim
- url = https://github.com/tyru/open-browser.vim.git
-[submodule "pack/markdown/start/vim-markdown"]
- path = pack/markdown/start/vim-markdown
- url = https://github.com/plasticboy/vim-markdown.git
-[submodule "pack/markdown/start/previm"]
- path = pack/markdown/start/previm
- url = https://github.com/previm/previm.git
-[submodule "pack/async/start/LeaderF"]
- path = pack/async/start/LeaderF
- url = https://github.com/Yggdroot/LeaderF.git
-[submodule "pack/tpope/start/vim-vinegar"]
- path = pack/tpope/start/vim-vinegar
- url = https://github.com/manasthakur/vim-vinegar.git
-[submodule "pack/github/start/vifm.vim"]
- path = pack/github/start/vifm.vim
- url = https://github.com/vifm/vifm.vim.git
syntax on
" indentation
-set expandtab
-set shiftwidth=2
set softtabstop=2
+set shiftwidth=2
+set tabstop=4
+set expandtab
set autoindent
set copyindent
set smarttab
" Normal Mode
nnoremap n nzzzv
nnoremap N Nzzzv
+nnoremap g= gg=Gg``
nnoremap <silent><leader>+ :exe "resize " . (winheight(0) * 3/2)<cr>
nnoremap <silent><leader>- :exe "resize " . (winheight(0) * 2/3)<cr>
nnoremap <silent><leader>hs :noh<cr>
" Autocommands
if has('autocmd')
augroup filetypes
- autocmd!
- autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown
- autocmd BufNewfile,BufRead *.gradle set filetype=groovy
- autocmd BufNewfile,BufRead *.json set filetype=json
- autocmd BufNewfile,BufRead *.yml set filetype=yaml
+ autocmd!
+ autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown
+ autocmd BufNewfile,BufRead *.gradle set filetype=groovy
+ autocmd BufNewfile,BufRead *.json set filetype=json
+ autocmd BufNewfile,BufRead *.yml set filetype=yaml
augroup end
augroup formats
- autocmd!
- autocmd FileType c setlocal expandtab softtabstop=2 shiftwidth=2
- autocmd FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2
- autocmd FileType make setlocal noexpandtab tabstop=8 shiftwidth=8
- autocmd FileType python setlocal expandtab softtabstop=4 shiftwidth=4
- \ formatoptions+=croq colorcolumn=79
- \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
- autocmd FileType netrw setlocal bufhidden=wipe
+ autocmd!
+ autocmd FileType c setlocal expandtab softtabstop=2 shiftwidth=2
+ autocmd FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2
+ autocmd FileType make setlocal noexpandtab tabstop=8 shiftwidth=8
+ autocmd FileType python setlocal expandtab softtabstop=4 shiftwidth=4
+ \ formatoptions+=croq colorcolumn=79
+ \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
+ autocmd FileType netrw setlocal bufhidden=wipe
augroup end
augroup saveall
- autocmd!
- autocmd FocusLost * silent! wa
+ autocmd!
+ autocmd FocusLost * silent! wa
augroup end
augroup numbers
- autocmd!
- autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
- autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
+ autocmd!
+ autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
+ autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup end
augroup vimrc
- autocmd!
- autocmd BufWritePost vimrc,gvimrc,vimrc.local source $MYVIMRC
+ autocmd!
+ autocmd BufWritePost vimrc,gvimrc,vimrc.local source $MYVIMRC
augroup end
augroup quickfix
- autocmd!
-" autocmd QuickFixCmdPost [^l]* nested cwindow
-" autocmd QuickFixCmdPost l* nested lwindow
- autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1)
+ autocmd!
+ " autocmd QuickFixCmdPost [^l]* nested cwindow
+ " autocmd QuickFixCmdPost l* nested lwindow
+ autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1)
augroup end
endif
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" minpac
+packadd minpac
+if exists('*minpac#init')
+call minpac#init()
+call minpac#add('k-takata/minpac', {'type': 'opt'})
+call minpac#add('tpope/vim-surround', {'type': 'opt'})
+call minpac#add('tpope/vim-commentary', {'type': 'opt'})
+call minpac#add('tpope/vim-fugitive', {'type': 'opt'})
+call minpac#add('tpope/vim-repeat', {'type': 'opt'})
+call minpac#add('tpope/vim-unimpaired', {'type': 'opt'})
+call minpac#add('manasthakur/vim-vinager', {'type': 'opt'})
+call minpac#add('igankevich/mesonic', {'type': 'opt'})
+call minpac#add('ervandew/supertab', {'type': 'opt'})
+call minpac#add('majutsushi/tagbar', {'type': 'opt'})
+call minpac#add('vim-airline/vim-airline', {'type': 'opt'})
+
+endif
+packloadall
+
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Tpope
+packadd! vim-surround
+packadd! vim-unimpaired
+
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Airline
packadd! vim-airline
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
+let g:airline#extensions#ale#enabled = 1
+let g:airline_section_error = airline#section#create_right(['%{g:asyncrun_status}'])
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" ALE
-packadd! ale
+"packadd! ale
let g:ale_enabled = 1
-let g:airline#extensions#ale#enabled = 1
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Tagbar
-packadd! tagbar
+"packadd! tagbar
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Gtags-Cscope
if executable('global')
-packadd! gen_tags.vim
-let GtagsCscope_Auto_Map = 1
-let GtagsCscope_Ignore_Case = 1
-let GtagsCscope_Absolute_Path = 1
-let GtagsCscope_Keep_Alive = 1
-let GtagsCscope_Auto_Load = 1
-let GtagsCscope_Quiet = 1
-set csprg=gtags-cscope
-set cscopetag
+" packadd! gen_tags.vim
+ let GtagsCscope_Auto_Map = 1
+ let GtagsCscope_Ignore_Case = 1
+ let GtagsCscope_Absolute_Path = 1
+ let GtagsCscope_Keep_Alive = 1
+ let GtagsCscope_Auto_Load = 1
+ let GtagsCscope_Quiet = 1
+ set csprg=gtags-cscope
+ set cscopetag
endif
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Async shell commands
-packadd asyncrun.vim
+"packadd asyncrun.vim
let g:asyncrun_open = 8
let g:asyncrun_status = ""
-let g:airline_section_error = airline#section#create_right(['%{g:asyncrun_status}'])
let g:asyncrun_auto = "make"
command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ <args>
command! -bang -nargs=* -complete=file Grep AsyncRun -program=grep @ <args>
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Error markers
-packadd errormarker.vim
+"packadd errormarker.vim
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Meson build system
-packadd mesonic
+"packadd mesonic
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Snippets
-packadd tlib_vim
-packadd vim-addon-mw-utils
-packadd vim-snipmate
-packadd vim-snippets
+"packadd tlib_vim
+"packadd vim-addon-mw-utils
+"packadd vim-snipmate
+"packadd vim-snippets
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" stock vim
-packadd! matchit
-packadd! vim-syntax-extra
+"packadd! matchit
+"packadd! vim-syntax-extra
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" supertab
packadd supertab
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Jedi (python)
"packadd jedi-vim
"let g:polyglot_disabled = ['python']
"let python_highlight_all = 1
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" completor (python)
"packadd completor.vim
"let g:completor_clang_binary = '/usr/bin/clang'
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" validator (python)
"packadd validator.vim
"let g:completor_clang_tidy_binary = '/usr/bin/run-clang-tidy'
"let g:validator_c_checkers = ['clang-tidy']
"let g:validator_cpp_checkers = ['clang-tidy']
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" markdown
"packadd vim-pandoc
"packadd vim-pandoc-syntax
-packadd vim-javascript
-packadd vim-markdown
+"packadd vim-javascript
+"packadd vim-markdown
+"packadd previm
let g:previm_enable_realtime = 1
nnoremap <silent><Leader>md :PrevimOpen<cr>
nnoremap <silent><Leader>pd :call Pandoc_Preview()<CR>
+"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" deoplete
set pyx=3
set pyxversion=3
set encoding=utf-8
let g:deoplete#enable_at_startup = 1
-packloadall
silent! helptags ALL
" local settings