aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:07:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:07:47 +1300
commit408e6c07d77c2be237c900fd338ea8851dc49cb7 (patch)
treef8b29bfdfcaa60390eecabaf163ede8eb5af96a8 /vim/vimrc
parentcb7bb3d38847c937815297cda39732bff7a2fefb (diff)
downloaddotfiles-408e6c07d77c2be237c900fd338ea8851dc49cb7.tar.gz
dotfiles-408e6c07d77c2be237c900fd338ea8851dc49cb7.zip
Move file .vimrc config into subfile
Not completely sure this grouping is meaningful; I may refactor it a bit more later on.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc28
1 files changed, 0 insertions, 28 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2d60a34e..e8e35c44 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -18,11 +18,6 @@ if v:version >= 701
silent! call pathogen#helptags()
endif
-" Load plugins for file types
-if has('autocmd')
- filetype plugin on
-endif
-
" Options dependent on the syntax feature
if has('syntax')
@@ -36,19 +31,10 @@ if has('syntax')
silent! colorscheme sahara
endif
-" Use all ancestors of current directory for :find
-if has('file_in_path')
- set path=**
-endif
-
" Don't try to complete strings from included files, just use the strings in
" the open buffers; I'll open the file if I want to complete from it
set complete-=i
-" Try Mac line-endings if UNIX or DOS don't make sense; this has never
-" happened to me but who knows, it might one day
-set fileformats+=mac
-
" Don't jump my screen around when I join lines, keep my cursor in the same
" place; this is done by dropping a mark first and then immediately returning
" to it; note that it wipes out your z mark, if you happen to use it
@@ -74,14 +60,6 @@ set nrformats-=octal
" more than scratch space anyway
set shellslash
-" If the Vim buffer for a file doesn't have any changes and Vim detects the
-" file has been altered, quietly update it
-set autoread
-
-" Save a file automatically if I change buffers or perform operations with the
-" argument list; this is particularly helpful for me as I don't use 'hidden'
-set autowrite
-
" Allow the cursor to get to the top or bottom of the screen before scrolling
" vertically, but set a reasonably wide gutter for scrolling horizontally; no
" particular reason, just suits me better
@@ -103,12 +81,6 @@ endif
" case of the character under the cursor
set tildeop
-" I really like ZZ and ZQ, so I wrote a couple more mappings; ZW forces a
-" write of the current buffer, but doesn't quit, and ZA forces a write of all
-" buffers but doesn't quit
-nnoremap ZW :w!<CR>
-nnoremap ZA :wa!<CR>
-
" Change and delete with C and D both cut off the remainder of the line from
" the cursor, but Y yanks the whole line, which is inconsistent (and can be
" done with yy anyway); this fixes it so it only yanks the rest of the line