summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim.nix11
1 files changed, 9 insertions, 2 deletions
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 <Esc>
+ 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 <C-\> :tab split<CR>:exec("tag ".expand("<cword>"))<CR>
+ "" open definition in a vertical split:
+ map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
"" https://github.com/lifepillar/vim-solarized8#troubleshooting
let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"