vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 011d4b77f82808c70ef5deb755ed7bd967a9d134
parent 0a49bb41cd53dd5f546084c2f4e6ea5aae6ec05b
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 28 Oct 2019 00:30:46 +0300

tidy-up

Diffstat:
M.config/nvim/init.vim | 29++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim @@ -11,6 +11,8 @@ set number relativenumber set nohlsearch syntax on set nocompatible +set clipboard=unnamedplus +filetype plugin indent on call plug#begin('~/.config/nvim/plugged') Plug 'mcchrish/nnn.vim' @@ -24,18 +26,31 @@ Plug 'tpope/vim-surround' Plug 'junegunn/goyo.vim' call plug#end() -map <C-o> :NERDTreeToggle<CR> -filetype plugin indent on vnoremap <silent><Leader>y "yy <Bar> :call system('xclip', @y)<CR> -set clipboard=unnamedplus -inoremap <leader><leader> <Esc>/<-.-><Enter>"_c5l -vnoremap <leader><leader> <Esc>/<-.-><Enter>"_c5l -map <leader><leader> <Esc>/<-.-><Enter>"_c5l +" vimwiki related +let g:vimwiki_list = [{'path': '~/.wiki'}, {'path': '~/.wiki2'}] +autocmd FileType vimwiki nnoremap <leader>vws :VWS +autocmd FileType vimwiki nnoremap <leader>nn :lnext<CR> +autocmd FileType vimwiki nnoremap <leader>NN :lprevious<CR> + +" Goyo keybinding map <leader>nd :Goyo <CR> map <leader>yd :Goyo! <CR> +" Get bibliography map <leader>b :vsp<space>$BIB<CR> -let g:vimwiki_list = [{'path': '~/.wiki'}, {'path': '~/.wiki2'}] +" Placeholders + +" Create place holder +inoremap <leader>aa <-.-> +map <leader>aa a<-.-><Esc> +" Go to the next placeholder +inoremap <leader><leader> <Esc>/<-.-><Enter>"_c5l +vnoremap <leader><leader> <Esc>/<-.-><Enter>"_c5l +map <leader><leader> <Esc>/<-.-><Enter>"_c5l + +" NerdTree +map <C-o> :NERDTreeToggle<CR>