-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_vimrc
More file actions
37 lines (36 loc) · 1.32 KB
/
dot_vimrc
File metadata and controls
37 lines (36 loc) · 1.32 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
set title
set number "display number of the line
set ambiwidth=double
set tabstop=4 "tab=4
set expandtab "tab=hannkaku+space
set shiftwidth=4 "set tab=4 (read file)
set smartindent "auto indent
set list "display space character
set listchars=tab:»-,trail:-,eol:↲,extends:»,precedes:«,nbsp:%
set nrformats-=octal
set hidden "don't use decimal system 8 wheh we use number stated with 0
set history=50 "The number of :command history
set virtualedit=block "It enables cursor motion in no character zone
set whichwrap=b,s,[,],<,> "cursor setting
set backspace=indent,eol,start "It enabales back space more wider area
set wildmenu
set noundofile "no.unfile
set nobackup "no~file
set hlsearch "add highligut /search
set shellslash "Path delimiter setting, use'/'insted of \
set ignorecase "ignore Uppercase and lowercase (set ic)
"set noignorecase "Do not ignore Uppercase and lower case (set noic)
set clipboard+=unnamedplus "yunk can used for clipboard. This function is necessary xclip. xclip is able to install with apt.
"emacs key-binding
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif "memorize cursol position.
imap <C-p> <Up>
imap <C-n> <Down>
imap <C-b> <Left>
imap <C-f> <Right>
nnoremap k gk
nnoremap j gj
nnoremap gk k
nnoremap gj j
nnoremap <ESC><ESC> :nohl<CR>
nnoremap x "_x
nnoremap s "_s