-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRemoteVimrc
More file actions
59 lines (48 loc) · 1.17 KB
/
RemoteVimrc
File metadata and controls
59 lines (48 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set nocompatible
set backspace=indent,eol,start
syntax on
set background=dark
filetype plugin indent on
set showcmd
set showmatch
set ignorecase
set smartcase
set incsearch
set autowrite
set hidden
set relativenumber
set numberwidth=1
set ls=2
set ruler
set confirm
set history=50
set tabstop=2
set modeline
set modelines=2
set cursorline
set cursorcolumn
set colorcolumn=80
set scrolloff=5
set nowrap
set autoindent
set encoding=utf-8
set smartindent
set title
set wildmenu
set wildmode=full
set t_Co=256
set omnifunc=syntaxcomplete#Complete
set completeopt=menuone,longest,preview
set pumheight=6
" Suffixes that get lower priority when doing tabcompletion for filenames.
" These are files that we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
" change the leader to be a comma vs slash
let mapleader=","
"Remove trailing whitespace on <leader>S
nnoremap <leader>S :%s/\s\+$//<cr>:let @/=' '<CR>
"keep undo history across sessions by storing in file
let s:vim_cache = expand('$HOME/.vim/backups')
if filewritable(s:vim_cache) == 0 && exists("*mkdir")
call mkdir(s:vim_cache, "p", 0700)
endif