aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:44:29 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 21:52:10 +1300
commit7a80deca0cf0e8c53b4fdde6f5bd921b1eed7877 (patch)
treebaba6f008938e288fe248fc4c831301268ff5f0f
parentMove digraphs .vimrc config into subfile (diff)
downloaddotfiles-7a80deca0cf0e8c53b4fdde6f5bd921b1eed7877.tar.gz
dotfiles-7a80deca0cf0e8c53b4fdde6f5bd921b1eed7877.zip
Move indent .vimrc config into subfile
-rw-r--r--vim/config/indent.vim29
-rw-r--r--vim/vimrc30
2 files changed, 31 insertions, 28 deletions
diff --git a/vim/config/indent.vim b/vim/config/indent.vim
new file mode 100644
index 00000000..de6b154d
--- /dev/null
+++ b/vim/config/indent.vim
@@ -0,0 +1,29 @@
+" Load indentation for file types
+if has('autocmd')
+ filetype indent on
+endif
+
+" Adopt the indent of the last line on new lines; interestingly, plugins that
+" do clever things with indenting will often assume this is set
+set autoindent
+
+" Use spaces instead of tabs
+set expandtab
+
+" Indent with four spaces when an indent operation is used
+set shiftwidth=4
+
+" Insert four spaces when Tab is pressed
+set softtabstop=4
+
+" How many spaces to show for a literal tab when 'list' is unset
+set tabstop=4
+
+" Indent intelligently to 'shiftwidth' at the starts of lines with Tab, but
+" use 'tabstop' everywhere else
+set smarttab
+
+" When indenting lines with < or >, round the indent to a multiple of
+" 'shiftwidth', so even if the line is indented by one space it will indent
+" up to 4 and down to 0, for example
+set shiftround
diff --git a/vim/vimrc b/vim/vimrc
index f0b2faf7..1a4c916d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -18,9 +18,9 @@ if v:version >= 701
silent! call pathogen#helptags()
endif
-" Load plugins and indentation for file types
+" Load plugins for file types
if has('autocmd')
- filetype indent plugin on
+ filetype plugin on
endif
" Options dependent on the syntax feature
@@ -46,7 +46,6 @@ if has('cmdline_info')
" Show my current position in the status bar
set ruler
-
" Show the keystrokes being entered in the screen
set showcmd
@@ -62,31 +61,6 @@ set complete-=i
" happened to me but who knows, it might one day
set fileformats+=mac
-" Adopt the indent of the last line on new lines; interestingly, plugins that
-" do clever things with indenting will often assume this is set
-set autoindent
-
-" Use spaces instead of tabs
-set expandtab
-
-" Indent with four spaces when an indent operation is used
-set shiftwidth=4
-
-" Insert four spaces when Tab is pressed
-set softtabstop=4
-
-" How many spaces to show for a literal tab when 'list' is unset
-set tabstop=4
-
-" Indent intelligently to 'shiftwidth' at the starts of lines with Tab, but
-" use 'tabstop' everywhere else
-set smarttab
-
-" When indenting lines with < or >, round the indent to a multiple of
-" 'shiftwidth', so even if the line is indented by one space it will indent
-" up to 4 and down to 0, for example
-set shiftround
-
" Don't join lines with two spaces at the end of sentences; I don't two-space,
" despite the noble Steve Losh's exhortations
set nojoinspaces