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
|
" leader
|
||||||
let mapleader = ','
|
let mapleader = ','
|
||||||
|
|
||||||
|
" save on ctrl-s
|
||||||
|
nnoremap <c-s> :w<CR>
|
||||||
|
inoremap <c-s> <Esc>:w<CR>a
|
||||||
|
|
||||||
set hidden
|
set hidden
|
||||||
syntax on
|
syntax on
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
@ -57,8 +61,15 @@ in pkgs.stdenv.mkDerivation {
|
||||||
imap hhh <ESC>
|
imap hhh <ESC>
|
||||||
set scroll=11
|
set scroll=11
|
||||||
|
|
||||||
|
" new scroll mappings
|
||||||
|
noremap <C-j> <C-f>
|
||||||
|
noremap <C-k> <C-u>
|
||||||
|
|
||||||
noremap <C-n> :tabn<CR>
|
noremap <C-n> :tabn<CR>
|
||||||
noremap <C-p> :tabp<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_map = '<tab>'
|
||||||
let g:ctrlp_custom_ignore = {
|
let g:ctrlp_custom_ignore = {
|
||||||
\ 'dir': '\v[\/]\.(git|hg|svn|)$$',
|
\ 'dir': '\v[\/]\.(git|hg|svn|)$$',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue