diff --git a/nvim/.config/nvim/after/ftplugin/c.vim b/nvim/.config/nvim/after/ftplugin/c.vim index a1cf433..58b0b49 100644 --- a/nvim/.config/nvim/after/ftplugin/c.vim +++ b/nvim/.config/nvim/after/ftplugin/c.vim @@ -3,21 +3,21 @@ setlocal complete-=i setlocal path+=/usr/include/** setlocal makeprg=ninja\ -C\ build -nmap ct :AsyncDo ctags -R --fields=+nS --excmd=number . -nmap cu :AsyncDo cscope -bqR -nmap cr :cs reset +nnoremap ct :AsyncDo ctags -R --fields=+nS --excmd=number . +nnoremap cu :AsyncDo cscope -bqR +nnoremap cr :cs reset -nmap s (quickr_cscope_symbols) -nmap g (quickr_cscope_global) -nmap h (quickr_cscope_global_split) -nmap v (quickr_cscope_global_vert_split) -nmap d (quickr_cscope_functions) -nmap c (quickr_cscope_callers) -nmap t (quickr_cscope_text) -nmap e (quickr_cscope_egrep) -nmap f (quickr_cscope_files) -nmap i (quickr_cscope_includes) -nmap a (quickr_cscope_assignments) +nnoremap s (quickr_cscope_symbols) +nnoremap g (quickr_cscope_global) +nnoremap h (quickr_cscope_global_split) +nnoremap v (quickr_cscope_global_vert_split) +nnoremap d (quickr_cscope_functions) +nnoremap c (quickr_cscope_callers) +nnoremap t (quickr_cscope_text) +nnoremap e (quickr_cscope_egrep) +nnoremap f (quickr_cscope_files) +nnoremap i (quickr_cscope_includes) +nnoremap a (quickr_cscope_assignments) " If we are working with any of the gstreamer projects in C, run gst-ident " before saving. Assume gst-ident from gstreamer/tools/gst-indent has been diff --git a/nvim/.config/nvim/after/ftplugin/git.vim b/nvim/.config/nvim/after/ftplugin/git.vim index fb5b26f..29aa363 100644 --- a/nvim/.config/nvim/after/ftplugin/git.vim +++ b/nvim/.config/nvim/after/ftplugin/git.vim @@ -3,13 +3,13 @@ setlocal bufhidden=wipe " Disable whitespace highlighting in git buffer autocmd! BufEnter DisableWhitespace -nmap q :bwipeout! +nnoremap q :bwipeout! -nmap gb :call git#git_branch_checkout() -nmap gB :call git#git_branch_delete() -nmap gd :call git#git_diffview_commit() -nmap gD :call git#git_diff_commit() -nmap gl :call git#git_branch_log() -nmap gL :call git#git_branch_log_pretty() -nmap gp :call git#git_cherry_pick() -xmap gP :call git#git_cherry_pick_range() +nnoremap gb :call git#git_branch_checkout() +nnoremap gB :call git#git_branch_delete() +nnoremap gd :call git#git_diffview_commit() +nnoremap gD :call git#git_diff_commit() +nnoremap gl :call git#git_branch_log() +nnoremap gL :call git#git_branch_log_pretty() +nnoremap gp :call git#git_cherry_pick() +xnoremap gP :call git#git_cherry_pick_range() diff --git a/nvim/.config/nvim/after/ftplugin/gitcommit.vim b/nvim/.config/nvim/after/ftplugin/gitcommit.vim index 6a2130d..9bd8a51 100644 --- a/nvim/.config/nvim/after/ftplugin/gitcommit.vim +++ b/nvim/.config/nvim/after/ftplugin/gitcommit.vim @@ -4,5 +4,5 @@ setlocal iskeyword+=- setlocal bufhidden=delete " Jump to sections of diff -nmap [c ?^@@ -nmap ]c /^@@ +nnoremap [c ?^@@ +nnoremap ]c /^@@ diff --git a/nvim/.config/nvim/after/ftplugin/haskell.vim b/nvim/.config/nvim/after/ftplugin/haskell.vim index e8f5841..fe70853 100644 --- a/nvim/.config/nvim/after/ftplugin/haskell.vim +++ b/nvim/.config/nvim/after/ftplugin/haskell.vim @@ -3,10 +3,10 @@ compiler stack setlocal makeprg=stack\ build -nmap t :AsyncDo hasktags -x -c . -nmap h :AsyncDo hlint % -nmap g :Ghcid -nmap k :GhcidKill +nnoremap t :AsyncDo hasktags -x -c . +nnoremap h :AsyncDo hlint % +nnoremap g :Ghcid +nnoremap k :GhcidKill " Taken from https://github.com/danidiaz/miscellany/blob/master/linux/.vim/ftplugin/haskell/movements.vim " Next top-level type signature