|
@ -30,7 +30,8 @@ set tw=75 |
|
|
set undodir=~/.vim/undo |
|
|
set undodir=~/.vim/undo |
|
|
set undofile |
|
|
set undofile |
|
|
" set updatetime=1000 |
|
|
" set updatetime=1000 |
|
|
set updatetime=500 |
|
|
|
|
|
|
|
|
" set updatetime=500 |
|
|
|
|
|
set updatetime=0 |
|
|
|
|
|
|
|
|
autocmd VimResized * wincmd = |
|
|
autocmd VimResized * wincmd = |
|
|
filetype plugin on |
|
|
filetype plugin on |
|
@ -58,6 +59,7 @@ autocmd FileType *css,htmldjango,html,javascript,json,markdown,tex,text,yaml set |
|
|
" autocmd Filetype html set foldmarker=0 |
|
|
" autocmd Filetype html set foldmarker=0 |
|
|
autocmd BufNewFile,BufRead *.gd set expandtab! |
|
|
autocmd BufNewFile,BufRead *.gd set expandtab! |
|
|
autocmd Filetype go set expandtab! sw=4 |
|
|
autocmd Filetype go set expandtab! sw=4 |
|
|
|
|
|
autocmd Filetype markdown set commentstring=<!---\ %s\ --> |
|
|
autocmd Filetype markdown map <F8> :LivedownToggle<CR> |
|
|
autocmd Filetype markdown map <F8> :LivedownToggle<CR> |
|
|
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A |
|
|
autocmd Filetype markdown nnoremap <Tab> <Esc>>>A |
|
|
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A |
|
|
autocmd Filetype markdown inoremap <S-Tab> <Esc><<A |
|
@ -140,13 +142,16 @@ Plug '907th/vim-auto-save' |
|
|
Plug 'lervag/vimtex' |
|
|
Plug 'lervag/vimtex' |
|
|
" au BufWritePost *.tex silent call Tex_RunLaTeX() |
|
|
" au BufWritePost *.tex silent call Tex_RunLaTeX() |
|
|
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin |
|
|
au BufWritePost *.tex silent !pkill -USR1 xdvi.bin |
|
|
|
|
|
let g:Tex_MultipleCompileFormats = 'dvi,pdf' |
|
|
let g:vimtex_view_general_viewer = 'zathura' |
|
|
let g:vimtex_view_general_viewer = 'zathura' |
|
|
let g:vimtex_quickfix_latexlog = { |
|
|
let g:vimtex_quickfix_latexlog = { |
|
|
\ 'overfull' : 0, |
|
|
\ 'overfull' : 0, |
|
|
\ 'underfull' : 0, |
|
|
\ 'underfull' : 0, |
|
|
\ 'global' : 0, |
|
|
\ 'global' : 0, |
|
|
|
|
|
\ 'references' : 0, |
|
|
\ 'unused' : 0, |
|
|
\ 'unused' : 0, |
|
|
\} |
|
|
\} |
|
|
|
|
|
let g:vimtex_quickfix_autoclose_after_keystrokes = 5 |
|
|
" let g:vimtex_compiler_latexmk = { |
|
|
" let g:vimtex_compiler_latexmk = { |
|
|
" \ 'continuous' : 0, |
|
|
" \ 'continuous' : 0, |
|
|
" \} |
|
|
" \} |
|
@ -256,13 +261,21 @@ call plug#end() |
|
|
" colorscheme gotham256 |
|
|
" colorscheme gotham256 |
|
|
colorscheme wal |
|
|
colorscheme wal |
|
|
|
|
|
|
|
|
nnoremap Q @@ |
|
|
|
|
|
|
|
|
" normal mappings [[[ " |
|
|
|
|
|
|
|
|
nnoremap v <C-V> |
|
|
nnoremap v <C-V> |
|
|
|
|
|
nnoremap Q @@ |
|
|
|
|
|
|
|
|
|
|
|
" folds |
|
|
|
|
|
nnoremap , za |
|
|
|
|
|
|
|
|
|
|
|
" indenting |
|
|
nnoremap > >> |
|
|
nnoremap > >> |
|
|
nnoremap < << |
|
|
nnoremap < << |
|
|
inoremap << <Esc><<A |
|
|
inoremap << <Esc><<A |
|
|
|
|
|
|
|
|
|
|
|
" ]]] normal mappings " |
|
|
|
|
|
|
|
|
" leader mappings [[[ " |
|
|
" leader mappings [[[ " |
|
|
let mapleader="\<Space>" |
|
|
let mapleader="\<Space>" |
|
|
|
|
|
|
|
@ -274,8 +287,10 @@ nnoremap <leader>c c$ |
|
|
nnoremap <leader>d d$ |
|
|
nnoremap <leader>d d$ |
|
|
" delete entire buffer |
|
|
" delete entire buffer |
|
|
nnoremap <leader>dg ggdG |
|
|
nnoremap <leader>dg ggdG |
|
|
|
|
|
" delete entire line |
|
|
|
|
|
nnoremap <leader>dl 0d$ |
|
|
" delete lines matching pattern |
|
|
" delete lines matching pattern |
|
|
nnoremap <leader>dl :g//d<left><left> |
|
|
|
|
|
|
|
|
nnoremap <leader>dls :g//d<left><left> |
|
|
" show docstring for cur word |
|
|
" show docstring for cur word |
|
|
nnoremap <leader>do :YcmCompleter GetDoc<CR> |
|
|
nnoremap <leader>do :YcmCompleter GetDoc<CR> |
|
|
" delete line into system clipboard |
|
|
" delete line into system clipboard |
|
@ -291,8 +306,9 @@ nnoremap <leader>fmi :set foldmethod=indent<CR> zM |
|
|
nnoremap <leader>fmm :set foldmethod=marker<CR> zM |
|
|
nnoremap <leader>fmm :set foldmethod=marker<CR> zM |
|
|
" add marker foldmethod modeline |
|
|
" add marker foldmethod modeline |
|
|
nnoremap <leader>fi :YcmCompleter FixIt<CR> |
|
|
nnoremap <leader>fi :YcmCompleter FixIt<CR> |
|
|
" find copied text |
|
|
|
|
|
nnoremap <leader>ft :se ft? |
|
|
|
|
|
|
|
|
" check filetype |
|
|
|
|
|
nnoremap <leader>ft :se ft?<CR> |
|
|
|
|
|
" check todo's |
|
|
nnoremap <leader>ftd /TODO<CR> |
|
|
nnoremap <leader>ftd /TODO<CR> |
|
|
nnoremap <leader>g :YcmCompleter GoTo<CR> |
|
|
nnoremap <leader>g :YcmCompleter GoTo<CR> |
|
|
" vimdiff split |
|
|
" vimdiff split |
|
@ -317,6 +333,8 @@ vnoremap <leader>n q:anorm |
|
|
nnoremap <leader>nw :set nowrap<CR> |
|
|
nnoremap <leader>nw :set nowrap<CR> |
|
|
" check if in neovim |
|
|
" check if in neovim |
|
|
nnoremap <leader>nv :echo has('nvim')<CR> |
|
|
nnoremap <leader>nv :echo has('nvim')<CR> |
|
|
|
|
|
" open fold recursively |
|
|
|
|
|
nnoremap <leader>o zO |
|
|
" Plug commands |
|
|
" Plug commands |
|
|
nnoremap <leader>p "*p |
|
|
nnoremap <leader>p "*p |
|
|
nnoremap <leader>pli :PlugInstall<CR> |
|
|
nnoremap <leader>pli :PlugInstall<CR> |
|
|