-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.vimrc
More file actions
61 lines (51 loc) · 1.3 KB
/
.vimrc
File metadata and controls
61 lines (51 loc) · 1.3 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
60
61
"set encoding=utf-8
"scriptencoding utf-8
" Change mapleader
"let mapleader="\<Space>"
" Don’t add empty newlines at the end of files
"set binary
"set noeol
" Enable line numbers
"set number
" Enable syntax highlighting
"syntax on
" Make tabs as wide as two spaces
"set tabstop=2
" Show “invisible” characters
"set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
"set list
" Highlight searches
"set hlsearch
" Ignore case of searches
"set ignorecase
" Highlight dynamically as pattern is typed
"set incsearch
" Always show status line
"set laststatus=2
" Enable mouse in all modes
"set mouse=a
"set ttymouse=xterm2
" Disable error bells
"set noerrorbells
" Don’t reset cursor to start of line when moving around.
"set nostartofline
" Show the cursor position
"set ruler
" Don’t show the intro message when starting vim
"set shortmess=atI
" Show the current mode
"set showmode
" Show the filename in the window titlebar
"set title
" Start scrolling three lines before the horizontal window border
"set scrolloff=3
" Strip trailing whitespace (,ss)
"function! StripWhitespace ()
" let save_cursor = getpos(".")
" let old_query = getreg('/')
" :%s/\s\+$//e
" call setpos('.', save_cursor)
" call setreg('/', old_query)
"endfunction
"noremap <leader>ss :call StripWhitespace ()<CR>
" let g:user_emmet_leader_key = '<c-e>'