summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-11-12 13:19:36 +0100
committerlassulus <lassulus@lassul.us>2017-11-12 13:19:36 +0100
commitfdc128beb420b5559152e3e6c55c5c7d770e3c1e (patch)
tree4cf37ad83d5d5501736e9a055cd3af4323e5e312
parentad3e2a7401d8be4e85fa055b0602f757b113f92d (diff)
l vim: modify clipboard handling
-rw-r--r--lass/2configs/vim.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/lass/2configs/vim.nix b/lass/2configs/vim.nix
index 698344b09..f6c736fbc 100644
--- a/lass/2configs/vim.nix
+++ b/lass/2configs/vim.nix
@@ -98,8 +98,13 @@ let
noremap <esc>[c <nop> | noremap! <esc>[c <nop>
noremap <esc>[d <nop> | noremap! <esc>[d <nop>
+ " search with ack
let g:ackprg = 'ag --vimgrep'
cnoreabbrev Ack Ack!
+
+ " copy/paste from/to xclipboard
+ noremap x "_x
+ set clipboard=unnamedplus
'';
extra-runtimepath = concatMapStringsSep "," (pkg: "${pkg.rtp}") [