From 6f0ad262663852dbbd6b0a132733b12dce6c8c50 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 26 Jun 2018 10:52:57 -0700 Subject: Add ctags, netrw browser, and status line changes --- vim.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'vim.nix') diff --git a/vim.nix b/vim.nix index 2c39fa1..b5af63a 100644 --- a/vim.nix +++ b/vim.nix @@ -1,4 +1,4 @@ -{ pkgs, vimUtils, fetchFromGitHub }: +{ pkgs, vimUtils, fetchFromGitHub}: let vim-sexp = vimUtils.buildVimPluginFrom2Nix { @@ -37,9 +37,16 @@ in set smartcase " Enable smart-case search set shiftwidth=4 " Number of auto-indent spaces set smartindent " Enable smart-indent + set laststatus=1 " No status line imap fd + let g:netrw_banner=0 " Disable file browser banner + let g:netrw_liststyle=3 " Tree view set mouse=a - "" + "" CTAGS shortcuts + "" open definition in a new tab: + map :tab split:exec("tag ".expand("")) + "" open definition in a vertical split: + map :vsp :exec("tag ".expand("")) "" https://github.com/lifepillar/vim-solarized8#troubleshooting let &t_8f = "\[38:2:%lu:%lu:%lum" let &t_8b = "\[48:2:%lu:%lu:%lum" -- cgit v1.2.3