update the updates
This commit is contained in:
parent
d6ee08daea
commit
993d7d639a
25
vimrc
25
vimrc
|
@ -234,26 +234,6 @@ command! -nargs=1 -complete=command Redir silent call Redir(<q-args>)
|
||||||
" :Redir hi ............. show the full output of command ':hi' in a scratch window
|
" :Redir hi ............. show the full output of command ':hi' in a scratch window
|
||||||
" :Redir !ls -al ........ show the full output of command ':!ls -al' in a scratch window
|
" :Redir !ls -al ........ show the full output of command ':!ls -al' in a scratch window
|
||||||
"}}}
|
"}}}
|
||||||
function! OpenNetrw() abort "{{{
|
|
||||||
Texplore
|
|
||||||
" setl rnu nu
|
|
||||||
endfunction
|
|
||||||
"}}}
|
|
||||||
|
|
||||||
function! CloseNetrw(keep_buffer) abort "{{{
|
|
||||||
if a:keep_buffer == 1
|
|
||||||
let l:current_buffer = bufnr("%")
|
|
||||||
tabclose
|
|
||||||
tabprevious
|
|
||||||
if bufexists(l:current_buffer) > 0
|
|
||||||
execute "buffer" l:current_buffer
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
tabclose
|
|
||||||
tabprevious
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
"}}}
|
|
||||||
"----------------------------------------------------------------------------}}}
|
"----------------------------------------------------------------------------}}}
|
||||||
"#commands{{{
|
"#commands{{{
|
||||||
" TrimWhitespace{{{
|
" TrimWhitespace{{{
|
||||||
|
@ -321,6 +301,8 @@ set spelllang=en_gb
|
||||||
|
|
||||||
set diffopt+=vertical
|
set diffopt+=vertical
|
||||||
|
|
||||||
|
set rnu nu
|
||||||
|
|
||||||
set tabstop=8
|
set tabstop=8
|
||||||
set softtabstop=2
|
set softtabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
|
@ -370,6 +352,9 @@ let g:mapleader = ' '
|
||||||
" search and replace {{{
|
" search and replace {{{
|
||||||
nnoremap <space>rr :%s/\<<C-r>=expand('<cword>')<CR>\>//g<left><left>
|
nnoremap <space>rr :%s/\<<C-r>=expand('<cword>')<CR>\>//g<left><left>
|
||||||
"}}}
|
"}}}
|
||||||
|
" #syntax
|
||||||
|
nnoremap <silent> <cr>s :syntax on<cr>
|
||||||
|
nnoremap <silent> <cr>S :syntax off<cr>
|
||||||
" miscallaneous {{{
|
" miscallaneous {{{
|
||||||
nnoremap <cr>l :colorscheme monotonous-light<cr>
|
nnoremap <cr>l :colorscheme monotonous-light<cr>
|
||||||
nnoremap <cr>d :colorscheme monotonous-dark<cr>
|
nnoremap <cr>d :colorscheme monotonous-dark<cr>
|
||||||
|
|
|
@ -12,6 +12,26 @@
|
||||||
" nnoremap <space>ee :e .<CR>
|
" nnoremap <space>ee :e .<CR>
|
||||||
" nnoremap <space>eq :Rex<CR>
|
" nnoremap <space>eq :Rex<CR>
|
||||||
|
|
||||||
|
function! OpenNetrw() abort "{{{
|
||||||
|
Texplore
|
||||||
|
" setl rnu nu
|
||||||
|
endfunction
|
||||||
|
"}}}
|
||||||
|
|
||||||
|
function! CloseNetrw(keep_buffer) abort "{{{
|
||||||
|
if a:keep_buffer == 1
|
||||||
|
let l:current_buffer = bufnr("%")
|
||||||
|
tabclose
|
||||||
|
tabprevious
|
||||||
|
if bufexists(l:current_buffer) > 0
|
||||||
|
execute "buffer" l:current_buffer
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
tabclose
|
||||||
|
tabprevious
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
"}}}
|
||||||
"}}}
|
"}}}
|
||||||
" #Obsession{{{
|
" #Obsession{{{
|
||||||
" fork of tpope/vim-obsession
|
" fork of tpope/vim-obsession
|
||||||
|
|
Loading…
Reference in New Issue