shell/vim: change keyboard mappings
This commit is contained in:
parent
f50dd56fff
commit
dc467108fa
1 changed files with 11 additions and 0 deletions
11
shell.nix
11
shell.nix
|
@ -45,6 +45,10 @@ in pkgs.stdenv.mkDerivation {
|
|||
" leader
|
||||
let mapleader = ','
|
||||
|
||||
" save on ctrl-s
|
||||
nnoremap <c-s> :w<CR>
|
||||
inoremap <c-s> <Esc>:w<CR>a
|
||||
|
||||
set hidden
|
||||
syntax on
|
||||
set hlsearch
|
||||
|
@ -57,8 +61,15 @@ in pkgs.stdenv.mkDerivation {
|
|||
imap hhh <ESC>
|
||||
set scroll=11
|
||||
|
||||
" new scroll mappings
|
||||
noremap <C-j> <C-f>
|
||||
noremap <C-k> <C-u>
|
||||
|
||||
noremap <C-n> :tabn<CR>
|
||||
noremap <C-p> :tabp<CR>
|
||||
" TODO: get tab movement working with ctrl-alt-{n,p}
|
||||
noremap <C-A-n> :tabm +1<CR>
|
||||
noremap <C-A-p> :tabm -1<CR>
|
||||
let g:ctrlp_map = '<tab>'
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir': '\v[\/]\.(git|hg|svn|)$$',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue