From 10af53f0094ccc74d818dc2fff101363e3da0995 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 21 May 2018 16:44:47 -0700 Subject: Reorganize stuff into files --- vim.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 vim.nix (limited to 'vim.nix') diff --git a/vim.nix b/vim.nix new file mode 100644 index 0000000..dbb1a9c --- /dev/null +++ b/vim.nix @@ -0,0 +1,43 @@ +{ + enable = true; + plugins = [ + "colors-solarized" + "fugitive" + ]; + settings = { + ignorecase = true; + expandtab = true; + history = 1000; + tabstop = 4; + }; + extraConfig = '' + " Auto-switch theme + let hour = strftime("%H") + if 6 <= hour && hour < 18 + set background=light + else + set background=dark + endif + colorscheme solarized + filetype plugin indent on + set cuc cul " Crosshair + set cc=80 " 80 column lines + set linebreak " Break lines at word (requires Wrap lines) + set showbreak= " Wrap-broken line prefix + set textwidth=80 " Line wrap (number of cols) + set showmatch " Highlight matching brace + set visualbell " Use visual bell (no beeping) + set hlsearch " Highlight all search results + set smartcase " Enable smart-case search + set incsearch " Searches for strings incrementally + ret autoindent " Auto-indent new lines + set shiftwidth=4 " Number of auto-indent spaces + set smartindent " Enable smart-indent + set smarttab " Enable smart-tabs + set ruler " Show row and column ruler information + set backspace=indent,eol,start " Backspace behaviour + imap fd + set wildmenu " cool menu effect + set mouse=a + ''; +} -- cgit v1.2.3