From 54838d45d8116833e05ecdb7722c97535267c0be Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 23 May 2015 12:42:42 +0100 Subject: replaced buffergator by bufsurf --- nvimrc | 8 +++----- vimrc | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nvimrc b/nvimrc index b105474..c236461 100644 --- a/nvimrc +++ b/nvimrc @@ -12,7 +12,6 @@ Plug 'godlygeek/tabular' Plug 'gregsexton/gitv' Plug 'honza/vim-snippets' Plug 'jamessan/vim-gnupg' -Plug 'jeetsukumaran/vim-buffergator' Plug 'junegunn/seoul256.vim' Plug 'kien/ctrlp.vim' Plug 'LaTeX-Box-Team/latex-box' @@ -26,6 +25,7 @@ Plug 'szw/vim-ctrlspace' Plug 'terryma/vim-multiple-cursors' Plug 'tomasr/molokai' Plug 'tommcdo/vim-exchange' +Plug 'ton/vim-bufsurf' Plug 'tpope/vim-abolish' Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' @@ -61,9 +61,6 @@ let g:airline_section_z = '%3p%%|%3l|%3c' let g:airline_theme='base16' let g:airline#extensions#tabline#enabled = 0 -let g:buffergator_display_regime='bufname' -let g:buffergator_vsplit_size=30 - let g:bufferline_active_buffer_left = '' let g:bufferline_active_buffer_right = '' let g:bufferline_echo = 0 @@ -190,7 +187,6 @@ nnoremap ps :PlugStatus " Toggles nnoremap cop :set paste! -nnoremap tb :BuffergatorToggle nnoremap tg :GitGutterToggle nnoremap tn :NERDTreeToggle nnoremap tt :TagbarToggle @@ -213,6 +209,8 @@ nnoremap fw :%s/\s\+$// nnoremap fi zzmxgg=G'x " Navigation +nnoremap [[ :BufSurfBack +nnoremap ]] :BufSurfForward nnoremap 3 nnoremap 3 nnoremap o diff --git a/vimrc b/vimrc index d722075..5ad3b76 100644 --- a/vimrc +++ b/vimrc @@ -35,7 +35,6 @@ Plugin 'tpope/vim-scriptease' Plugin 'tpope/vim-sensible' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-unimpaired' -Plugin 'rdnetto/YCM-Generator' filetype plugin indent on syntax on -- cgit v1.2.3 From aed01842a3dfd3d17a72b9aad9a57c6220b4a6f3 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 26 May 2015 12:13:45 +0100 Subject: configured plugins for lazy loading --- bashrc | 1 + latexmkrc | 2 +- nvimrc | 25 +++++++++++++------------ zshrc | 1 + 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/bashrc b/bashrc index a5f83b7..d7d4121 100644 --- a/bashrc +++ b/bashrc @@ -112,3 +112,4 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi +[ -f ~/.fzf.bash ] && source ~/.fzf.bash diff --git a/latexmkrc b/latexmkrc index 533dbdd..a76cf2b 100644 --- a/latexmkrc +++ b/latexmkrc @@ -1,5 +1,5 @@ $pdf_mode = 1; $pdf_previewer = 'zathura -s -x "vim --servername SYNC --remote +%{line} %{input}" %O %S'; -$clean_ext = "synctex.gz bbl pdf"; +$clean_ext = "synctex.gz bbl pdf dvi"; $new_viewer_always [0]; diff --git a/nvimrc b/nvimrc index c236461..20ac746 100644 --- a/nvimrc +++ b/nvimrc @@ -1,6 +1,6 @@ "" Plugins call plug#begin('~/.nvim/plugged') -Plug 'airblade/vim-gitgutter' +Plug 'airblade/vim-gitgutter', { 'on' : 'GitGutterToggle' } Plug 'altercation/vim-colors-solarized' Plug 'AndrewRadev/splitjoin.vim' Plug 'benekastah/neomake' @@ -9,24 +9,25 @@ Plug 'christoomey/vim-tmux-navigator' Plug 'edkolev/tmuxline.vim' Plug 'freeo/vim-kalisi' Plug 'godlygeek/tabular' -Plug 'gregsexton/gitv' +Plug 'gregsexton/gitv', { 'on' : 'Gitv' } Plug 'honza/vim-snippets' -Plug 'jamessan/vim-gnupg' +Plug 'jamessan/vim-gnupg', { 'for' : 'asc' } Plug 'junegunn/seoul256.vim' +Plug 'junegunn/fzf' , { 'on' : 'FZF' } Plug 'kien/ctrlp.vim' -Plug 'LaTeX-Box-Team/latex-box' +Plug 'LaTeX-Box-Team/latex-box', { 'for' : 'tex' } Plug 'majutsushi/tagbar' Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' } -Plug 'scrooloose/nerdtree' +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'scrooloose/syntastic' Plug 'SirVer/ultisnips' -Plug 'sjl/Gundo.vim' +Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' } Plug 'szw/vim-ctrlspace' Plug 'terryma/vim-multiple-cursors' Plug 'tomasr/molokai' Plug 'tommcdo/vim-exchange' Plug 'ton/vim-bufsurf' -Plug 'tpope/vim-abolish' +Plug 'tpope/vim-abolish', { 'for' : 'tex' } Plug 'tpope/vim-commentary' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-obsession' @@ -51,7 +52,7 @@ let g:UltiSnipsJumpBackwardTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsListSnippets="" let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] -let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" +let g:UltiSnipsSnippetsDir="~/.nvim/mySnippets" let g:airline_left_sep='' let g:airline_right_sep='' @@ -209,8 +210,8 @@ nnoremap fw :%s/\s\+$// nnoremap fi zzmxgg=G'x " Navigation -nnoremap [[ :BufSurfBack -nnoremap ]] :BufSurfForward +nnoremap (( :BufSurfBack +nnoremap )) :BufSurfForward nnoremap 3 nnoremap 3 nnoremap o @@ -243,8 +244,8 @@ nnoremap , : vnoremap , : " Neovim specific -tmap -nnoremap :b termi +tnoremap :ZoomWinTabOut +nnoremap :ZoomWinTabIn:b termi inoremap :b termi "" Restore cursor position diff --git a/zshrc b/zshrc index 1807f5f..436e036 100644 --- a/zshrc +++ b/zshrc @@ -92,3 +92,4 @@ bindkey -a 'j' history-beginning-search-forward crontab ~/.crontab TERM=xterm-256color +[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh -- cgit v1.2.3 From ddec4922e2bd723d34afa0b715626c7a125d13c3 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 26 May 2015 12:13:55 +0100 Subject: added c++ snippets --- nvim/mySnippets/cpp.snippets | 19 +++++++++++++++++++ vim/mySnippets/cpp.snippets | 10 ++++++++++ vimrc | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/nvim/mySnippets/cpp.snippets b/nvim/mySnippets/cpp.snippets index e69de29..5ad9624 100644 --- a/nvim/mySnippets/cpp.snippets +++ b/nvim/mySnippets/cpp.snippets @@ -0,0 +1,19 @@ +snippet print_mat "Print matrix" b +for (unsigned int iii = 0; iii < ${1:mat}.size(); ++iii) { + cout << setw(12) << $1[iii][0]; + for (unsigned int jjj = 1; jjj < $1.size(); ++jjj) { + cout << ", "; + cout << setw(12) << $1[iii][jjj]; + } + cout << endl; +} +$0 +endsnippet + +snippet vec "vector" i +vector<${1:double}> $0 +endsnippet + +snippet mat "matrix" i +vector< vector<${1:double}> > $0 +endsnippet diff --git a/vim/mySnippets/cpp.snippets b/vim/mySnippets/cpp.snippets index e69de29..62c1faa 100644 --- a/vim/mySnippets/cpp.snippets +++ b/vim/mySnippets/cpp.snippets @@ -0,0 +1,10 @@ +snippet print_mat "Print matrix" b +for (unsigned int iii = 0; iii < ${0:mat}.size(); ++iii) { + cout << setw(12) << mat[iii][0]; + for (unsigned int jjj = 1; jjj < mat.size(); ++jjj) { + cout << ", "; + cout << setw(12) << mat[iii][jjj]; + } + cout << endl; +} +endsnippet diff --git a/vimrc b/vimrc index 5ad3b76..f6b1027 100644 --- a/vimrc +++ b/vimrc @@ -144,7 +144,7 @@ set spellfile="/home/urbain/.vim/spell/en.utf-8.add" set smartcase set ignorecase -" Misc + set noautochdir set cpoptions+=Iq set encoding=utf-8 -- cgit v1.2.3