Added leader key mappings

This commit is contained in:
Claudio Maggioni 2018-12-27 13:20:34 +01:00
parent e6b404ce96
commit 91393084c9
1 changed files with 20 additions and 5 deletions

View File

@ -32,15 +32,30 @@ tnoremap <C-Esc> <Esc>
" clear search with F2
nnoremap <F2> noh
" clear trailing spaces with F3
nnoremap <F3> :%s/\s *$//g<CR>
" Use "," as leader
let mapleader = ","
" show Vim's true competitor with Ctrl-F1
nnoremap <F4> :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
" Switch between Windows with: Leader w
nnoremap <Leader>w <C-w><C-w>
" Show next buffer with: Leader n
nnoremap <Leader>n :bn<cr>
" Delete buffer with: Leader d
nnoremap <Leader>d :bd<cr>
" clear trailing spaces with: Leader t s
nnoremap <Leader>ts :%s/\s *$//g<CR>
" Reload config with: Leader R
nnoremap <Leader>R :source ~/.config/nvim/init.vim<cr>
" show Vim's true competitor with: Leader r c m
nnoremap <Leader>rcm :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
" COLORSCHEME
" set colorscheme to onedark.vim for nvim and airline
" set colorscheme to onedark.im for nvim and airline
packadd! onedark.vim
colorscheme onedark
let g:airline_theme='onedark'