Commit 1ef436ca authored by Nelso Jost's avatar Nelso Jost

FIX: nvim install, tmux delay switching, vim lightline; ADD: keyboard numpad home-end bugfix

parent 183003a4
all: install setup
all: install-basic install-neovim-ubuntu install-vimplug-nvim setup
install-basic:
sudo apt-get install git tree dialog ctags curl tmux rsync
sudo apt-get install vim git tree dialog ctags curl tmux rsync colordiff
install-neovim-debian:
sudo cp etc/apt/preferences.d/testing-priority /etc/apt/preferences.d/testing-priority
sudo cp etc/apt/sources.list.d/testing.list /etc/apt/sources.list.d/testing.list
sudo apt-get update
sudo apt-get install neovim
$(MAKE) install install-vimplug-nvim
sudo apt-get update || sudo apt-get install neovim
$(MAKE) install-vimplug-nvim
install-neovim-ubuntu:
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get update || sudo apt-get install neovim
$(MAKE) install-vimplug-nvim
install-vimplug-nvim:
......@@ -24,6 +22,9 @@ setup:
rsync -rtv home/ ~/
nvim +PlugInstall +qall
setup-keyboard:
sudo rsync -rtv etc/default/keyboard /etc/default/keyboard
save:
cp -rfv ~/.config/nvim home/.config
cp -rfv ~/.bashrc ~/.inputrc ~/.tmux.conf ~/.tmux
......
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="br"
XKBVARIANT=""
XKBOPTIONS="numpad:microsoft"
BACKSPACE="guess"
......@@ -134,5 +134,7 @@ alias tmuxrc="tmux source-file ~/.tmux.conf"
alias tmux="TERM=screen-256color tmux -2"
xmodmap ~/.Xmodmap
# http://stackoverflow.com/questions/3446320/in-vim-how-to-map-save-to-ctrl-s
stty -ixon
......@@ -85,6 +85,8 @@ set undodir=$HOME/.config/nvim/undo
set undolevels=1000 " How many undos
set undoreload=10000 " number of lines to save for undo
set noshowmode
" ============================================================================
" FILE ESPECIFICS
......@@ -116,7 +118,8 @@ nnoremap <c-e> :update<CR>:VimuxInterruptRunner<CR> :VimuxRunLastCommand<CR>
map <F8> :PrevColorScheme<CR>
map <F9> :NextColorScheme<CR>
map <F12> :ed ~/.config/nvim/init.vim<cr>
map <F10> :mksession<CR>
map <F12> :ed $MYVIMRC<CR>
" open terminal split [term-split.vim]
"map <C-t> :50VTerm<CR>
......@@ -133,6 +136,9 @@ inoremap <C-q> <Esc>:Sayonara<cr>
map <Return> <C-g><leader>c<space>
smap <Return> <C-g><leader>c<space>
nnoremap <PageDown> <C-d>zz
nnoremap <PageUp> <C-u>zz
" delete previous word
" imap <C-BS> <C-W>
......@@ -145,7 +151,7 @@ inoremap <C-Space> <ESC>ciw
inoremap <C-d> <ESC>dd
noremap s ciw
"noremap s ciw
" easy tab ident
vnoremap <Tab> >
......@@ -157,6 +163,8 @@ vnoremap <S-Tab> <
"map <C-S-Down> <C-w>j
"map <C-S-Up> <C-w>k
nmap <Tab> <C-w>w
"
"nnoremap <silent> <Tab> :TmuxNavigatePrevious<cr>
" move cursor by n lines
nnoremap <C-Up> 5-
......@@ -256,10 +264,10 @@ let g:tagbar_width = 25
"set shortmess+=c
"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
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
"
"" <CR>: close popup and save indent.
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
......@@ -377,7 +385,12 @@ endfunction
autocmd BufWritePre * %s/\s\+$//e
" auto detect vim settings when config file is saved
autocmd! bufwritepost $MYVIMRC source $MYVIMRC
"autocmd! bufwritepost $MYVIMRC source $MYVIMRC
" https://github.com/itchyny/lightline.vim/issues/102
augroup reload_vimrc " {
autocmd!
autocmd BufWritePost $MYVIMRC nested source $MYVIMRC
augroup END " }
let g:tagbar_type_markdown = {
......@@ -390,8 +403,9 @@ let g:tagbar_type_markdown = {
\ }
hi MatchParen cterm=none ctermbg=white ctermfg=blue
hi MatchParen cterm=none ctermbg=black ctermfg=green
"highlight MatchParen term=underline cterm=underline gui=underline
" auxiliate cursor navigation between _ on words
set iskeyword-=_
......@@ -30,6 +30,7 @@ bind-key s split-window -h -l 55 -c '#{pane_current_path}'
bind-key v split-window -v -c '#{pane_current_path}'
bind-key C-q kill-server
bind-key C-w kill-window
bind-key w new-window
#run-shell ~/resurrect.tmux
#
......@@ -56,6 +57,10 @@ set -g @resurrect-processes '~python'
#bind-key -T copy-mode-vi C-l select-pane -R
#bind-key -T copy-mode-vi C-\ select-pane -l
bind-key TAB select-pane -l
set-option -g repeat-time 0
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment