2015-05-05 11:18:25 +00:00
|
|
|
let g:mapleader = ","
|
|
|
|
let g:maplocalleader = ","
|
|
|
|
|
|
|
|
" open new vertical split and change to split
|
|
|
|
nnoremap <leader>\ <C-w>v<C-w>l
|
|
|
|
nnoremap <leader>- <C-w>s<C-w>j
|
|
|
|
|
|
|
|
" Adjust viewports/splits to equal widths/heights
|
|
|
|
nnoremap <leader>= <C-w>=
|
|
|
|
|
|
|
|
" open a new split and edit the vimrc // easy sourcing vimrc
|
2016-12-25 17:38:08 +00:00
|
|
|
nnoremap <leader>ve <C-w>v<C-w>l :e ~/.config/nvim/init.vim<cr>
|
|
|
|
nnoremap <leader>vs :source ~/.config/nvim/init.vim<cr>
|
2015-05-05 11:18:25 +00:00
|
|
|
|
|
|
|
" Opens an edit command with the path of the currently edited file filled in
|
|
|
|
nnoremap <leader>o :e <C-R>=expand("%:p:h") . "/" <CR>
|
|
|
|
|
|
|
|
" Yank to clipboard with clipper -- see https://github.com/wincent/clipper
|
|
|
|
nnoremap <leader>y :call system('nc localhost 8377', @0)<CR>
|
|
|
|
|
|
|
|
" Find merge conflict markers
|
2016-12-26 08:36:23 +00:00
|
|
|
nnoremap <leader>gf /\v^[<\|=>]{7}( .*\|$)<CR>
|
2015-05-05 11:18:25 +00:00
|
|
|
|
|
|
|
" paste keeping indentation
|
|
|
|
nnoremap <leader>p p`[v`]=
|
2016-12-19 21:31:29 +00:00
|
|
|
|
|
|
|
" toggle wrapping
|
|
|
|
nnoremap <leader>w :set wrap! wrap?<CR>
|
2017-05-30 10:08:18 +00:00
|
|
|
|
|
|
|
" reload files when set autoread is active with F5
|
|
|
|
nnoremap <leader>r :checktime<CR>
|