diff options
author | Ben Sima <ben@bsima.me> | 2018-08-21 10:56:28 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-08-21 10:56:28 -0700 |
commit | 82409d0661e26be5c28a74cca01e492a0ac331c6 (patch) | |
tree | 3ed334274b1389dfa4de1becc3dac79964fb59ed | |
parent | e289f89eb5d0c386de0e991ba2619e71dccbab6e (diff) |
Move all settings to vimrc, merge vim.nix into home.nix
-rw-r--r-- | home.nix | 17 | ||||
-rw-r--r-- | vim.nix | 19 | ||||
-rw-r--r-- | vimrc | 6 |
3 files changed, 16 insertions, 26 deletions
@@ -178,11 +178,18 @@ in ]; }; - vim = import ./vim.nix { - inherit pkgs; - inherit (pkgs) vimUtils fetchFromGitHub; - }; - + vim = { + enable = true; + plugins = [ + "ctrlp" + "fugitive" + "editorconfig-vim" + "gitgutter" + "surround" + ]; + extraConfig = builtins.readFile ./vimrc; + } + git = { enable = true; userName = "Ben Sima"; diff --git a/vim.nix b/vim.nix deleted file mode 100644 index ddc0b5a..0000000 --- a/vim.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ pkgs, vimUtils, fetchFromGitHub}: - -{ - enable = true; - plugins = [ - "ctrlp" - "fugitive" - "editorconfig-vim" - "gitgutter" - "surround" - ]; - settings = { - ignorecase = true; - expandtab = true; - history = 1000; - tabstop = 4; - }; - extraConfig = builtins.readFile ./vimrc; -} @@ -1,20 +1,22 @@ """ General settings set autoindent set backspace=indent,eol,start -set cc=80 " 80 column lines set complete-=i " Set the matches for insert mode completion set encoding=utf-8 " Set encoding +set expandtab " Use spaces instead of tabs set formatoptions+=j " Delete comment character when joining commented lines set hlsearch " Highlight all search results +set ignorecase " Ignore cases when searching set incsearch " Incremental search set laststatus=1 " No status line set linebreak " Break lines at word (requires Wrap lines) set ruler " Show line & col number of cursor position set shiftwidth=4 " Number of auto-indent spaces set showmatch " Highlight matching brace -set smartcase " Better searching +set smartcase " Better searching btw cases set smartindent " Autoindent when starting a new line set smarttab " Tab insertion & deletion +set tabstop=4 " One tab = 4 spaces set textwidth=80 " Line wrap (number of cols) set visualbell " Use visual bell (no beeping) set wildmenu " Helpful completion menu |