[submodule ".vim/pack/plugins/start/vim-airline"]
- path = .vim/pack/plugins/start/vim-airline
+ path = .vim/pack/github/opt/vim-airline
url = https://github.com/vim-airline/vim-airline.git
[submodule ".vim/pack/plugins/start/Tortoise-Typing"]
- path = .vim/pack/plugins/start/Tortoise-Typing
+ path = .vim/pack/github/opt/Tortoise-Typing
url = https://github.com/thanthese/Tortoise-Typing.git
[submodule ".vim/pack/plugins/start/ale"]
- path = .vim/pack/plugins/start/ale
+ path = .vim/pack/github/opt/ale
url = https://github.com/w0rp/ale.git
[submodule ".vim/pack/plugins/start/vim-fugitive"]
- path = .vim/pack/plugins/start/vim-fugitive
+ path = .vim/pack/github/opt/vim-fugitive
url = https://github.com/tpope/vim-fugitive.git
[submodule ".vim/pack/plugins/start/vim-unimpaired"]
- path = .vim/pack/plugins/start/vim-unimpaired
+ path = .vim/pack/github/opt/vim-unimpaired
url = https://github.com/tpope/vim-unimpaired.git
[submodule ".vim/pack/plugins/opt/ultisnips"]
- path = .vim/pack/plugins/opt/ultisnips
+ path = .vim/pack/github/opt/ultisnips
url = https://github.com/SirVer/ultisnips.git
[submodule ".vim/pack/plugins/start/ropevim"]
- path = .vim/pack/plugins/start/ropevim
+ path = .vim/pack/github/opt/ropevim
url = https://github.com/python-rope/ropevim.git
[submodule ".vim/pack/plugins/start/editorconfig-vim"]
- path = .vim/pack/plugins/start/editorconfig-vim
+ path = .vim/pack/github/opt/editorconfig-vim
url = https://github.com/editorconfig/editorconfig-vim.git
[submodule ".vim/pack/plugins/start/tagbar"]
- path = .vim/pack/plugins/start/tagbar
+ path = .vim/pack/github/opt/tagbar
url = https://github.com/majutsushi/tagbar.git
[submodule ".vim/pack/plugins/start/incsearch.vim"]
- path = .vim/pack/plugins/start/incsearch.vim
+ path = .vim/pack/github/opt/incsearch.vim
url = https://github.com/haya14busa/incsearch.vim.git
[submodule ".vim/pack/plugins/start/ctrlp.vim"]
- path = .vim/pack/plugins/start/ctrlp.vim
+ path = .vim/pack/github/opt/ctrlp.vim
url = https://github.com/ctrlpvim/ctrlp.vim.git
set undodir=~/.local/share/vim/undo
set viminfo+=n~/.local/share/vim/viminfo
-set undofile
+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 " automatically save before commands like :next and :make
+set autowrite
"set autoindent
set backspace=2
set complete-=i " searching includes can be slow
set history=200
set incsearch " incremental search
-set laststatus=2 " always show status line
set lazyredraw
set linebreak
set scrolloff=1
set shiftround
set shortmess=aoOtI
+set laststatus=2 " always show status line
set cmdheight=2
set showcmd " show (partial) command in status line.
set sidescrolloff=5
set smartcase " case insensitive searches become sensitive with capitals
"setglobal tags=./tags;
-"
+
set timeoutlen=500 " leader key timeout
set ttimeoutlen=50 " make esc work faster
set winaltkeys=no
" visual
-"""""""""""""""""""""""""""""""""""""""""
-
+" ---------------------
highlight Normal guibg=black guifg=white
set background=dark
set t_Co=256
endif
endif
-
-" make
-"""""""""""""""""""""""""""""""""""""""""
-
-set path=.,,**,C:\programs\IAR\\\ System\EWB_V850_V360\common\bin
-
-"set makeprg=cmake\ --build\ .
-set makeprg=msbuild
-" Visual studio 2013
-set errorformat=\ %#%f(%l):\ %m
-" Visual studio 2008
-"set errorformat=%.%#>\ %#%f(%l)\ :\ %m
-"
-" IAR compiler
-"if executable('vim-iarbuild.cmd')
-" set makeprg=vim-iarbuild.cmd
-" set errorformat=%f(%l)\ :\ %m
-"endif
-
-" grep
-"""""""""""""""""""""""""""""""""""""""""
-
-if executable('ag')
- set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
- set grepformat^=%f:%l:%c:%m " file:line:coloumn:message
-endif
-
-
-" settings
-"""""""""""""""""""""""""""""""""""""""""
-
" 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"
+" plugins
+" ---------------------
+packadd tagbar
+packadd vim-fugitive
+packadd vim-gtags
+packadd vim-unimpaired
+
" netrw
+" ---------------------
let g:netrw_liststyle=3
let g:netrw_banner = 0
let g:netrw_sort_sequence = '[\/]$,*'
-
-" airline
-let g:airline#extensions#tabline#enabled = 1
-
-" editorconfig
-let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
-let g:editorconfig_verbose = 1
-
-if has("win32")
- let g:EditorConfig_exec_path = "C:\programs\editorconfig\bin\editorconfig.exe"
-else
- let g:editorconfig_core_mode = "python_builtin"
-endif
-
-
-" mappings
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-let mapleader = ","
-
-" grep under cursor
-nnoremap <leader>* :silent grep <cword> \| copen<CR><C-l> " <C-l> redraws the screen
-
-" buffers
-nnoremap <Leader>b :buffer<cr>
-
-" tags
-nnoremap <Leader>t :tags<CR>
-
-" ctrl-p
-let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
-let g:ctrlp_map = '<c-p>'
-let g:ctrlp_cmd = 'CtrlP'
-
-" ctrl-hjkl to windows navigation and resizing
-nnoremap <C-h> <C-w><C-h>
-nnoremap <C-j> <C-w><C-j>
-nnoremap <C-k> <C-w><C-k>
-nnoremap <C-l> <C-w><C-l>
-
" ranger
+" ---------------------
function! RangeChooser()
let temp = tempname()
" The option "--choosefiles" was added in ranger 1.5.1. Use the next line
command! -bar RangerChooser call RangeChooser()
nnoremap <leader>r :<C-U>RangerChooser<CR>
+" airline
+" ---------------------
+packadd vim-airline
+let g:airline#extensions#tabline#enabled = 1
+
+" editorconfig
+" ---------------------
+packadd editorconfig-vim
+let g:editorconfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
+let g:editorconfig_verbose = 1
+
+if has("win32")
+ let g:EditorConfig_exec_path = "C:\programs\editorconfig\bin\editorconfig.exe"
+else
+ let g:editorconfig_core_mode = "python_builtin"
+endif
+
+" make
+" ---------------------
+"set makeprg=cmake\ --build\ .
+set makeprg=msbuild
+" Visual studio 2013
+set errorformat=\ %#%f(%l):\ %m
+" Visual studio 2008
+"set errorformat=%.%#>\ %#%f(%l)\ :\ %m
+"
+" IAR compiler
+"if executable('vim-iarbuild.cmd')
+" set makeprg=vim-iarbuild.cmd
+" set errorformat=%f(%l)\ :\ %m
+"endif
+
+" grep
+" ---------------------
+if executable('ag')
+ set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
+ set grepformat^=%f:%l:%c:%m " file:line:coloumn:message
+endif
+" grep under cursor
+nnoremap <leader>* :silent grep <cword> \| copen<CR><C-l> " <C-l> redraws the screen
+
+" ctrl-p
+" ---------------------
+packadd ctrlp.vim
+let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
+let g:ctrlp_map = '<c-p>'
+let g:ctrlp_cmd = 'CtrlP'
+
+" mappings
+" ---------------------
+let mapleader = ","
+
+" buffers
+nnoremap <Leader>b :buffer<cr>
+
+" tags
+nnoremap <Leader>t :tags<CR>
+
+" ctrl-hjkl to windows navigation and resizing
+nnoremap <C-h> <C-w><C-h>
+nnoremap <C-j> <C-w><C-j>
+nnoremap <C-k> <C-w><C-k>
+nnoremap <C-l> <C-w><C-l>
+
+
" Maps Ctrl-[h,j,k,l,+,-] to windows split navigations and resizing
nnoremap <C-H> <C-W><C-H>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-k> :exe "resize " . (winheight(0) * 3/2)<CR>
endif
-
" folding
noremap <space> za
ca w!! w !sudo tee "%"
" autocommands
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" ---------------------
if has("autocmd")
filetype plugin indent on
endif
" local
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" ---------------------
if filereadable(expand('~/.vim/vimrc.local'))
source ~/.vim/vimrc.local
endif