diff options
author | A Farzat <a@farzat.xyz> | 2024-10-01 20:04:11 +0900 |
---|---|---|
committer | A Farzat <a@farzat.xyz> | 2024-10-01 20:04:11 +0900 |
commit | 03bbb615f265c08f108fbd6e824686ab05f7bcd3 (patch) | |
tree | ed8c17d7a5d6dbcdd971ee7eeadcb1398c0928aa /global-mappings.vim | |
parent | 4190bbfcf2282df9c4d1f4fb96b30c9856f01b99 (diff) | |
download | nvim-03bbb615f265c08f108fbd6e824686ab05f7bcd3.tar.gz nvim-03bbb615f265c08f108fbd6e824686ab05f7bcd3.zip |
Add the core files
Diffstat (limited to 'global-mappings.vim')
-rw-r--r-- | global-mappings.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/global-mappings.vim b/global-mappings.vim new file mode 100644 index 0000000..6fddc08 --- /dev/null +++ b/global-mappings.vim @@ -0,0 +1,23 @@ +" Windows navigation. +nnoremap <C-J> <C-W><C-J> +nnoremap <C-K> <C-W><C-K> +nnoremap <C-L> <C-W><C-L> +nnoremap <C-H> <C-W><C-H> + +" Mkdir for the current file. +command MkCurDir :!mkdir %:h:S -p + +" Copy the last used register to the clipboard. +command Clipboard :call system('cclip', @") + +" Reload settings. +command Source :source $MYVIMRC + +" Automatically starts terminal emulator in insert mode. +autocmd TermOpen * startinsert +tnoremap <C-h> <C-\><C-n><C-w>h +" Workaround since <C-h> isn't working in neovim right now +" tnoremap <C-w>h <C-\><C-n><C-w>h +tnoremap <C-j> <C-\><C-n><C-w>j +tnoremap <C-k> <C-\><C-n><C-w>k +tnoremap <C-l> <C-\><C-n><C-w>l |