From dbcd0b84f2fe393731364ec903134494b2c9b722 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 14 Sep 2018 00:21:46 +0200 Subject: [PATCH] Added some vim keybindings --- nvim/.config/nvim/init.vim | 5 +++++ zsh/.zcompcache/_AG_OPTS | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 zsh/.zcompcache/_AG_OPTS diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 08f1c04..ca79d37 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -61,6 +61,8 @@ set mouse=a " DelimitMate let delimitMate_expand_cr = 1 +let mapleader = '\' + " Keybindings map :NERDTreeToggle map :TmuxNavigateLeft @@ -74,6 +76,9 @@ map 10k map :Bdelete map :call ToggleQuickfixList() +map n :cnext +map p :cprevious + " Fold in functions fu! CustomFoldText() "get first non-blank line diff --git a/zsh/.zcompcache/_AG_OPTS b/zsh/.zcompcache/_AG_OPTS new file mode 100644 index 0000000..c4b6e82 --- /dev/null +++ b/zsh/.zcompcache/_AG_OPTS @@ -0,0 +1,4 @@ +AG_OPTS=( ${(Q)"${(z)$(<<\EO:AG_OPTS +'(- 1 *)--help[print a short help statement]' '(- 1 *)--man[print the manual page]' '(- 1 *)--version[display version and copyright information]' '--ackmate[output results in a format parseable by AckMate]' '(-A --after)-A[Print NUM lines before match. Default is 2]:number' '(-A --after)--after[Print NUM lines before match. Default is 2]:number' '(-t --all-text -a --all-types -u --unrestricted)-t[search all text files, excluding hidden ones]' '(-t --all-text -a --all-types -u --unrestricted)--all-text[search all text files, excluding hidden ones]' '(-a --all-types -t --all-text -u --unrestricted)-a[search all text files, excluding hidden ones and not obeying ignore files (.agignore, .gitignore...)]' '(-a --all-types -t --all-text -u --unrestricted)--all-types[search all text files, excluding hidden ones and not obeying ignore files (.agignore, .gitignore...)]' '(-B --before)-B[Print NUM lines after match. Defaults is 2]:number' '(-B --before)--before[Print NUM lines after match. Defaults is 2]:number' '(--nobreak --break)--nobreak[Print a newline between matches in different files. Default on.]' '(--nobreak --break)--break[Print a newline between matches in different files. Default on.]' '(--color --nocolor)--color[Print color codes in results. Default on.]' '(--nocolor --color --color-line-number --color-match --color-path)--nocolor[Do not print color codes in results. Default on.]' '(--nocolor)--color-line-number[Color codes for line numbers. Default is 1;33.]' '(--nocolor)--color-match[Color codes for result match numbers. Default is 30;43.]' '(--nocolor)--color-path[Color codes for path names. Default is 1;32.]' '--column[print column numbers in results]' '(-C --context)-C[Print NUM lines before and after matches. Default is 2.]:number' '(-C --context)--context[Print NUM lines before and after matches. Default is 2.]:number' '(-D --debug)-D[enable debug logging]' '(-D --debug)--debug[enable debug logging]' '(-G --file-search-regex)-G[only search file names matching PATTERN]:pattern' '(-G --file-search-regex)--file-search-regex[only search file names matching PATTERN]:pattern' '(-l --files-with-matches)-l[only print filenames containing matches, not matching lines]' '(-l --files-with-matches)--files-with-matches[only print filenames containing matches, not matching lines]' '(-L --files-without-matches)-L[only print filenames that don''t contain matches]' '(-L --files-without-matches)--files-without-matches[only print filenames that don''t contain matches]' '(-f --follow)-f[follow symlinks]' '(-f --follow)--follow[follow symlinks]' '(-g)-g[print filenames that match PATTERN]:pattern' '(--nogroup --group)--nogroup[same as --\[no\]break --\[no\]heading]' '(--nogroup --group)--group[same as --\[no\]break --\[no\]heading]' '--hidden[search hidden files, still obeys ignore files.]' '*--ignore[Ignore files/directories matching this pattern. Literal file and directory names are also allowed.]:files:_files' '(-i --ignore-case)-i[match case insensitively]:pattern' '(-i --ignore-case)--ignore-case[match case insensitively]:pattern' '*--ignore-dir[alias for --ignore for compatibility with ack]:files:_files' '(-v --invert-match)-v[invert match]' '(-v --invert-match)--invert-match[invert match]' '(-Q --literal)-Q[match PATTERN literally, no regular expression]' '(-Q --literal)--literal[match PATTERN literally, no regular expression]' '(-m --max-count)-m[Skip the rest of a file after NUM matches. Default is 10,000.]:number' '(-m --max-count)--max-count[Skip the rest of a file after NUM matches. Default is 10,000.]:number' '(--pager --nopager)--pager[Display results with PAGER. Disabled by default.]:pager program:_command_names' '(--pager --nopager)--nopager[Display results with PAGER. Disabled by default.]:pager program:_command_names' '(--passthrough)--passthrough[when searching a stream, print all lines even if they don''t match]' '(-p --path-to-agignore)-p[provide a path to a specific .agignore file]:files:_files' '(-p --path-to-agignore)--path-to-agignore[provide a path to a specific .agignore file]:files:_files' '--print-long-lines[print matches on very long lines, > 2k characters by default]' '--search-binary[search binary files]' '(-U --skip-vcs-ignores)-U[ignore VCS ignore files (.gitigore, .hgignore, svn:ignore), but still use .agignore]' '(-U --skip-vcs-ignores)--skip-vcs-ignores[ignore VCS ignore files (.gitigore, .hgignore, svn:ignore), but still use .agignore]' '(-S --smart-case)-S[match case sensitively if PATTERN contains any uppercase letters, else match case insensitively]' '(-S --smart-case)--smart-case[match case sensitively if PATTERN contains any uppercase letters, else match case insensitively]' '--stats[print stats (files scanned, time taken, etc)]' '(-u --unrestricted -t --all-text -a --all-types)-u[search ALL files, includes: hidden, binary & ignored files (.agignore, .gitignore...)]' '(-u --unrestricted -t --all-text -a --all-types)--unrestricted[search ALL files, includes: hidden, binary & ignored files (.agignore, .gitignore...)]' '(-w --word-regexp)-w[only match whole words]' '(-w --word-regexp)--word-regexp[only match whole words]' '(-s --case-sensitive)-s[match case sensitively]' '(-s --case-sensitive)--case-sensitive[match case sensitively]' '(--noheading --heading)--noheading[print file names above matching contents]' '(--noheading --heading)--heading[print file names above matching contents]' '--depth[Search up to NUM directories deep. Default is 25.]:number' '(--no-numbers)--no-numbers[don“t show line numbers]' '*: :_files' +EO:AG_OPTS +)}"} )