]> git.zndr.dk Git - dotfiles.git/commitdiff
Fix vim-ranger
authorJannik ZANDER <jannikz@gmail.com>
Sun, 8 Jul 2018 21:41:52 +0000 (23:41 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sun, 8 Jul 2018 21:58:11 +0000 (23:58 +0200)
.gitmodules
.vim/pack/github/opt/bclose.vim [new submodule]
.vim/pack/github/opt/ranger.vim [new submodule]
.vim/pack/github/ranger [deleted submodule]
.vim/vimrc

index d0245c772ef837418bc0bf72cb18e0a3b50cbc08..851871d5a41e560e2b5750f6c525d83b55dcab3d 100644 (file)
@@ -37,3 +37,9 @@
 [submodule ".vim/pack/github/opt/vim-ranger"]
        path = .vim/pack/github/opt/vim-ranger
        url = https://github.com/Mizuchi/vim-ranger.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
diff --git a/.vim/pack/github/opt/bclose.vim b/.vim/pack/github/opt/bclose.vim
new file mode 160000 (submodule)
index 0000000..dd55ebc
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit dd55ebc4097d40b0335f3be15656d31b8fa250ef
diff --git a/.vim/pack/github/opt/ranger.vim b/.vim/pack/github/opt/ranger.vim
new file mode 160000 (submodule)
index 0000000..118afa2
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 118afa234620bea927235e4bdbe2064fd7e15775
diff --git a/.vim/pack/github/ranger b/.vim/pack/github/ranger
deleted file mode 160000 (submodule)
index 392f3a4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 392f3a45530eb49dd35340999165c4c743050fab
index 0f11350b0a469be781a06ec1998d2062e0296553..8fe7d6c0dc87acbfa4b641323400e97538533e42 100644 (file)
@@ -1,53 +1,20 @@
 syntax on
 filetype plugin indent on
 
-" Colors and Fonts
-highlight Normal guibg=black guifg=white
-set background=dark
-set t_Co=256
-if (&t_Co > 2 || has("gui_running"))
-  if exists("&guifont")
-    if has("mac")
-      set guifont=monaco:h11
-    elseif has("unix")
-      set guifont=inconsolata\ 11
-    elseif has("win32")
-"      set guifont=consolas:h11,courier\ new:h10
-      set guifont=consolas:h10:cANSI:qDRAFT
-    endif
-  endif
-endif
-
-" block cursor in normal mode
-let &t_ti.="\e[1 q"
-let &t_SI.="\e[5 q"
-let &t_EI.="\e[1 q"
-let &t_te.="\e[0 q"
-
 " General options
-silent !mkdir -p ~/.local/share/vim/{swap,backup,undo}
-set directory=~/.local/share/vim/swap
-set backupdir=~/.local/share/vim/backup
-set undodir=~/.local/share/vim/undo
-set viminfo+=n~/.local/share/vim/viminfo
 set path=.,,**,C:\programs\IAR\\\ System\EWB_V850_V360\common\bin
 set fileformats=unix,dos,mac
 set printoptions=paper:letter
 set shell=/bin/bash
-set undofile
-set autoread
-set autowrite
 set backspace=2
 set breakindent showbreak=\ +
 set clipboard=unnamed
-"set foldmethod=syntax
-"set foldlevel=1
-"set foldclose=all
-"set foldopen+=jump
+
 set guioptions+=a
 "set guioptions-=m "menu bar
 set guioptions-=T "toolbar
 set guioptions-=r "scroolbar
+
 set complete-=i     " searching includes can be slow
 set history=200
 set incsearch       " incremental search
@@ -59,9 +26,6 @@ set number
 set scrolloff=1
 set shiftround
 set shortmess=aoOtI
-set laststatus=2
-set cmdheight=2
-set showcmd
 set showmatch
 set sidescrolloff=5
 set smartcase
@@ -71,12 +35,33 @@ set ttimeoutlen=50  " make esc work faster
 set visualbell
 set virtualedit=block
 set updatetime=250
-set wildmenu
-set wildmode=longest:full,full
-set wildignore+=tags,.*.un~,*.pyc
 set winaltkeys=no
+set wildignore+=tags,.*.un~,*.pyc
 
-" Programs
+" folding
+set foldmethod=syntax
+set foldlevel=1
+set foldclose=all
+set foldopen+=jump
+
+" buffers
+silent !mkdir -p ~/.vim/undo
+set viminfo+=n~/./vim/viminfo
+set undodir=~/.vim/undo
+set undofile
+set nohidden
+set nobackup
+set noswapfile
+set autoread
+set autowrite
+set autowriteall
+
+" command and status line 
+set showcmd
+set cmdheight=2
+set laststatus=2
+set wildmenu
+set wildmode=longest:full,full
 
 " make
 "set makeprg=cmake\ --build\ .
@@ -113,6 +98,8 @@ cnoreabbrev w!!      w !sudo tee "%"
 " Commands
 
 " Plugins
+" ALE
+packadd ale
 
 " Tagbar
 packadd tagbar
@@ -132,9 +119,9 @@ let g:netrw_banner = 0
 let g:netrw_sort_sequence = '[\/]$,*'
 
 " Ranger
-packadd vim-ranger
-let g:ranger_on_exit = 'bw!'
-let g:ranger_open_mode = 'edit'
+packadd ranger.vim
+packadd bclose.vim
+let g:ranger_replace_netrw = 1
 
 " Airline
 packadd vim-airline
@@ -159,10 +146,38 @@ let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclu
 nnoremap <Leader>b   :CtrlPBuffer<CR>
 nnoremap <Leader>m   :CtrlPMRU<CR>
 
+
+" Colors and Fonts
+highlight Normal guibg=black guifg=white
+set background=dark
+set t_Co=256
+if (&t_Co > 2 || has("gui_running"))
+  if exists("&guifont")
+    if has("mac")
+      set guifont=monaco:h11
+    elseif has("unix")
+      set guifont=inconsolata\ 11
+    elseif has("win32")
+"      set guifont=consolas:h11,courier\ new:h10
+      set guifont=consolas:h10:cANSI:qDRAFT
+    endif
+  endif
+endif
+
+" block cursor in normal mode
+let &t_ti.="\e[1 q"
+let &t_SI.="\e[5 q"
+let &t_EI.="\e[1 q"
+let &t_te.="\e[0 q"
+
 " autocommands
 autocmd BufReadPost quickfix nnoremap <buffer> <CR> <CR>
 autocmd bufnewfile,bufread *.md set filetype=markdown
 autocmd bufnewfile,bufread *.gradle set filetype=groovy
+augroup save
+  au!
+  au FocusLost * wall
+augroup END
 
 " local
 if filereadable(expand('~/.vim/vimrc.local'))