From 91a9cd73518d076b7c809a908dfddbac3ba657f1 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Thu, 12 Jul 2018 00:53:27 +0200 Subject: [PATCH] [nvim] Disable some plugins, configure some --- nvim-init.vim | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/nvim-init.vim b/nvim-init.vim index 99ea046..dbd6acc 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -202,14 +202,14 @@ call plug#begin('~/.config/nvim/plug') Plug 'honza/vim-snippets' " snippets for ultisnips Plug 'junegunn/vim-easy-align' " easily align text in Alexander Approved™ ways Plug 'matze/vim-move' " move lines and selections up and down - Plug 'kana/vim-operator-user' " define your own operator easily -"Plug 'junegunn/vim-peekaboo' " preview registers when pressing \" or @ +"Plug 'kana/vim-operator-user' " define your own operator easily + Plug 'junegunn/vim-peekaboo' " preview registers when pressing \" or @ Plug 'gcmt/wildfire.vim' " smart selection of the closest text object Plug 'Valloric/YouCompleteMe', { 'do': 'git submodule update --init --recursive && ./install.py --system-libclang --all' } " code-completion engine " Navigation -"Plug 'ctrlpvim/ctrlp.vim' " fuzzy file, buffer, mru, tag, etc. finder - Plug 'dyng/ctrlsf.vim' " search for code and edit it in-place + Plug 'ctrlpvim/ctrlp.vim' " fuzzy file, buffer, mru, tag, etc. finder + Plug 'dyng/ctrlsf.vim' " search for code, edit it in-place, have multiple cursors Plug 'Yggdroot/indentLine' " display the indention levels with thin vertical lines Plug 'scrooloose/nerdtree' " filesystem tree explorer Plug 'majutsushi/tagbar' " display tags in a window, ordered by scope @@ -229,9 +229,9 @@ call plug#begin('~/.config/nvim/plug') "Plug 'dbmrq/vim-ditto' " highlight overused words " Misc - Plug 'kassio/neoterm', { 'on': 'T' } " wrapper of some neovim's :terminal functions +"Plug 'kassio/neoterm', { 'on': 'T' } " wrapper of some neovim's :terminal functions "Plug 'tpope/vim-fugitive' " a Git wrapper - Plug 'vim-scripts/TeTrIs.vim' " Tetris clone +"Plug 'vim-scripts/TeTrIs.vim' " Tetris clone call plug#end()" @@ -342,6 +342,8 @@ nmap a (EasyAlign) " Wildfire {{{2 " ------------- +nmap s (wildfire-quick-select) +let g:wildfire_objects = ["iw", "i'", 'i"', "i)", "i]", "i}", "ip", "it"] " YouCompleteMe {{{2 " ------------------ @@ -365,12 +367,24 @@ set completeopt=menu " CtrlP {{{2 " ---------- -let g:ctrlp_map='l' +let g:ctrlp_map='' let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files . -co --exclude-standard'] -nnoremap s :CtrlPTag" +"nnoremap s :CtrlPTag" " Ctrl-S-F {{{2 " ------------- +nmap f CtrlSFPrompt +nmap f +vmap f CtrlSFVwordExec +vmap f +vmap F CtrlSFVwordPath +nmap w CtrlSFCwordPath +nmap W CtrlSFCCwordPath +nmap CtrlSFPwordPath +nnoremap o :CtrlSFOpen +nnoremap t :CtrlSFToggle +inoremap t :CtrlSFToggle +let g:ctrlsf_regex_pattern = 1 " IndentLine {{{2 " ---------------