1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00
dotfiles/nvim/binds.vim

20 lines
375 B
VimL

" Keybinds
let mapleader=","
:nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a
:nmap <c-v> :Vex<CR>
:noremap <Home> 0w
:inoremap <Home> <ESC>0wi
" -- NERDTree
nnoremap <C-n> :NERDTreeFocus<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" -- Insert date
:noremap <C-D> a<C-R>=strftime('%F')<CR><ESC>
:xmap <C-D> di<Space><C-R>=strftime('%F')<CR><Esc>