Add shortcut to format documents
This commit is contained in:
parent
87fe25f9f3
commit
bd57d572cd
5
vimrc
5
vimrc
|
@ -5,7 +5,7 @@ source $VIMRUNTIME/defaults.vim
|
|||
nnoremap <esc>^[ <esc>^[
|
||||
|
||||
" disable mouse so that clipboard works properly
|
||||
set mouse=
|
||||
set mouse=nv
|
||||
|
||||
set t_TI=""
|
||||
set t_TE=""
|
||||
|
@ -43,7 +43,7 @@ set cursorline
|
|||
set laststatus=2
|
||||
let mapleader=","
|
||||
|
||||
set number
|
||||
set nonumber
|
||||
set listchars=trail:.,tab:>_
|
||||
set list
|
||||
set wrap
|
||||
|
@ -74,6 +74,7 @@ imap jk <Esc>
|
|||
command Bd b# | bd #
|
||||
command! BufOnly silent! execute "%bd|e#|bd#"
|
||||
nnoremap <Leader>b :buffers<CR>:buffer<Space>
|
||||
nnoremap <Leader>i :!zimports %<CR>:!black %<CR><CR>
|
||||
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
|
Loading…
Reference in a new issue