mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
vim: added C-g mappings
This commit is contained in:
parent
ce690db770
commit
c02f1dc81f
1 changed files with 8 additions and 5 deletions
13
config.nix
13
config.nix
|
@ -79,8 +79,7 @@ let
|
|||
|
||||
nixdarwin-rebuild () {
|
||||
case $1 in
|
||||
'switch') nix-env -f '<nixpkgs>' -iA nixdarwin.toplevel ;;
|
||||
''') return 1 ;;
|
||||
'switch') nix-env -f '<nixpkgs>' -iA nixdarwin.toplevel ;; ''') return 1 ;;
|
||||
esac
|
||||
}
|
||||
'';
|
||||
|
@ -115,13 +114,17 @@ in {
|
|||
|
||||
set clipboard=unnamed
|
||||
|
||||
let mapleader = " "
|
||||
nnoremap <Leader>p :FZF<cr>
|
||||
cmap <C-g> <Esc>
|
||||
imap <C-g> <Esc>
|
||||
nmap <C-g> <Esc>
|
||||
omap <C-g> <Esc>
|
||||
vmap <C-g> <Esc>
|
||||
|
||||
set hlsearch
|
||||
nnoremap // :nohlsearch<cr>
|
||||
|
||||
nnoremap K ht lr<cr>k$
|
||||
let mapleader = " "
|
||||
nnoremap <Leader>p :FZF<cr>
|
||||
'';
|
||||
vimrcConfig.vam.pluginDictionaries = [
|
||||
{ names = [ "fzfWrapper" "youcompleteme" "surround" "vim-nix" "colors-solarized" ]; }
|
||||
|
|
Loading…
Reference in a new issue