-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
79 lines (65 loc) · 1.2 KB
/
vimrc
File metadata and controls
79 lines (65 loc) · 1.2 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
" vim: ft=vim
set nocompatible
filetype plugin indent on
syntax on
set fileencodings=utf-8,cp932,sjis
set tabstop=4
set shiftwidth=4
set expandtab
set list
set listchars=tab:>\ ,trail:!
set nowrap
set title
set hidden
set number
set autoread
set laststatus=2
set autoindent
set cursorline
set updatetime=300
set signcolumn=yes
set noshowmode
set termguicolors
if exists("&smoothscroll")
set smoothscroll
endif
set mouse=a
set clipboard=unnamedplus
set showmatch
set hlsearch
set incsearch
set smartcase
set ignorecase
set matchtime=2
set pumheight=20
set diffopt+=algorithm:histogram
set matchpairs+=<:>
colorscheme slate
let g:man_hardwrap = 0
nnoremap <Up> <Nop>
nnoremap <Down> <Nop>
nnoremap <Left> <Nop>
nnoremap <Right> <Nop>
nnoremap <F1> <Nop>
inoremap <Up> <Nop>
inoremap <Down> <Nop>
inoremap <Left> <Nop>
inoremap <Right> <Nop>
inoremap <F1> <Nop>
nnoremap Y y$
nnoremap sh :bp<CR>
nnoremap sl :bn<CR>
nnoremap sd :b#\|bw#\|bp\|bn<CR>
nnoremap <Esc><Esc> :nohlsearch<CR>
augroup custom_auto
autocmd!
autocmd StdinReadPost * set nomodified
autocmd FocusLost * silent! wa
augroup END
command! W w
command! Wa wa
command! Wq wq
command! Wqa wqa
command! WQ wq
command! Q q
command! Qa qa