From 6fabf41f6ef9f1d26fe6c1e88d848d8e2d72ac0d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 7 Aug 2016 18:22:39 +0100 Subject: Add cmaps for and --- vim/.vim/after/ftplugin/tex/mappings.vim | 3 ++- vim/.vimrc | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'vim') diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim index 939af68..9da769b 100644 --- a/vim/.vim/after/ftplugin/tex/mappings.vim +++ b/vim/.vim/after/ftplugin/tex/mappings.vim @@ -36,9 +36,10 @@ iabbrev gD \Delta iabbrev gT \Theta iabbrev gL \Lambda iabbrev gX \Xi -iabbrev gF \Phi iabbrev gP \Pi +iabbrev gS \Sigma iabbrev gW \Omega +iabbrev gF \Phi nnoremap i :VimtexCompile nnoremap e :VimtexErrors diff --git a/vim/.vimrc b/vim/.vimrc index 8709521..3e2d84d 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -30,6 +30,7 @@ Plug 'justinmk/vim-sneak' Plug 'klen/python-mode' Plug 'lervag/vimtex' Plug 'majutsushi/tagbar' +Plug 'mhinz/vim-startify' Plug 'mileszs/ack.vim' Plug 'nanotech/jellybeans.vim' Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' , 'on' : 'YcmGenerateConfig' } @@ -269,6 +270,11 @@ nnoremap + za nnoremap h nnoremap fw :%s/\s\+$// +cnoremap +cnoremap +cnoremap +cnoremap + "" Colorscheme let g:seoul256_background =235 silent! colo $COLORSCHEME -- cgit v1.2.3 From f016cf4bfa69cafa32e210aa49547aad35789032 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 17 Aug 2016 17:45:26 +0100 Subject: [.vimrc] Use :u instead of :w in w mapping --- vim/.vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 3e2d84d..e37824e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -253,7 +253,7 @@ endif "" Mappings -nnoremap w :w! +nnoremap w :update nnoremap q :q! nnoremap d :bd! nnoremap n :tabnew -- cgit v1.2.3 From 0b3c3a10f11d8c1598d2773189dfbcd187b0344c Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 29 Aug 2016 15:02:12 +0200 Subject: [vim] Set python version to 3 for Gundo --- vim/.vim/spell/en.utf-8.add | 6 ++++++ vim/.vim/spell/en.utf-8.add.spl | Bin 0 -> 154 bytes vim/.vimrc | 7 ++++--- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 vim/.vim/spell/en.utf-8.add create mode 100644 vim/.vim/spell/en.utf-8.add.spl (limited to 'vim') diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add new file mode 100644 index 0000000..87ee2ba --- /dev/null +++ b/vim/.vim/spell/en.utf-8.add @@ -0,0 +1,6 @@ +diagonality +laplacian +Maruyama +multiscale +SPDE +advective diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl new file mode 100644 index 0000000..b52c8a6 Binary files /dev/null and b/vim/.vim/spell/en.utf-8.add.spl differ diff --git a/vim/.vimrc b/vim/.vimrc index e37824e..3dc451b 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -55,6 +55,7 @@ Plug 'troydm/zoomwintab.vim' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'vim-scripts/gmsh.vim' +Plug 'vim-scripts/SpellCheck' if has("nvim") Plug 'Shougo/deoplete.nvim' @@ -64,7 +65,6 @@ if has("nvim") else Plug 'Shougo/neocomplete.vim' Plug 'scrooloose/syntastic' - " Plug 'Valloric/YouCompleteMe', { 'do' : 'python2 install.py --clang-completer' } endif call plug#end() @@ -159,6 +159,9 @@ let g:deoplete#omni_patterns.tex = g:neocomplete#sources#omni#input_patterns.tex " FZF.vim let g:fzf_buffers_jump = 1 +" Gundo +let g:gundo_prefer_python3 = 1 + " NerdTree let g:NERDTreeHijackNetrw = 0 @@ -219,7 +222,6 @@ let g:netrw_bufsettings='relativenumber' let g:tex_conceal= 'adgm' let g:tex_flavor='latex' - "" Vim options set smartindent set expandtab @@ -227,7 +229,6 @@ set tabstop=4 set softtabstop=4 set shiftwidth=4 set showcmd -" set nofoldenable set foldmethod=marker set noswapfile set nowritebackup -- cgit v1.2.3 From 09a7dcd8ed743b9f7e4dfd184c26454c29fb4774 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 31 Aug 2016 17:27:17 +0100 Subject: [vim] Add localvimrc --- vim/.vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 3dc451b..25a5cbe 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -13,6 +13,7 @@ Plug 'altercation/vim-colors-solarized' Plug 'beloglazov/vim-online-thesaurus' Plug 'christoomey/vim-tmux-navigator' Plug 'critiqjo/lldb.nvim' +Plug 'embear/vim-localvimrc' Plug 'holomorph/vim-freefem' Plug 'honza/vim-snippets' Plug 'jamessan/vim-gnupg' @@ -101,6 +102,7 @@ vnoremap p :LL print =lldb#util#get_selection() " Fugitive nnoremap gs :Gstatus +nnoremap gc :Gcommit nnoremap gr :Gread nnoremap gd :Gdiff @@ -162,6 +164,10 @@ let g:fzf_buffers_jump = 1 " Gundo let g:gundo_prefer_python3 = 1 +" Idealvimrc +let g:localvimrc_sandbox = 0 +let g:localvimrc_whitelist='/home/*' + " NerdTree let g:NERDTreeHijackNetrw = 0 -- cgit v1.2.3 From 2d391edd4d38e024519718104962a0825478c26d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 10 Sep 2016 22:51:35 +0100 Subject: [vim] Add mappings to open vifm --- vim/.vimrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 25a5cbe..4c937ff 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -270,6 +270,8 @@ nnoremap cqc :cclose nnoremap got :call system('urxvt -cd '.getcwd().' &') nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &') +nnoremap gof :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') +nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') nnoremap h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp, nnoremap Y y$ -- cgit v1.2.3 From c9e6b19648e8344d430d3322a8a3717595a390c3 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 11 Sep 2016 13:23:34 +0100 Subject: [Add] Add expand-region plugin --- vim/.vimrc | 1 + 1 file changed, 1 insertion(+) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 25a5cbe..79d3abd 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -37,6 +37,7 @@ Plug 'nanotech/jellybeans.vim' Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' , 'on' : 'YcmGenerateConfig' } Plug 'scrooloose/nerdtree' Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' } +Plug 'terryma/vim-expand-region' Plug 'terryma/vim-multiple-cursors' Plug 'tomasr/molokai' Plug 'tommcdo/vim-exchange' -- cgit v1.2.3 From 0da3d56ca20efe17f3b01b03fbe514e222b62661 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 21 Sep 2016 11:07:30 +0100 Subject: [vimrc] Update fzf mappings --- vim/.vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 0baab27..9e93a22 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -81,12 +81,17 @@ nnoremap cpt :TagbarToggle nnoremap cpu :GundoToggle " Fuzzy finder +nnoremap a :Ag nnoremap b :Buffers +nnoremap c :Commands nnoremap f :Files -nnoremap r :History nnoremap g :GitFiles -nnoremap c :Colors -nnoremap h :History: +nnoremap hf :History +nnoremap h: :History: +nnoremap h/ :History/ +nnoremap l :BLines +nnoremap m :Marks +nnoremap t :Tags imap (fzf-complete-line) imap (fzf-complete-file) @@ -271,7 +276,7 @@ nnoremap cqc :cclose nnoremap got :call system('urxvt -cd '.getcwd().' &') nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &') -nnoremap gof :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') +nnoremap gof :call system('urxvt -e vifm '.getcwd().' '.getcwd().' &') nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &') nnoremap h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp, -- cgit v1.2.3 From 823357067df3b1dc0baee9bfb838c66dde1c10ea Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 27 Sep 2016 15:31:20 +0100 Subject: [.vimrc] Update plugins --- vim/.vimrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 9e93a22..3f41edc 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -23,17 +23,16 @@ Plug 'junegunn/goyo.vim' Plug 'junegunn/gv.vim' Plug 'junegunn/seoul256.vim' Plug 'junegunn/vim-easy-align' -Plug 'junegunn/vim-oblique' Plug 'junegunn/vim-peekaboo' -Plug 'junegunn/vim-pseudocl' Plug 'justinmk/vim-dirvish' Plug 'justinmk/vim-sneak' Plug 'klen/python-mode' Plug 'lervag/vimtex' Plug 'majutsushi/tagbar' Plug 'mhinz/vim-startify' -Plug 'mileszs/ack.vim' +Plug 'mhinz/vim-grepper' Plug 'nanotech/jellybeans.vim' +Plug 'pgdouyon/vim-evanesco' Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' , 'on' : 'YcmGenerateConfig' } Plug 'scrooloose/nerdtree' Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' } -- cgit v1.2.3 From 24424ccf7029f16798a6919c90a6d3a55ba1efd0 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 5 Oct 2016 12:56:25 +0100 Subject: [vim] Add keybindings for tabs --- vim/.vimrc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 3f41edc..3ffe129 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -268,7 +268,14 @@ endif nnoremap w :update nnoremap q :q! nnoremap d :bd! -nnoremap n :tabnew + +nnoremap tn :tabnew +nnoremap te :tabedit +nnoremap th :-tabmove +nnoremap tl :+tabmove +nnoremap tm :tabmove +nnoremap t0 :tabmove 0 +nnoremap t$ :tabmove nnoremap cqo :copen nnoremap cqc :cclose @@ -304,7 +311,10 @@ augroup vimrc au BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 au BufNewFile,BufRead *.geo setf gmsh au BufNewFile,BufRead *.pde setf freefem - au FileType gmsh set makeprg=gmsh\ % + au BufNewFile,BufRead *.plt setf gnuplot + au FileType gmsh setlocal makeprg=gmsh\ % + au FileType gnuplot setlocal makeprg=gnuplot\ % + au FileType gnuplot setlocal commentstring=#%s au FileType freefem comp freefem - au FileType dirvish set relativenumber + au FileType dirvish setlocal relativenumber augroup END -- cgit v1.2.3