1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

Adding vim stuff

This commit is contained in:
Henrik Hautakoski 2023-09-14 19:55:17 +02:00
parent b77ac31173
commit 81d5cc35ce
11 changed files with 3006 additions and 0 deletions

20
nvim/binds.vim Normal file
View file

@ -0,0 +1,20 @@
" 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>