~wrm/dotfiles

2be74520c3c147e8fa4eee54acce039d1716640f — +wrm 3 months ago a0ffa32
nvim: Review and port plugins from old setup
1 files changed, 48 insertions(+), 12 deletions(-)

M .config/nvim/init.vim
M .config/nvim/init.vim => .config/nvim/init.vim +48 -12
@@ 1,15 1,47 @@
" TODO Port LaTeX setup.
" TODO Review and port plugins:
" tagbar
" vim-fswitch
" ferret
" c.vim
" greputils
" vim-bufferline
" SuperTab
" autoalign
" vimwiki
" vim-surround

set nocompatible
filetype off

" ---------
"  Plugins
" ---------

" All plugins require justification. Note frequency of use and compare to raw
" vim alternative.

set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin()

" Vundle - Often, managing vim stuff in vimrc is useful and vundle specifically means
" you don't have to think whatsover about dirs or git or helpdocs.
Plugin 'VundleVim/Vundle.vim'

" Bufferline - Constantly. 60 line script to list open buffers that stays out
" of the way. :buffers obvs works but I like being able to just look.
Plugin 'bling/vim-bufferline'

" Fugitive - Constantly. As tpope says, as much a vim plugin for git than vice
" versa.
Plugin 'tpope/vim-fugitive'

" Ctrl-P - Rarely, vim wildmode+wildmenu expansion of */** is pretty great.
"Plugin 'ctrlpvim/ctrlp.vim'

" ferret - Performance-wise vimgrep works fine even hitting 1mil+ sloc by
" using it properly, keeping this in my pocket because I want to play with its
" extra options and quickfix changes.
"Plugin 'wincent/ferret'

" VimCompletesMe - Just use i_^X, it's really great.
"Plugin 'ackyshake/VimCompletesMe'

" YouCompleteMe - YCM is Bloat with a capital client-server architecture, but
" instantly IDEfies your text editor. Sometimes I'm in the mood to use this.
" Usually ^Xpand is good enough.
"Plugin 'ycm-core/YouCompleteMe'

call vundle#end()

" ---------
"  General


@@ 18,7 50,7 @@
let mapleader=" "

" Things that should be vim defaults:
set nocompatible
"set nocompatible " Required for vundle anyway.
filetype plugin indent on
syntax on
set encoding=utf-8


@@ 126,6 158,10 @@ nnoremap S :%s//g<Left><Left>
nnoremap <Left> :bp<CR>
nnoremap <Right> :bn<CR>

" Quickfix movement
nnoremap <C-Left> :cp<CR>
nnoremap <C-Right> :cn<CR>

" Skeletons n Snippets
let closet = "~/.local/share/skeletons/"
nnoremap ,sh :read <C-r>=closet<CR>sh/