Updates
This commit is contained in:
34
vimrc
34
vimrc
@@ -7,11 +7,15 @@ let g:pymode_python = 'python3'
|
||||
|
||||
" plugin stuff
|
||||
filetype plugin on
|
||||
filetype indent on
|
||||
|
||||
set backspace=indent,eol,start " backspace through everything in insert mode
|
||||
set cmdheight=1
|
||||
|
||||
" if has("gui_running")
|
||||
" autocmd GUIEnter * set vb t_vb=
|
||||
" endif
|
||||
set belloff=all
|
||||
|
||||
set wildmenu
|
||||
" set wildmode=longest,list,full
|
||||
|
||||
@@ -27,7 +31,7 @@ let s:toml = $HOME . '/.vim/plugins.toml'
|
||||
" Required:
|
||||
if dein#load_state($HOME . '/.cache/dein')
|
||||
call dein#begin($HOME . '/.cache/dein', [$HOME . '/.vim/vimrc', $HOME . '/.vim/plugins.toml'])
|
||||
|
||||
call dein#add('wsdjeg/dein-ui.vim')
|
||||
call dein#load_toml(s:toml)
|
||||
|
||||
" Let dein manage dein
|
||||
@@ -38,9 +42,11 @@ if dein#load_state($HOME . '/.cache/dein')
|
||||
call dein#end()
|
||||
call dein#save_state()
|
||||
endif
|
||||
filetype plugin indent on
|
||||
|
||||
" ===== further plugin initialization and default config =====
|
||||
so ~/.vim/plugged/cmdalias.vim/plugin/cmdalias.vim
|
||||
so ~/.vim/autoload/log-autocmds.vim
|
||||
|
||||
" lustyexplorer
|
||||
set hidden
|
||||
@@ -84,7 +90,7 @@ set mouse=a
|
||||
set autoread
|
||||
set number
|
||||
set encoding=utf8
|
||||
set guifont=Monospace\ 14
|
||||
set guifont=Hack\ Nerd\ Font\ Mono\ 16
|
||||
set clipboard=unnamedplus
|
||||
set textwidth=0
|
||||
set tabstop=4
|
||||
@@ -195,6 +201,14 @@ fun! StripTrailingWhitespaces()
|
||||
call cursor(l, c)
|
||||
endfun
|
||||
|
||||
function! ComIfGit(com1, com2)
|
||||
silent! !git rev-parse --is-inside-work-tree
|
||||
if v:shell_error == 0
|
||||
execute a:com1
|
||||
else
|
||||
execute a:com2
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" ===========================
|
||||
|
||||
@@ -251,4 +265,18 @@ function! ManCurrentWord()
|
||||
exe '!man 3 ' . word
|
||||
endfunction
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" Close preview after typing
|
||||
""""""""""""""""""""""""""""""
|
||||
autocmd WinEnter * call ClosePreviewWindow()
|
||||
function ClosePreviewWindow()
|
||||
if getwinvar(winnr("#"), "&pvw") == 1
|
||||
pclose
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
set title
|
||||
|
||||
" vim:foldmethod=marker:foldlevel=0
|
||||
|
||||
Reference in New Issue
Block a user