[submodule ".vim/pack/plugins/opt/incsearch.vim"]
path = .vim/pack/github/opt/incsearch.vim
url = https://github.com/haya14busa/incsearch.vim.git
-[submodule ".vim/pack/github/opt/bclose.vim"]
- path = .vim/pack/github/opt/bclose.vim
- url = https://github.com/rbgrouleff/bclose.vim.git
[submodule ".vim/pack/github/opt/vim-pandoc-syntax"]
path = .vim/pack/github/opt/vim-pandoc-syntax
url = https://github.com/vim-pandoc/vim-pandoc-syntax.git
[submodule ".vim/pack/github/opt/mesonic"]
path = .vim/pack/github/opt/mesonic
url = https://github.com/igankevich/mesonic.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/vim-snippets"]
path = .vim/pack/github/opt/vim-snippets
url = https://github.com/honza/vim-snippets.git
let &t_EI.="\e[1 q"
let &t_te.="\e[0 q"
-"General Mappings
+"Basic Mappings
let mapleader = ","
let maplocalleader = " "
-
set pastetoggle=<leader>p
-nnoremap <silent> <leader>* :grep <cword> \| copen<cr><c-l>
-nnoremap <Leader>t :TagbarToggle<CR>
-command! -nargs=1 Ngrep lvimgrep "<args>" $HOME/cloud/Notes/**/*.md
-command! -range=% Rst :'<,'>!pandoc -f markdown -t rst
-
-noremap <c-h> <c-w><c-h>
-noremap <c-j> <c-w><c-j>
-noremap <c-k> <c-w><c-k>
-noremap <c-l> <c-w><c-l>
-noremap <silent> <c-n> :bn<cr>
-noremap <silent> <c-p> :bp<cr>
-noremap! <C-a> <Home>
-noremap! <C-e> <End>
+noremap <c-h> <c-w><c-h>
+noremap <c-j> <c-w><c-j>
+noremap <c-k> <c-w><c-k>
+noremap <c-l> <c-w><c-l>
+noremap <silent> <c-n> :bn<cr>
+noremap <silent> <c-p> :bp<cr>
+noremap! <C-a> <Home>
+noremap! <C-e> <End>
"noremap <leader>z :bp<CR>
"noremap <leader>q :bp<CR>
"noremap <leader>x :bn<CR>
nnoremap N Nzzzv
nnoremap <silent><leader>+ :exe "resize " . (winheight(0) * 3/2)<cr>
nnoremap <silent><leader>- :exe "resize " . (winheight(0) * 2/3)<cr>
-nnoremap <silent><leader><space> :noh<cr>
+nnoremap <silent><enter> :noh<cr>
nnoremap <silent><leader>ev :edit $MYVIMRC<cr>
-nnoremap <silent><leader>m <Esc>:wa<CR>:Make<CR>
nnoremap <silent><leader>sh :term<cr>
-
+nnoremap <silent><leader>m :wa<CR>:Make<CR>
+nnoremap <silent><leader>* :grep <cword> \| copen<cr><c-l>
+nnoremap <silent><Leader>t :TagbarToggle<CR>
"nnoremap <silent><leader>html :-1read ~/.vim/template/html<CR>3jwf>a
"nnoremap <silent><leader>php :-1read ~/.vim/template/php<CR>2ja
"" Visual Mode Mappings
+vnoremap jk <esc>
+vnoremap <esc> <nop>
vmap < <gv
vmap > >gv
" file:line:coloumn:message
set grepformat^=%f:%l:%c:%m
set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
+command! -nargs=1 Ngrep lvimgrep "<args>" $HOME/cloud/Notes/**/*.md
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"
" Autocommands
if has('autocmd')
augroup expandtabs
- au!
- au FileType c setlocal expandtab softtabstop=2 shiftwidth=2
- au FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2
- au FileType make setlocal noexpandtab tabstop=8 shiftwidth=8
- au FileType python setlocal expandtab softtabstop=4 shiftwidth=4
+ autocmd!
+ autocmd FileType c setlocal expandtab softtabstop=2 shiftwidth=2
+ autocmd FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2
+ autocmd FileType make setlocal noexpandtab tabstop=8 shiftwidth=8
+ autocmd FileType python setlocal expandtab softtabstop=4 shiftwidth=4
\ formatoptions+=croq colorcolumn=79
\ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
augroup end
augroup filetypes
- au!
- au bufnewfile,bufread *.md,*.txt set filetype=pandoc
- au bufnewfile,bufread *.gradle set filetype=groovy
- au bufnewfile,bufread *.json set filetype=json
- au bufnewfile,bufread *.yml set filetype=yaml
+ autocmd!
+ autocmd bufnewfile,bufread *.md,*.txt set filetype=pandoc
+ autocmd bufnewfile,bufread *.gradle set filetype=groovy
+ autocmd bufnewfile,bufread *.json set filetype=json
+ autocmd bufnewfile,bufread *.yml set filetype=yaml
augroup end
augroup saveall
- autocmd!
- au focuslost * wall
+ autocmd!
+ autocmd focuslost * wall
augroup end
augroup numbers
- au!
- au bufenter,focusgained,insertleave * set relativenumber
- au bufleave,focuslost,insertenter * set norelativenumber
+ autocmd!
+ autocmd bufenter,focusgained,insertleave * set relativenumber
+ autocmd bufleave,focuslost,insertenter * set norelativenumber
augroup end
augroup vimrc
- au!
- au bufwritepost ~/.vim/gvimrc silent source %
- au bufwritepost ~/.vim/vimrc silent source %
- au bufwritepost ~/.vim/vimrc.local silent source %
+ autocmd!
+ autocmd bufwritepost ~/.vim/gvimrc silent source %
+ autocmd bufwritepost ~/.vim/vimrc silent source %
+ autocmd bufwritepost ~/.vim/vimrc.local silent source %
augroup end
augroup quickfix
-" autocmd QuickFixCmdPost [^l]* nested cwindow
-" autocmd QuickFixCmdPost l* nested lwindow
- au QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1)
+" autocmd QuickFixCmdPost [^l]* nested cwindow
+" autocmd QuickFixCmdPost l* nested lwindow
+ autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1)
augroup end
endif
" Unimpaired
packadd! vim-unimpaired
-" Ranger
-packadd! ranger.vim
-packadd! bclose.vim
-let g:ranger_replace_netrw = 1
-
" Matchit
packadd! matchit