From 4e415a7c3d43529880a8839e8ab19ebfb9c05925 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 31 Jul 2018 22:21:35 +0200 Subject: Add nice vim-wordmotion plugin --- pkgs/vim/conf/rc.vim | 2 ++ pkgs/vim/custom.nix | 1 + pkgs/vim/plugins.nix | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) (limited to 'pkgs/vim') diff --git a/pkgs/vim/conf/rc.vim b/pkgs/vim/conf/rc.vim index bce2430..81f48e0 100644 --- a/pkgs/vim/conf/rc.vim +++ b/pkgs/vim/conf/rc.vim @@ -124,3 +124,5 @@ let g:undotree_SetFocusWhenToggle = 1 let g:localvimrc_sandbox = 0 let g:localvimrc_persistent = 2 + +let g:wordmotion_prefix = '' diff --git a/pkgs/vim/custom.nix b/pkgs/vim/custom.nix index 3d41861..7a7d9ed 100644 --- a/pkgs/vim/custom.nix +++ b/pkgs/vim/custom.nix @@ -26,6 +26,7 @@ in "vim-polyglot" "vim-counterpoint" "vim-toggle-ui-elements" + "vim-wordmotion" "vim-color-akr" ];} ]; diff --git a/pkgs/vim/plugins.nix b/pkgs/vim/plugins.nix index 5088e74..5530560 100644 --- a/pkgs/vim/plugins.nix +++ b/pkgs/vim/plugins.nix @@ -3,6 +3,7 @@ let buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix; in { + "vim-unimpaired" = buildVimPlugin { name = "vim-unimpaired"; src = fetchgit { @@ -11,6 +12,7 @@ in { sha256 = "0jx9xybjswnaa6v7hhfqm2nyd5v54xjd02ikw56wm7h6sfgchllx"; }; }; + "vim-counterpoint" = buildVimPlugin { name = "vim-counterpoint"; src = fetchgit { @@ -19,6 +21,7 @@ in { sha256 = "02spr4mhj2035q45j8bf502jgpq76a518nv913zx46byfbl69lps"; }; }; + "vim-mundo" = buildVimPlugin { name = "vim-mundo"; src = fetchgit { @@ -27,6 +30,7 @@ in { sha256 = "052ywnd5r6ksiz1lsyqya9b94fdb0gr7krkdpc1gw1fx11qk5x2v"; }; }; + "vim-toggle-ui-elements" = buildVimPlugin { name = "vim-toggle-ui-elements"; src = fetchgit { @@ -35,6 +39,7 @@ in { sha256 = "0fl9kvp799l3nzy8lnjcb0y1hr3g1ba8n9v2mx83yaqdma0rvhi1"; }; }; + "vim-git-commit-viewer" = buildVimPlugin { name = "vim-git-commit-viewer"; src = fetchgit { @@ -43,6 +48,7 @@ in { sha256 = "0r0j8l0sm3xgb3hgmf0zm48mgj97nlkspg3jgv817nhwsl8pyc44"; }; }; + "vim-far" = buildVimPlugin { name = "vim-far"; src = fetchgit { @@ -51,8 +57,19 @@ in { sha256 = "15pcsd039srfvrj2a6f3ns8zh13vrbdx93pcyxzxd8i0vidshkmb"; }; }; + + "vim-wordmotion" = buildVimPlugin { + name = "vim-wordmotion"; + src = fetchgit { + url = "https://github.com/chaoren/vim-wordmotion.git"; + rev = "d8cd124a6e36f38f52a43cb9f144eddbc03d300f"; + sha256 = "04ag0ilv8v5h823p685aic9rm8b1l44cs4j5xx4zv1ljg95fx68n"; + }; + }; + "vim-color-akr" = buildVimPlugin { name = "vim-color-akr"; src = ./conf/vim-color-akr; }; + } -- cgit v1.2.3