From ec88f1e3c713a210f4158c4c6869423a91ac3ad4 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Mon, 16 Jul 2018 19:03:49 +0200 Subject: [PATCH] Replace ranger with netranger in vim --- .gitmodules | 6 +++--- .vim/pack/github/opt/ranger.vim | 1 - .vim/pack/github/opt/vim-netranger | 1 + .vim/vimrc | 17 +++++++++-------- 4 files changed, 13 insertions(+), 12 deletions(-) delete mode 160000 .vim/pack/github/opt/ranger.vim create mode 160000 .vim/pack/github/opt/vim-netranger diff --git a/.gitmodules b/.gitmodules index 40f8332..580289a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,9 +28,6 @@ [submodule ".vim/pack/plugins/opt/ctrlp.vim"] path = .vim/pack/github/opt/ctrlp.vim url = https://github.com/ctrlpvim/ctrlp.vim.git -[submodule ".vim/pack/github/opt/ranger.vim"] - path = .vim/pack/github/opt/ranger.vim - url = https://github.com/francoiscabrol/ranger.vim.git [submodule ".vim/pack/github/opt/bclose.vim"] path = .vim/pack/github/opt/bclose.vim url = https://github.com/rbgrouleff/bclose.vim.git @@ -49,3 +46,6 @@ [submodule ".vim/pack/github/opt/mesonic"] path = .vim/pack/github/opt/mesonic url = https://github.com/igankevich/mesonic.git +[submodule ".vim/pack/github/opt/vim-netranger"] + path = .vim/pack/github/opt/vim-netranger + url = https://github.com/ipod825/vim-netranger.git diff --git a/.vim/pack/github/opt/ranger.vim b/.vim/pack/github/opt/ranger.vim deleted file mode 160000 index 118afa2..0000000 --- a/.vim/pack/github/opt/ranger.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 118afa234620bea927235e4bdbe2064fd7e15775 diff --git a/.vim/pack/github/opt/vim-netranger b/.vim/pack/github/opt/vim-netranger new file mode 160000 index 0000000..c29312f --- /dev/null +++ b/.vim/pack/github/opt/vim-netranger @@ -0,0 +1 @@ +Subproject commit c29312ff545ec3349868442d6a0ff9f5183d2832 diff --git a/.vim/vimrc b/.vim/vimrc index 5aa0980..4f46f5f 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -36,9 +36,11 @@ set relativenumber set titlestring=vim:\ %f " folding -"set foldmethod=indent -set foldopen+=jump,search -"set foldclose=all +set foldmethod=syntax +set foldlevel=3 +set foldopen+=search +set foldclose=all +"set foldcolumn=4 " keyboard let mapleader = "," @@ -111,7 +113,7 @@ let &t_te.="\e[0 q" " make function! s:CmakeInit() let &errorformat="%f(%l) : %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) : %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f|%l| %m" - let &makeprg='cmake ' + set makeprg=cmake endfunction command! -bang -nargs=0 -complete=file CmakeInit call s:CmakeInit() @@ -165,9 +167,7 @@ let GtagsCscope_Quiet = 1 packadd! vim-unimpaired " Ranger -packadd! ranger.vim -packadd! bclose.vim -let g:ranger_replace_netrw = 1 +packadd! vim-netranger " Airline packadd! vim-airline @@ -209,7 +209,6 @@ let g:asyncrun_auto = "make" command! -bang -nargs=* -complete=file Make AsyncRun -program=make @ command! -bang -nargs=* -complete=file Grep AsyncRun -program=grep @ - " Error markers packadd errormarker.vim @@ -228,6 +227,8 @@ nnoremap :bprev nnoremap + :exe "resize " . (winheight(0) * 3/2) nnoremap - :exe "resize " . (winheight(0) * 2/3) nnoremap :nohlsearch:echo +nnoremap ev :vsplit $MYVIMRC +"nnoremap sv :source $MYVIMRC " Insert mode Mappings inoremap u -- 2.43.0