mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
Adding vim stuff
This commit is contained in:
parent
b77ac31173
commit
81d5cc35ce
11 changed files with 3006 additions and 0 deletions
20
nvim/binds.vim
Normal file
20
nvim/binds.vim
Normal 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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue