diff options
| author | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-09 14:53:26 +0100 |
|---|---|---|
| committer | Vito Graffagnino <vito@graffagnino.xyz> | 2020-09-09 14:53:26 +0100 |
| commit | 0d16d52492938dd92591b1278a73d50ef388c633 (patch) | |
| tree | 2f342456a71b8c52dab89cb0311d033c24e54896 /.config/new_neovim/keys/mappings.vim | |
| parent | 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 (diff) | |
update/modularised nvim config files
Diffstat (limited to '.config/new_neovim/keys/mappings.vim')
| -rw-r--r-- | .config/new_neovim/keys/mappings.vim | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/.config/new_neovim/keys/mappings.vim b/.config/new_neovim/keys/mappings.vim deleted file mode 100644 index 929414b..0000000 --- a/.config/new_neovim/keys/mappings.vim +++ /dev/null @@ -1,73 +0,0 @@ -" g Leader key -let mapleader="," -let localleader=",," -nnoremap <Space> <Nop> -map <leader>v :edit $MYVIMRC<CR> - -" Better indenting -vnoremap < <gv -vnoremap > >gv - -" Better nav for omnicomplete -inoremap <expr> <c-j> ("\<C-n>") -inoremap <expr> <c-k> ("\<C-p>") - -" TAB in general mode will move to text buffer -nnoremap <silent> <TAB> :bnext<CR> -" SHIFT-TAB will go back -nnoremap <silent> <S-TAB> :bprevious<CR> - -" Use control-c instead of escape -nnoremap <silent> <C-c> <Esc> -" <TAB>: completion. -inoremap <silent> <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" - -" Better window navigation -nnoremap <C-h> <C-w>h -nnoremap <C-j> <C-w>j -nnoremap <C-k> <C-w>k -nnoremap <C-l> <C-w>l - -" Use alt + hjkl to resize windows -nnoremap <silent> <M-j> :resize -2<CR> -nnoremap <silent> <M-k> :resize +2<CR> -nnoremap <silent> <M-h> :vertical resize -2<CR> -nnoremap <silent> <M-l> :vertical resize +2<CR> - -" Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed): -vnoremap <C-c> "+y -map <C-p> "+P - -" Binary File Settings ---- {{{ -" -" Hex read -nmap <leader>hr :%!xxd<CR> :set filetype=xxd<CR> -" Hex write -nmap <leader>hw :%!xxd -r<CR> :set binary<CR> :set filetype=xxd<CR> -" -" }}} -" Info Pages Settings ----- {{{ -" -" Set up the reading of info from within vim (use :Info whatever) - -nnoremap <F1> :exe ":Info ".expand("<cword>")<CR> - -" -" }}} -" Terminal Emulator ----- {{{ -" -" -tnoremap <Esc> <C-\><C-n> - -" Usel alt+hjkl to move between windows - -tnoremap <A-h> <C-\><C-n><C-w>h -tnoremap <A-j> <C-\><C-n><C-w>j -tnoremap <A-k> <C-\><C-n><C-w>k -tnoremap <A-l> <C-\><C-n><C-w>l -nnoremap <A-h> <C-w>h -nnoremap <A-j> <C-w>j -nnoremap <A-k> <C-w>k -nnoremap <A-l> <C-w>l -" -" }}} |
