Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nelso Jost
config
Commits
514248a9
Commit
514248a9
authored
Apr 24, 2017
by
Nelso Jost
Browse files
ADD current linux setup
parents
Changes
105
Hide whitespace changes
Inline
Side-by-side
home/.bashrc
0 → 100644
View file @
514248a9
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case
$-
in
*
i
*
)
;;
*
)
return
;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL
=
ignoreboth
# append to the history file, don't overwrite it
shopt
-s
histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE
=
1000
HISTFILESIZE
=
2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt
-s
checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if
[
-z
"
${
debian_chroot
:-}
"
]
&&
[
-r
/etc/debian_chroot
]
;
then
debian_chroot
=
$(
cat
/etc/debian_chroot
)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case
"
$TERM
"
in
xterm-color
)
color_prompt
=
yes
;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt
=
yes
if
[
-n
"
$force_color_prompt
"
]
;
then
if
[
-x
/usr/bin/tput
]
&&
tput setaf 1
>
&/dev/null
;
then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt
=
yes
else
color_prompt
=
fi
fi
if
[
"
$color_prompt
"
=
yes
]
;
then
PS1
=
'${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1
=
'${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset
color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case
"
$TERM
"
in
xterm
*
|
rxvt
*
)
PS1
=
"
\[\e
]0;
${
debian_chroot
:+
(
$debian_chroot
)
}
\u
@
\h
:
\w\a\]
$PS1
"
;;
*
)
;;
esac
# enable color support of ls and also add handy aliases
if
[
-x
/usr/bin/dircolors
]
;
then
test
-r
~/.dircolors
&&
eval
"
$(
dircolors
-b
~/.dircolors
)
"
||
eval
"
$(
dircolors
-b
)
"
alias ls
=
'ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if
[
-f
~/.bash_aliases
]
;
then
.
~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if
!
shopt
-oq
posix
;
then
if
[
-f
/usr/share/bash-completion/bash_completion
]
;
then
.
/usr/share/bash-completion/bash_completion
elif
[
-f
/etc/bash_completion
]
;
then
.
/etc/bash_completion
fi
fi
alias
oldvim
=
"vim"
alias
vim
=
"nvim"
alias
vi
=
"nvim"
alias
viconf
=
"nvim ~/.config/nvim/init.vim"
alias
gv
=
"gvim"
alias
op
=
"gnome-open"
alias
p3
=
"python3"
alias
ip3
=
"ipython3"
alias
py
=
"python"
alias
ip2
=
"ipython2"
alias
diff
=
"colordiff -u"
alias
cdl
=
'function _cdl(){ cd $1 ; ls ; };_cdl'
alias
marp
=
"/home/nelso/apps/marp/Marp"
[
-f
~/.fzf.bash
]
&&
source
~/.fzf.bash
alias
vibashrc
=
"nvim ~/.bashrc"
alias
vitmuxrc
=
"nvim ~/.tmux.conf"
alias
tmuxrc
=
"tmux source-file ~/.tmux.conf"
#alias tmux="TERM=screen-256color-bce tmux"
# http://stackoverflow.com/questions/3446320/in-vim-how-to-map-save-to-ctrl-s
stty
-ixon
home/.config/nvim/.netrwhist
0 → 100644
View file @
514248a9
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =8
let g:netrw_dirhist_1='/home/nelso/devel/emm-webapp'
let g:netrw_dirhist_2='/home/nelso/devel'
let g:netrw_dirhist_3='/home/nelso'
let g:netrw_dirhist_4='/home'
let g:netrw_dirhist_5='/home/nelso'
let g:netrw_dirhist_6='/home/nelso/devel/emm-webapp'
let g:netrw_dirhist_7='/home/nelso/devel/emm-webapp/app'
let g:netrw_dirhist_8='/home/nelso/.tmux'
home/.config/nvim/colors/nelsobaka.vim
0 → 100644
View file @
514248a9
" Vim color file - nelsobaka
" Generated by http://bytefluent.com/vivify 2015-10-19
set
background
=
light
if
version
>
580
hi
clear
if
exists
(
"syntax_on"
)
syntax
reset
endif
endif
set
t_Co
=
256
let
g:colors_name
=
"nelsobaka"
"hi CTagsMember -- no settings --
"hi CTagsGlobalConstant -- no settings --
"hi Ignore -- no settings --
hi
Normal guifg
=
#000000
guibg
=
#eeeeee
guisp
=
#eeeeee
gui
=
NONE
ctermfg
=
0
ctermbg
=
255
cterm
=
NONE
"hi CTagsImport -- no settings --
"hi CTagsGlobalVariable -- no settings --
"hi EnumerationValue -- no settings --
"hi Union -- no settings --
"hi Question -- no settings --
"hi EnumerationName -- no settings --
"hi DefinedName -- no settings --
"hi LocalVariable -- no settings --
"hi CTagsClass -- no settings --
"hi clear -- no settings --
hi
IncSearch guifg
=
#192224
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
NONE
ctermfg
=
235
ctermbg
=
1
cterm
=
NONE
hi
WildMenu guifg
=
NONE
guibg
=
#A1A6A8
guisp
=
#A1A6A8
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
248
cterm
=
NONE
hi
SignColumn guifg
=
#192224
guibg
=
#536991
guisp
=
#536991
gui
=
NONE
ctermfg
=
235
ctermbg
=
60
cterm
=
NONE
hi
SpecialComment guifg
=
#00af5f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
35
ctermbg
=
NONE
cterm
=
NONE
hi
Typedef guifg
=
#536991
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
60
ctermbg
=
NONE
cterm
=
bold
hi
Title guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
bold
ctermfg
=
189
ctermbg
=
235
cterm
=
bold
hi
Folded guifg
=
#192224
guibg
=
#A1A6A8
guisp
=
#A1A6A8
gui
=
italic
ctermfg
=
235
ctermbg
=
248
cterm
=
NONE
hi
PreCondit guifg
=
#00af5f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
35
ctermbg
=
NONE
cterm
=
NONE
hi
Include guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
Float guifg
=
#ff5faf
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
205
ctermbg
=
NONE
cterm
=
NONE
hi
StatusLineNC guifg
=
#192224
guibg
=
#5E6C70
guisp
=
#5E6C70
gui
=
bold
ctermfg
=
235
ctermbg
=
66
cterm
=
bold
hi
NonText guifg
=
#5E6C70
guibg
=
NONE
guisp
=
NONE
gui
=
italic
ctermfg
=
66
ctermbg
=
NONE
cterm
=
NONE
hi
DiffText guifg
=
NONE
guibg
=
#492224
guisp
=
#492224
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
52
cterm
=
NONE
hi
ErrorMsg guifg
=
#A1A6A8
guibg
=
#912C00
guisp
=
#912C00
gui
=
NONE
ctermfg
=
248
ctermbg
=
88
cterm
=
NONE
hi
Debug guifg
=
#af00af
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
127
ctermbg
=
NONE
cterm
=
NONE
hi
PMenuSbar guifg
=
NONE
guibg
=
#848688
guisp
=
#848688
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
102
cterm
=
NONE
hi
Identifier guifg
=
#0000d7
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
20
ctermbg
=
NONE
cterm
=
NONE
hi
SpecialChar guifg
=
#00af5f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
35
ctermbg
=
NONE
cterm
=
NONE
hi
Conditional guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
StorageClass guifg
=
#536991
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
60
ctermbg
=
NONE
cterm
=
bold
hi
Todo guifg
=
#F9F9FF
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
NONE
ctermfg
=
189
ctermbg
=
1
cterm
=
NONE
hi
Special guifg
=
#00af5f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
35
ctermbg
=
NONE
cterm
=
NONE
hi
LineNr guifg
=
#a8a8a8
guibg
=
#dadada
guisp
=
#dadada
gui
=
NONE
ctermfg
=
248
ctermbg
=
253
cterm
=
NONE
hi
StatusLine guifg
=
#192224
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
bold
ctermfg
=
235
ctermbg
=
1
cterm
=
bold
hi
Label guifg
=
#5f0087
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
54
ctermbg
=
NONE
cterm
=
bold
hi
PMenuSel guifg
=
#192224
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
NONE
ctermfg
=
235
ctermbg
=
1
cterm
=
NONE
hi
Search guifg
=
#192224
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
NONE
ctermfg
=
235
ctermbg
=
1
cterm
=
NONE
hi
Delimiter guifg
=
#af00af
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
127
ctermbg
=
NONE
cterm
=
NONE
hi
Statement guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
SpellRare guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
underline
ctermfg
=
189
ctermbg
=
235
cterm
=
underline
hi
Comment guifg
=
#5E6C70
guibg
=
NONE
guisp
=
NONE
gui
=
italic
ctermfg
=
66
ctermbg
=
NONE
cterm
=
NONE
hi
Character guifg
=
#A1A6A8
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
248
ctermbg
=
NONE
cterm
=
NONE
hi
TabLineSel guifg
=
#192224
guibg
=
#BD9800
guisp
=
#BD9800
gui
=
bold
ctermfg
=
235
ctermbg
=
1
cterm
=
bold
hi
Number guifg
=
#ff5faf
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
205
ctermbg
=
NONE
cterm
=
NONE
hi
Boolean guifg
=
#8700d7
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
92
ctermbg
=
NONE
cterm
=
NONE
hi
Operator guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
CursorLine guifg
=
NONE
guibg
=
#e4e4e4
guisp
=
#e4e4e4
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
254
cterm
=
NONE
hi
TabLineFill guifg
=
#192224
guibg
=
#5E6C70
guisp
=
#5E6C70
gui
=
bold
ctermfg
=
235
ctermbg
=
66
cterm
=
bold
hi
WarningMsg guifg
=
#A1A6A8
guibg
=
#912C00
guisp
=
#912C00
gui
=
NONE
ctermfg
=
248
ctermbg
=
88
cterm
=
NONE
hi
VisualNOS guifg
=
#444444
guibg
=
#d0d0d0
guisp
=
#d0d0d0
gui
=
underline
ctermfg
=
238
ctermbg
=
252
cterm
=
underline
hi
DiffDelete guifg
=
NONE
guibg
=
#192224
guisp
=
#192224
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
235
cterm
=
NONE
hi
ModeMsg guifg
=
#F9F9F9
guibg
=
#192224
guisp
=
#192224
gui
=
bold
ctermfg
=
15
ctermbg
=
235
cterm
=
bold
hi
CursorColumn guifg
=
NONE
guibg
=
#222E30
guisp
=
#222E30
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
236
cterm
=
NONE
hi
Define guifg
=
#af00af
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
127
ctermbg
=
NONE
cterm
=
NONE
hi
Function guifg
=
#0000ff
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
21
ctermbg
=
NONE
cterm
=
bold
hi
FoldColumn guifg
=
#192224
guibg
=
#A1A6A8
guisp
=
#A1A6A8
gui
=
italic
ctermfg
=
235
ctermbg
=
248
cterm
=
NONE
hi
PreProc guifg
=
#d700af
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
163
ctermbg
=
NONE
cterm
=
NONE
hi
Visual guifg
=
#444444
guibg
=
#d0d0d0
guisp
=
#d0d0d0
gui
=
NONE
ctermfg
=
238
ctermbg
=
252
cterm
=
NONE
hi
MoreMsg guifg
=
#BD9800
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
1
ctermbg
=
NONE
cterm
=
bold
hi
SpellCap guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
underline
ctermfg
=
189
ctermbg
=
235
cterm
=
underline
hi
VertSplit guifg
=
#192224
guibg
=
#5E6C70
guisp
=
#5E6C70
gui
=
bold
ctermfg
=
235
ctermbg
=
66
cterm
=
bold
hi
Exception guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
Keyword guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
Type guifg
=
#536991
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
60
ctermbg
=
NONE
cterm
=
bold
hi
DiffChange guifg
=
NONE
guibg
=
#492224
guisp
=
#492224
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
52
cterm
=
NONE
hi
Cursor guifg
=
#c6c6c6
guibg
=
#262626
guisp
=
#262626
gui
=
NONE
ctermfg
=
251
ctermbg
=
235
cterm
=
NONE
hi
SpellLocal guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
underline
ctermfg
=
189
ctermbg
=
235
cterm
=
underline
hi
Error guifg
=
#A1A6A8
guibg
=
#912C00
guisp
=
#912C00
gui
=
NONE
ctermfg
=
248
ctermbg
=
88
cterm
=
NONE
hi
PMenu guifg
=
#192224
guibg
=
#5E6C70
guisp
=
#5E6C70
gui
=
NONE
ctermfg
=
235
ctermbg
=
66
cterm
=
NONE
hi
SpecialKey guifg
=
#5E6C70
guibg
=
NONE
guisp
=
NONE
gui
=
italic
ctermfg
=
66
ctermbg
=
NONE
cterm
=
NONE
hi
Constant guifg
=
#A1A6A8
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
248
ctermbg
=
NONE
cterm
=
NONE
hi
Tag guifg
=
#00af5f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
35
ctermbg
=
NONE
cterm
=
NONE
hi
String guifg
=
#005faf
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
25
ctermbg
=
NONE
cterm
=
NONE
hi
PMenuThumb guifg
=
NONE
guibg
=
#a4a6a8
guisp
=
#a4a6a8
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
248
cterm
=
NONE
hi
MatchParen guifg
=
#0000ff
guibg
=
#c6c6c6
guisp
=
#c6c6c6
gui
=
bold
ctermfg
=
21
ctermbg
=
251
cterm
=
bold
hi
Repeat guifg
=
#008700
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
28
ctermbg
=
NONE
cterm
=
bold
hi
SpellBad guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
underline
ctermfg
=
189
ctermbg
=
235
cterm
=
underline
hi
Directory guifg
=
#536991
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
60
ctermbg
=
NONE
cterm
=
bold
hi
Structure guifg
=
#536991
guibg
=
NONE
guisp
=
NONE
gui
=
bold
ctermfg
=
60
ctermbg
=
NONE
cterm
=
bold
hi
Macro guifg
=
#d7875f
guibg
=
NONE
guisp
=
NONE
gui
=
NONE
ctermfg
=
173
ctermbg
=
NONE
cterm
=
NONE
hi
Underlined guifg
=
#F9F9FF
guibg
=
#192224
guisp
=
#192224
gui
=
underline
ctermfg
=
189
ctermbg
=
235
cterm
=
underline
hi
DiffAdd guifg
=
NONE
guibg
=
#193224
guisp
=
#193224
gui
=
NONE
ctermfg
=
NONE
ctermbg
=
236
cterm
=
NONE
hi
TabLine guifg
=
#192224
guibg
=
#5E6C70
guisp
=
#5E6C70
gui
=
bold
ctermfg
=
235
ctermbg
=
66
cterm
=
bold
hi
cursorim guifg
=
#192224
guibg
=
#536991
guisp
=
#536991
gui
=
NONE
ctermfg
=
235
ctermbg
=
60
cterm
=
NONE
home/.config/nvim/init.vim
0 → 100644
View file @
514248a9
" --- https://github.com/junegunn/vim-plug ------------------------------
" Minimalist plugin manager. Update with --> :PlugInstall
"
call
plug#begin
(
'~/.local/share/nvim/plugged'
)
Plug
'flazz/vim-colorschemes'
" molokai
,
PaperColor
,
etc
Plug
'scrooloose/nerdcommenter'
" toggle
comments
and
so
on
Plug
'vim-airline/vim-airline'
" nice status bar
Plug
'vimlab/split-term.vim'
" better
split
neovim
terminal
Plug
'mhinz/vim-sayonara'
" smart
buffer
quitting
Plug
'majutsushi/tagbar'
" show
file
tags
(
require ctags
)
Plug
'kien/ctrlp.vim'
" fuzzy finder
(
files
,
buffer
,
tags
)
Plug
'jiangmiao/auto-pairs'
" Insert quotes/brackets
in
pairs
Plug
'tpope/vim-obsession'
" create/restore
vim
sessions
Plug
'scrooloose/nerdtree'
" tree explorer
"Plug 'Shougo/deoplete.nvim'
"Plug 'davidhalter/jedi'
"Plug 'zchee/deoplete-jedi'
" Plug 'davidhalter/jedi-vim'
Plug
'roxma/nvim-completion-manager'
" async
,
dynamic
,
completion
call
plug#end
()
" -----------------------------------------------------------------------
colorscheme
molokai
behave mswin
set
clipboard
=
unnamed
"set clipboard=unnamedplus
"
set
colorcolumn
=
80
set
nowrap
set
showcmd
" Show
(
partial
)
command
in
status
line
.
set
showmatch
" Show matching brackets
.
set
showmode
" Show current
mode
.
set
ruler
" Show the
line
and
column numbers of the
cursor
.
set
number
" Show the
line
numbers
on
the
left
side
.
set
formatoptions
+=
o
" Continue comment marker
in
new
lines
.
set
textwidth
=
0
" Hard
-
wrap
long
lines
as
you
type
them
.
set
expandtab
" Insert spaces when TAB
is
pressed
.
set
tabstop
=
4
" Render TABs using this many spaces
.
set
shiftwidth
=
4
" Indentation amount
for
<
and
>
commands
.
set
noerrorbells
" No beeps
.
set
modeline
" Enable
modeline
.
set
esckeys
" Cursor
keys
in
insert
mode
.
set
linespace
=
0
" Set
line
-
spacing
to
minimum
.
set
nojoinspaces
" Prevents inserting two spaces after punctuation
on
a
join
(
J
)
set
ignorecase
" ignore case
on
vim
command/completion
set
infercase
" smart case insensitivity
" More natural splits
set
splitbelow
" Horizontal
split
below current
.
set
splitright
" Vertical
split
to
right
of current
.
if
!
&
scrolloff
set
scrolloff
=
3
" Show
next
3
lines
while
scrolling
.
endif
if
!
&
sidescrolloff
set
sidescrolloff
=
5
" Show
next
5
columns
while
side
-
scrolling
.
endif
set
nostartofline
" Do not jump
to
first
character with page commands
.
" with infinite undo and a bit of saving addiction, those aren't needed
set
nobackup
set
noswapfile
set
undofile
"turn
on
the feature
set
undodir
=
$HOME
/.config/
nvim/
undo
set
undolevels
=
1000
" How many undos
set
undoreload
=
10000
"
number
of
lines
to
save
for
undo
" ============================================================================
" FILE ESPECIFICS
" use hard tab only on Makefiles (to avoid missing separator error)
autocmd Filetype
make
setlocal
noexpandtab
shiftwidth
=
4
softtabstop
=
0
autocmd Filetype yaml
setlocal
tabstop
=
4
softtabstop
=
4
shiftwidth
=
4
autocmd
BufNewFile
,
BufReadPost
*
.
ino
,
*
.
pde
set
filetype
=
cpp
" ============================================================================
" KEY MAPPINGS
" space enter insertion mode (<esc> still goes back to normal mode)
map
<
space
>
i
" disable ex mode
map
Q
<
Nop
>
let
mapleader
=
","
nmap
<
F2
>
:
TagbarToggle
<
CR
>
imap
<
F2
>
:
TagbarToggle
<
CR
>
nmap
<
F3
>
:
NERDTreeToggle
<
CR
>
map
<
F10
>
:
ed
~
/.config/
nvim/init
.
vim
<
cr
>
" open terminal split [term-split.vim]
map
<
C
-
t
>
:
50
VTerm
<
CR
>
map
<
C
-
e
>
:
40
VTerm
make
<
CR
>
" delete buffer without closing the window [bclose.vim]
nnoremap
q
:
Sayonara
<
cr
>
nnoremap
<
C
-
q
>
:
qa
<
cr
>
inoremap
<
C
-
q
>
<
Esc
>:
Sayonara
<
cr
>
"nnoremap <C-d> :Sayonara<cr>
"inoremap <C-d> :Sayonara<cr>
" toggle comment [NERD commenter]
map
<
Return
>
<
C
-
g
><
leader
>
c
<
space
>
smap
<
Return
>
<
C
-
g
><
leader
>
c
<
space
>
" delete word under cursor
noremap
<
C
-
Space
>
ciw
inoremap
<
C
-
Space
>
<
ESC
>
ciw
" easy tab ident
vnoremap
<
Tab
>
>
vnoremap
<
S
-
Tab
>
<
" easier split navigation
map
<
C
-
S
-
Left
>
<
C
-
w
>
h
map
<
C
-
S
-
Right
>
<
C
-
w
>
l
map
<
C
-
S
-
Down
>
<
C
-
w
>
j
map
<
C
-
S
-
Up
>
<
C
-
w
>
k
nmap
<
Tab
>
<
C
-
w
>
w
" move cursor by n lines
nnoremap
<
C
-
Up
>
5
-
nnoremap
<
C
-
Down
>
5
+
inoremap
<
C
-
Up
>
<
C
-
o
>
5
-
inoremap
<
C
-
Down
>
<
C
-
o
>
5
+
" CTRL-Z is Undo; not in cmdline though
noremap
<
C
-
Z
>
u
inoremap
<
C
-
Z
>
<
C
-
O
>
<
Esc
>
noremap
<
C
-
Y
>
<
C
-
R
>
inoremap
<
C
-
Y
>
<
C
-
O
><
C
-
R
>
vnoremap
<
C
-
X
>
"
+
x
vnoremap
<
C
-
C
>
"
+
y
"map <C-V> "+gP
" CTRL-S for saving (require "stty -ixon" line on ~/.bashrc)
noremap
<
silent
>
<
C
-
S
>
:
update
<
CR
>
vnoremap
<
silent
>
<
C
-
S
>
<
C
-
C
>:
update
<
CR
>
inoremap
<
silent
>
<
C
-
S
>
<
C
-
O
>:
update
<
CR
><
Esc
>
" Switching buffers
map
<
C
-
PageDown
>
:
bnext
!<
cr
>
map
<
C
-
PageUp
>
:
bprevious
!<
cr
>
imap
<
C
-
PageDown
>
<
ESC
>:
bnext
!<
cr
>
imap
<
C
-
PageUp
>
<
ESC
>:
bprevious
!<
cr
>
" enter CtrlP tag fuzzy search [ctrp.vim]
noremap
<
C
-
o
>
:
CtrlPBufTag
<
CR
>
noremap
<
C
-
l
>
:
CtrlPLine
<
CR
>
"tnoremap <Esc> <C-\><C-n>
" keep terminal buffer hidden on background on bn
autocmd TermOpen *
set
bufhidden
=
hide
let
python_highlight_all
=
1
" --- Airline -----------------------------------------------------------------
" show buffer bar
let
g:airline
#extensions#
tabline
#enabled
=
1
" Show just the filename
let
g:airline
#extensions#
tabline
#fnamemod
=
':t'
" --- CtrlP -------------------------------------------------------------------
"
let
g:ctrlp_map
=
'<c-p>'
let
g:ctrlp_cmd
=
'CtrlP'
" let g:ctrlp_cmd = 'CtrlPLastMode'
let
g:ctrlp_extensions
=
[
'buffertag'
,
'tag'
,
'line'
,
'dir'
]
let
g:ctrlp_custom_ignore
=
{
\
'dir'
:
'\v[\/]\.(git|hg|svn|venv)$'
,
\
'file'
:
'\v\.(exe|so|dll)$'
,
\
'link'
:
'some_bad_symbolic_links'
,
\
}
let
g:tagbar_map_togglesort
=
"r"
let
g:tagbar_map_preview
=
"<CR>"
let
g:tagbar_map_jump
=
"<C-CR>"
let
g:tagbar_autofocus
=
1
let
g:tagbar_expand
=
1
let
g:tagbar_indent
=
1
let
g:tagbar_compact
=
1
let
g:tagbar_sort
=
0
let
g:tagbar_width
=
25
"let g:deoplete#enable_at_startup=1
"let g:deoplete#enable_refresh_always=0
"let g:deoplete#file#enable_buffer_path=1
"let g:deoplete#auto_completion_start_length = 0
"function! Completefunc(findstart, base)
"return "\<c-x>\<c-p>"
"endfunction
" Don't let autocomplete affect usual typing habits
"set completeopt=menuone,preview,noinsert
""""""" Jedi-VIM """""""
" Don't mess up undo history<Paste>
"let g:jedi#show_call_signatures = "0"
"let g:deoplete#sources#jedi#show_docstring = 1
" for python completions
"let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'jedi')
" language specific completions on markdown file
"let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'mistune')
" utils, optional
"let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'psutil')
"let g:python_support_python3_requirements = add(get(g:,'python_support_python3_requirements',[]),'setproctitle')
"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
"inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
"set shortmess+=c
"let g:cm_auto_popup = 0
"
"
inoremap
<
expr
><
tab
>
pumvisible
()
?
"\<c-n>"
:
"\<tab>"
"let g:deoplete#disable_auto_complete = 1
"inoremap <silent><expr> <TAB>
"\ pumvisible() ? "\<C-n>" :
"\ <SID>check_back_space() ? "\<TAB>" :
"\ deoplete#mappings#manual_complete()
"function! s:check_back_space() abort "{{{
"let col = col('.') - 1
"return !col || getline('.')[col - 1] =~ '\s'
"endfunction"}}}
"inoremap <silent> <C-CR> <C-r>=<SID>my_cr_function()<CR>
"function! s:my_cr_function() abort
"return deoplete#close_popup() . ""
"endfunction
"
"if &term =~ '^screen'
" tmux will send xterm-style keys when its xterm-keys option is on
"execute "set <xUp>=\e[1;*A"
"execute "set <xDown>=\e[1;*B"
"execute "set <xRight>=\e[1;*C"
"execute "set <xLeft>=\e[1;*D"
"endif
" https://github.com/scrooloose/nerdtree
" How can I open a NERDTree automatically when vim starts up if no files were specified?
autocmd
StdinReadPre
*
let
s:std_in
=
1
autocmd
VimEnter
*
if
argc
()
==
0
&&
!
exists
(
"s:std_in"
)
|
NERDTree
|
endif
home/.config/nvim/syntax/nginx.vim
0 → 100755
View file @
514248a9
" Vim syntax file
" Language: nginx.conf
if
exists
(
"b:current_syntax"
)
finish
end
setlocal
iskeyword
+=.
setlocal
iskeyword
+=
/
setlocal
iskeyword
+=:
syn
match
ngxVariable
'\$\w\w*'
syn
match
ngxVariableBlock
'\$\w\w*'
contained
syn
match
ngxVariableString
'\$\w\w*'
contained
syn
region ngxBlock start
=+
^
+
end
=+{+
contains
=
ngxComment
,
ngxDirectiveBlock
,
ngxVariableBlock
,
ngxString oneline
syn
region ngxString start
=+
"+ end=+"
+
skip
=+
\\\\\
|
\\"
+
contains
=
ngxVariableString oneline
syn
region ngxString start
=+
'+ end=+'
+
skip
=+
\\\\\
|
\\'
+
contains
=
ngxVariableString oneline
syn
match
ngxComment
'\s*#.*$'
syn
keyword ngxBoolean
on
syn
keyword ngxBoolean off
syn
keyword ngxDirectiveBlock http contained
syn
keyword ngxDirectiveBlock mail contained
syn
keyword ngxDirectiveBlock events contained
syn
keyword ngxDirectiveBlock server contained
syn
keyword ngxDirectiveBlock types contained
syn
keyword ngxDirectiveBlock location contained
syn
keyword ngxDirectiveBlock upstream contained
syn
keyword ngxDirectiveBlock charset_map contained
syn
keyword ngxDirectiveBlock limit_except contained
syn
keyword ngxDirectiveBlock
if
contained
syn
keyword ngxDirectiveBlock geo contained
syn
keyword ngxDirectiveBlock
map
contained
syn
keyword ngxDirectiveImportant
include
syn
keyword ngxDirectiveImportant root
syn
keyword ngxDirectiveImportant server
syn
keyword ngxDirectiveImportant server_name
syn
keyword ngxDirectiveImportant listen
syn
keyword ngxDirectiveImportant internal
syn
keyword ngxDirectiveImportant proxy_pass
syn
keyword ngxDirectiveImportant memcached_pass
syn
keyword ngxDirectiveImportant fastcgi_pass
syn
keyword ngxDirectiveImportant try_files
syn
keyword ngxDirectiveControl
break
syn
keyword ngxDirectiveControl
return
syn
keyword ngxDirectiveControl rewrite
syn
keyword ngxDirectiveControl
set
syn
keyword ngxDirectiveError error_page
syn
keyword ngxDirectiveError post_action
syn
keyword ngxDirectiveDeprecated connections
syn
keyword ngxDirectiveDeprecated imap
syn
keyword ngxDirectiveDeprecated open_file_cache_retest
syn
keyword ngxDirectiveDeprecated optimize_server_names
syn
keyword ngxDirectiveDeprecated satisfy_any
syn
keyword ngxDirective accept_mutex
syn
keyword ngxDirective accept_mutex_delay
syn
keyword ngxDirective access_log
syn
keyword ngxDirective add_after_body
syn
keyword ngxDirective add_before_body
syn
keyword ngxDirective add_header
syn
keyword ngxDirective addition_types
syn
keyword ngxDirective aio
syn
keyword ngxDirective alias
syn
keyword ngxDirective allow
syn
keyword ngxDirective ancient_browser
syn
keyword ngxDirective ancient_browser_value
syn
keyword ngxDirective auth_basic
syn
keyword ngxDirective auth_basic_user_file
syn
keyword ngxDirective auth_http
syn
keyword ngxDirective auth_http_header
syn
keyword ngxDirective auth_http_timeout
syn
keyword ngxDirective autoindex
syn
keyword ngxDirective autoindex_exact_size