Fix vim indentation
This commit is contained in:
parent
60ff941215
commit
b970a31df0
1 changed files with 9 additions and 3 deletions
|
@ -61,25 +61,31 @@
|
||||||
|
|
||||||
programs.vim = {
|
programs.vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Let's not grab _all_ of Vim.
|
||||||
|
packageConfigurable = pkgs.vim;
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
pkgs.vimPlugins.vim-airline
|
pkgs.vimPlugins.vim-airline
|
||||||
pkgs.vimPlugins.vim-airline-themes
|
pkgs.vimPlugins.vim-airline-themes
|
||||||
pkgs.vimPlugins.vim-go
|
pkgs.vimPlugins.vim-go
|
||||||
];
|
];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
number = true;
|
number = true;
|
||||||
|
|
||||||
# Two-spaced tabs
|
# Two-spaced tabs
|
||||||
|
shiftwidth = 2;
|
||||||
tabstop = 2;
|
tabstop = 2;
|
||||||
expandtab = false;
|
expandtab = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set nocompatible
|
|
||||||
filetype off
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
|
" assistance with space-oriented tabs
|
||||||
|
set softtabstop=2
|
||||||
|
set smarttab
|
||||||
|
|
||||||
" custom filetypes
|
" custom filetypes
|
||||||
autocmd BufNewFile,BufRead *.plist set syntax=xml
|
autocmd BufNewFile,BufRead *.plist set syntax=xml
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue