...
This commit is contained in:
parent
24f89af433
commit
0927b08e58
7 changed files with 24 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,4 +4,5 @@ xsrf/certificates
|
||||||
xsrf/cookies.txt
|
xsrf/cookies.txt
|
||||||
rcmain
|
rcmain
|
||||||
user-dirs.dirs
|
user-dirs.dirs
|
||||||
|
dot/file/vim/pack
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
. $HOME/.profile
|
||||||
|
|
||||||
q(){
|
q(){
|
||||||
echo $SHLVL - 1 | bc
|
echo $SHLVL - 1 | bc
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -25,3 +25,5 @@
|
||||||
[core]
|
[core]
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
|
|
||||||
|
[pull]
|
||||||
|
ff = only
|
||||||
|
|
|
@ -52,3 +52,5 @@ export_loop \
|
||||||
|
|
||||||
test -r $SETENV && . "$SETENV" && setenv profile
|
test -r $SETENV && . "$SETENV" && setenv profile
|
||||||
|
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,13 @@ hi Search cterm=none ctermfg=black ctermbg=yellow
|
||||||
hi SpecialKey cterm=none ctermfg=darkgreen ctermbg=none
|
hi SpecialKey cterm=none ctermfg=darkgreen ctermbg=none
|
||||||
hi StatusLine cterm=none ctermfg=black ctermbg=red
|
hi StatusLine cterm=none ctermfg=black ctermbg=red
|
||||||
hi StatusLineNC cterm=reverse ctermfg=none ctermbg=none
|
hi StatusLineNC cterm=reverse ctermfg=none ctermbg=none
|
||||||
hi Title cterm=bold ctermfg=yellow ctermbg=none
|
hi Title cterm=none ctermfg=yellow ctermbg=none
|
||||||
hi Statement cterm=none ctermfg=blue ctermbg=none
|
hi Statement cterm=none ctermfg=blue ctermbg=none
|
||||||
hi Visual cterm=none ctermfg=black ctermbg=red
|
hi Visual cterm=none ctermfg=black ctermbg=red
|
||||||
hi WarningMsg cterm=none ctermfg=1 ctermbg=none
|
hi WarningMsg cterm=none ctermfg=1 ctermbg=none
|
||||||
hi String cterm=none ctermfg=darkcyan ctermbg=none
|
hi String cterm=none ctermfg=darkcyan ctermbg=none
|
||||||
hi Comment cterm=none ctermfg=yellow ctermbg=none
|
hi Comment cterm=none ctermfg=yellow ctermbg=none
|
||||||
hi Constant cterm=bold ctermfg=red ctermbg=none
|
hi Constant cterm=none ctermfg=red ctermbg=none
|
||||||
hi Special cterm=none ctermfg=red ctermbg=none
|
hi Special cterm=none ctermfg=red ctermbg=none
|
||||||
hi Identifier cterm=none ctermfg=lightgreen ctermbg=none
|
hi Identifier cterm=none ctermfg=lightgreen ctermbg=none
|
||||||
hi Include cterm=none ctermfg=red ctermbg=none
|
hi Include cterm=none ctermfg=red ctermbg=none
|
||||||
|
@ -41,9 +41,9 @@ hi Type cterm=none ctermfg=green ctermbg=none
|
||||||
hi Function cterm=none ctermfg=darkmagenta ctermbg=none
|
hi Function cterm=none ctermfg=darkmagenta ctermbg=none
|
||||||
hi Structure cterm=none ctermfg=green ctermbg=none
|
hi Structure cterm=none ctermfg=green ctermbg=none
|
||||||
hi LineNr cterm=none ctermfg=black ctermbg=yellow
|
hi LineNr cterm=none ctermfg=black ctermbg=yellow
|
||||||
hi Ignore cterm=bold ctermfg=7 ctermbg=none
|
hi Ignore cterm=none ctermfg=7 ctermbg=none
|
||||||
hi Directory cterm=none ctermfg=darkcyan ctermbg=none
|
hi Directory cterm=none ctermfg=darkcyan ctermbg=none
|
||||||
hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1
|
hi ErrorMsg cterm=none ctermfg=7 ctermbg=1
|
||||||
hi VisualNOS cterm=bold,underline ctermfg=none ctermbg=none
|
hi VisualNOS cterm=bold,underline ctermfg=none ctermbg=none
|
||||||
hi WildMenu cterm=none ctermfg=black ctermbg=yellow
|
hi WildMenu cterm=none ctermfg=black ctermbg=yellow
|
||||||
hi DiffAdd ctermbg=4 ctermfg=none ctermbg=none
|
hi DiffAdd ctermbg=4 ctermfg=none ctermbg=none
|
||||||
|
@ -51,6 +51,6 @@ hi DiffChange ctermbg=5 ctermfg=none ctermbg=none
|
||||||
hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
|
hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
|
||||||
hi DiffText cterm=bold ctermfg=none ctermbg=1
|
hi DiffText cterm=bold ctermfg=none ctermbg=1
|
||||||
hi Underlined cterm=underline ctermfg=5 ctermbg=none
|
hi Underlined cterm=underline ctermfg=5 ctermbg=none
|
||||||
hi Error cterm=bold ctermfg=7 ctermbg=1 ctermbg=none
|
hi Error cterm=none ctermfg=7 ctermbg=1 ctermbg=none
|
||||||
hi SpellErrors cterm=bold ctermfg=7 ctermbg=1 ctermbg=none
|
hi SpellErrors cterm=bold ctermfg=7 ctermbg=1 ctermbg=none
|
||||||
"hi CircleScobs cterm=bold ctermfg=red
|
"hi CircleScobs cterm=bold ctermfg=red
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
set number
|
set number
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
" Fuck the spaces.
|
let g:python_recommended_style=1
|
||||||
" Especially in the Python...
|
|
||||||
" 'ftplugin'(For neovim)
|
|
||||||
let g:python_recommended_style=0
|
|
||||||
imap <S-Tab> <Space><Space><Space><Space>
|
imap <S-Tab> <Space><Space><Space><Space>
|
||||||
set smarttab
|
set smarttab
|
||||||
set noet ci pi sw=4 ts=4
|
set noet ci pi sw=4 ts=4
|
||||||
|
@ -32,9 +29,8 @@
|
||||||
set foldmethod=indent
|
set foldmethod=indent
|
||||||
set foldnestmax=10
|
set foldnestmax=10
|
||||||
" GUI.
|
" GUI.
|
||||||
" Cursor line in GUI(It works too slow in terminal).
|
set cursorline
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
set cursorline
|
|
||||||
colorscheme vividchalk
|
colorscheme vividchalk
|
||||||
else
|
else
|
||||||
" My colorscheme based on 'slate'.
|
" My colorscheme based on 'slate'.
|
||||||
|
@ -48,6 +44,8 @@
|
||||||
noremap <2-LeftMouse> za
|
noremap <2-LeftMouse> za
|
||||||
" Nerd-Tree.
|
" Nerd-Tree.
|
||||||
nmap \nt :NERDTree . <enter>
|
nmap \nt :NERDTree . <enter>
|
||||||
|
" Commenting
|
||||||
|
noremap <leader>/ :Commentary<cr>
|
||||||
" Disable highlight.
|
" Disable highlight.
|
||||||
nmap \nl :if &cursorline==1<enter>set nocursorline<enter>else<enter>set cursorline<enter>endif<enter><enter>
|
nmap \nl :if &cursorline==1<enter>set nocursorline<enter>else<enter>set cursorline<enter>endif<enter><enter>
|
||||||
nmap \nh :nohlsearch<enter>
|
nmap \nh :nohlsearch<enter>
|
||||||
|
@ -69,7 +67,13 @@
|
||||||
cnoremap <C-B> <Left>
|
cnoremap <C-B> <Left>
|
||||||
cnoremap <Esc>b <S-Left>
|
cnoremap <Esc>b <S-Left>
|
||||||
cnoremap <Esc>f <S-Right>
|
cnoremap <Esc>f <S-Right>
|
||||||
" Autocmd.
|
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
||||||
|
" File types.
|
||||||
|
autocmd FileType javascript setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0
|
||||||
|
autocmd FileType javascriptreact setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0
|
||||||
|
autocmd FileType scss setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0
|
||||||
|
autocmd FileType css setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=0
|
||||||
|
" Jump to the last pos.
|
||||||
" When editing a file, always jump to the last known cursor position.
|
" When editing a file, always jump to the last known cursor position.
|
||||||
" Don't do it when the position is invalid or when inside an event handler
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
" (happens when dropping a file on "gvim").
|
" (happens when dropping a file on "gvim").
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
. $HOME/.profile
|
||||||
#autoload -Uz compinit promptinit
|
#autoload -Uz compinit promptinit
|
||||||
#compinit
|
#compinit
|
||||||
#promptinit
|
#promptinit
|
||||||
|
|
Loading…
Reference in a new issue