nvimrc update
This commit is contained in:
parent
c5e9d414b8
commit
5e61b89ed3
1 changed files with 5 additions and 6 deletions
|
@ -13,11 +13,10 @@ Plug 'scrooloose/nerdtree'
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'PotatoesMaster/i3-vim-syntax'
|
Plug 'PotatoesMaster/i3-vim-syntax'
|
||||||
Plug 'jreybert/vimagit'
|
Plug 'jreybert/vimagit'
|
||||||
Plug 'LukeSmithxyz/vimling'
|
Plug 'lukesmithxyz/vimling'
|
||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'bling/vim-airline'
|
Plug 'bling/vim-airline'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'vifm/vifm.vim'
|
|
||||||
Plug 'kovetskiy/sxhkd-vim'
|
Plug 'kovetskiy/sxhkd-vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -92,22 +91,22 @@ set clipboard=unnamedplus
|
||||||
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
|
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
|
||||||
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
||||||
|
|
||||||
" Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed):
|
" Copy selected text to system clipboard:
|
||||||
vnoremap <C-c> "+y
|
vnoremap <C-c> "+y
|
||||||
map <C-p> "+P
|
map <C-p> "+P
|
||||||
|
|
||||||
" Enable Goyo by default for mutt writting
|
" Enable Goyo by default for mutt writting
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
|
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
|
||||||
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
|
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light
|
||||||
|
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
|
||||||
|
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
||||||
|
|
||||||
" Automatically deletes all trailing whitespace on save.
|
" Automatically deletes all trailing whitespace on save.
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
|
||||||
" When shortcut files are updated, renew bash and ranger configs with new material:
|
" When shortcut files are updated, renew bash and ranger configs with new material:
|
||||||
autocmd BufWritePost *bmdirs,*bmfiles !shortcuts
|
autocmd BufWritePost files,directories !shortcuts
|
||||||
" Run xrdb whenever Xdefaults or Xresources are updated.
|
" Run xrdb whenever Xdefaults or Xresources are updated.
|
||||||
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
|
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
|
||||||
" Update binds when sxhkdrc is updated.
|
" Update binds when sxhkdrc is updated.
|
||||||
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
||||||
" Update dwmbar when changed.
|
|
||||||
autocmd BufWritePost *dwmbar !killall dwmbar; setsid dwmbar &
|
|
||||||
|
|
Loading…
Reference in a new issue