[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
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
set scrolloff=1
set shiftround
set shortmess=aoOtI
-set laststatus=2
-set cmdheight=2
-set showcmd
set showmatch
set sidescrolloff=5
set smartcase
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\ .
" Commands
" Plugins
+" ALE
+packadd ale
" Tagbar
packadd tagbar
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
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'))